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
9419969a
Commit
9419969a
authored
Dec 05, 2020
by
htyao
Browse files
Rearrange doc
parent
2d133d44
Changes
3
Hide whitespace changes
Inline
Side-by-side
docs/varna.md
View file @
9419969a
::: varnaapi.VARNA
We offer two python classes
[
VARNA
](
#varnaapi.VARNA
)
and
[
Comparison
](
#varnaapi.Comparison
)
corresponding to the classic mode and the comparison mode in VARNA.
::: varnaapi
selection:
members: ["VARNA"]
::: varnaapi
selection:
members: ["Comparison"]
docs/varnaapi.md
View file @
9419969a
::: varnaapi
selection:
filters: ["!^VARNA", "!^_", "__init__", "!Annotation"]
filters: ["!^VARNA", "!^_", "__init__", "!Annotation"
, "!Comparison"
]
varnaapi.py
View file @
9419969a
...
...
@@ -267,7 +267,7 @@ def _parse_vienna(ss):
class
VARNA
:
def
__init__
(
self
,
seq
:
str
=
None
,
structure
=
None
):
"""Constructor from given RNA sequence or/and secondary structure.
"""
Classis VARNA drawing mode.
Constructor from given RNA sequence or/and secondary structure.
If sequence and structure have different size, the larger one is used
and ` `s or `.`s will be added to sequence or structure to complement.
...
...
@@ -601,7 +601,7 @@ class VARNA:
class
Comparison
(
VARNA
):
def
__init__
(
self
,
seq1
,
structure1
,
seq2
,
structure2
):
"""Drawing of two aligned RNAs.
Unlike classic [VARNA][varnaapi.VARNA
.\_\_init\_\_
] mode,
Unlike classic [VARNA][varnaapi.VARNA] 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.
...
...
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