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
fc978184
Commit
fc978184
authored
Dec 05, 2020
by
htyao
Browse files
Add doc for comparison mode
parent
f2899051
Changes
1
Hide whitespace changes
Inline
Side-by-side
varnaapi.py
View file @
fc978184
...
...
@@ -600,6 +600,18 @@ class VARNA:
class
Comparison
(
VARNA
):
def
__init__
(
self
,
seq1
,
structure1
,
seq2
,
structure2
):
"""Drawing of two aligned RNAs.
Unlike classic [VARNA][varnaapi.VARNA.\_\_init\_\_] mode,
both sequences and structures __MUST__ be specified and have the same size.
Additionally, the merged secondary structures must currently be without any crossing
interactions (e.g. pseudoknots), and merging them should give a secondary structure.
Gap character is `.`.
Args:
seq1 (str): Sets the gapped nucleotide sequence for the first RNA sequence
structure1 (str): Sets the first secondary structure in Dot-Bracket Notation
seq2 (str): Sets the gapped nucleotide sequence for the second sequence
strcuture2 (str): Sets the second secondary structure in Doc-Bracket Notation
"""
if
not
(
len
(
seq1
)
==
len
(
structure1
)
==
len
(
seq2
)
==
len
(
structure2
)):
raise
Exception
(
"All length should be equal"
)
self
.
seq1
=
seq1
...
...
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