Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AMIBIO
VARNA-api
Commits
80603fa9
Commit
80603fa9
authored
Dec 08, 2020
by
htyao
Browse files
Fix defualt
parent
9419969a
Changes
1
Hide whitespace changes
Inline
Side-by-side
varnaapi.py
View file @
80603fa9
...
...
@@ -312,7 +312,7 @@ class VARNA:
def
_init_features
(
self
):
self
.
aux_BPs
=
[]
self
.
highlight_regions
=
[]
self
.
params
=
{
'algorithm'
:
"
naview
"
}
self
.
params
=
{
'algorithm'
:
"
radiate
"
}
self
.
default_color
=
{}
self
.
options
=
{}
self
.
title
=
None
...
...
@@ -366,7 +366,7 @@ class VARNA:
"""Set algorithm other than __naview__ to draw secondary structure.
Supported options are __line__, __circular__, __radiate__ and __naview__.
"""
if
algo
not
in
[
'line'
,
'
circular'
,
'radiate'
,
'naview'
]:
if
algo
not
in
[
'line'
,
'circular'
,
'radiate'
,
'naview'
]:
raise
Exception
(
"Sould be one of line, circular, radiate or naview"
)
self
.
params
[
'algorithm'
]
=
algo
...
...
@@ -544,7 +544,7 @@ class VARNA:
# Command for defualt colors
for
key
,
color
in
self
.
default_color
.
items
():
if
color
is
not
None
:
cmd
+=
" -{}
{}
"
.
format
(
key
,
color
)
cmd
+=
" -{}
\"
{}
\"
"
.
format
(
key
,
color
)
# Options
for
key
,
value
in
self
.
options
.
items
():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment