Home | Trees | Indices | Help |
|
---|
|
object --+ | SeqGroup
SeqGroup class can be used to store a set of sequences (aligned or not). CONSTRUCTOR ARGUMENTS: ====================== * sequences: Path to the file containing the sequences or, alternatively, the text string containing the same information. * format (optional): the format in which sequences are encoded. Current supported formats are: "fasta", "phylip" (phylip sequencial) and "iphylip" (phylip interleaved) RETURNS: ======== A SeqGroup object to operate with sequencies. EXAMPLES: ========= msf = ">seq1\nAAAAAAAAAAA\n>seq2\nTTTTTTTTTTTTT\n" seqs = SeqGroup(msf, format="fasta") print seqs.get_seq("seq1")
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
str(x)
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Returns the text representation of the sequences in the supplied given format (default=FASTA). If "oufile" argument is used, the result is written into the given path. |
Returns an iterator over all sequences in the collection. Each item is a tuple with the sequence name, sequence, and sequence comments |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Apr 20 17:50:34 2010 | http://epydoc.sourceforge.net |