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
fa8f55b4
Commit
fa8f55b4
authored
13 years ago
by
Tobias Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
add documentation to clustalw binding
parent
27487606
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/bindings/doc/bindings.rst
+1
-0
1 addition, 0 deletions
modules/bindings/doc/bindings.rst
modules/bindings/doc/clustalw.rst
+8
-0
8 additions, 0 deletions
modules/bindings/doc/clustalw.rst
modules/bindings/pymod/clustalw.py
+40
-0
40 additions, 0 deletions
modules/bindings/pymod/clustalw.py
with
49 additions
and
0 deletions
modules/bindings/doc/bindings.rst
+
1
−
0
View file @
fa8f55b4
...
...
@@ -17,3 +17,4 @@ So far, the binding module includes:
blast
msms
tmtools
clustalw
This diff is collapsed.
Click to expand it.
modules/bindings/doc/clustalw.rst
0 → 100644
+
8
−
0
View file @
fa8f55b4
:mod:`~ost.bindings.clustalw` - Perform multiple sequence alignment
================================================================================
.. module:: ost.bindings.clustalw
:synopsis: Perform multiple sequence alignment
.. autofunction:: ost.bindings.clustalw.ClustalW
This diff is collapsed.
Click to expand it.
modules/bindings/pymod/clustalw.py
+
40
−
0
View file @
fa8f55b4
...
...
@@ -5,6 +5,46 @@ import subprocess
def
ClustalW
(
seq1
,
seq2
=
None
,
clustalw
=
None
,
keep_files
=
False
,
nopgap
=
False
,
clustalw_option_string
=
False
):
'''
Runs a clustalw multiple sequence alignment. The results are returned as a
:class:`~ost.seq.AlignmentHandle` instance.
There are two ways to use this function:
- align exactly two sequences:
:param seq1: sequence_one
:type seq1: :class:`~ost.seq.SequenceHandle` or :class:`str`
:param seq2: sequence_two
:type seq2: :class:`~ost.seq.SequenceHandle` or :class:`str`
The two sequences can be specified as two separate function parameters
(`seq1`, `seq2`). The type of both parameters can be either
:class:`~ost.seq.SequenceHandle` or :class:`str`, but must be the same for
both parameters.
- align two or more sequences:
:param seq1: sequence_list
:type seq1: :class:`~ost.seq.SequenceList`
:param seq2: must be :class:`None`
Two or more sequences can be specified by using a
:class:`~ost.seq.SequenceList`. It is then passed as the first function
parameter (`seq1`). The second parameter (`seq2`) must be :class:`None`.
:param clustalw: path to clustalw executable (used in :func:`~ost.settings.Locate`)
:type clustalw: :class:`str`
:param nopgap: turn residue-specific gaps off
:type nopgap: :class:`bool`
:param clustalw_option_string: additional clustalw flags (see http://toolkit.tuebingen.mpg.de/clustalw/help_params)
:type clustalw_option_string: :class:`str`
:param keep_files: do not delete temporary files
:type keep_files: :class:`bool`
'''
clustalw_path
=
settings
.
Locate
((
'
clustalw
'
,
'
clustalw2
'
),
explicit_file_name
=
clustalw
)
...
...
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