Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
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
schwede
openstructure
Commits
c21d1e7d
Commit
c21d1e7d
authored
12 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
document a few more AlignmentHandle methods
parent
d1052ecf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/seq/base/doc/seq.rst
+44
-0
44 additions, 0 deletions
modules/seq/base/doc/seq.rst
with
44 additions
and
0 deletions
modules/seq/base/doc/seq.rst
+
44
−
0
View file @
c21d1e7d
...
@@ -388,3 +388,47 @@ an alignment:
...
@@ -388,3 +388,47 @@ an alignment:
:raises: In case one of the two sequences doesn't have an attached view, a
:raises: In case one of the two sequences doesn't have an attached view, a
:exc:`RuntimeError` is raised.
:exc:`RuntimeError` is raised.
.. method:: AddSequence(sequence)
Append a sequence to the alignment. The sequence must have the same length as
sequences already present in the alignment.
:raises: :exc:`RuntimeError` if the sequence length does not match
:param sequence: Sequence to be added
:type sequence: :class:`ConstSequenceHandle`
.. method:: GetSequenceOffset(index)
SetSequenceOffset(index, offset)
Get/set the offset for sequence at *index*.
:param index: The index of the sequence
:type index: :class:`int`
:param offset: The new offset
:type offset: :class:`int`
:rtype: :class:`int`
.. method:: GetSequenceRole(index)
SetSequenceRole(index, role)
Get/Set the sequence role for sequence at *index*.
:param index: The index of the sequence
:type index: :class:`int`
:param role: The new role
:type role: :class:`str`
:rtype: :class:`str`
.. method:: GetCoverage(index)
Get coverage of sequence at *index* to the first sequence.
:param index: The index of the sequence
:type index: :class:`int`
:returns: Coverage as a number between 0 and 1.
.. method:: RemoveSequence(index)
Remove sequence at *index* from the alignment.
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