Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VARNA-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AMIBIO
VARNA-api
Commits
fc978184
Commit
fc978184
authored
4 years ago
by
htyao
Browse files
Options
Downloads
Patches
Plain Diff
Add doc for comparison mode
parent
f2899051
No related branches found
No related tags found
1 merge request
!2
Feature/comparison mode
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
varnaapi.py
+12
-0
12 additions, 0 deletions
varnaapi.py
with
12 additions
and
0 deletions
varnaapi.py
+
12
−
0
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment