Package csb :: Package bio :: Package sequence :: Class SequenceCollection
[frames] | no frames]

Class SequenceCollection

source code

              object --+            
                       |            
    core.AbstractIndexer --+        
                           |        
core.BaseCollectionContainer --+    
                               |    
core.ReadOnlyCollectionContainer --+
                                   |
                                  SequenceCollection

Represents a list of AbstractSequences.

Instance Methods
 
__init__(self, sequences)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
to_fasta(self, output_file)
Dump the whole collection in mFASTA format.
source code

Inherited from core.BaseCollectionContainer: __bool__, __contains__, __getitem__, __iter__, __len__, __nonzero__, __repr__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from core.BaseCollectionContainer: last_index, length, start_index

Inherited from object: __class__

Method Details

__init__(self, sequences)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • items - initialization list
  • type - if defined, makes the container type-safe
  • start_index - the index of the zero element
Overrides: object.__init__
(inherited documentation)

to_fasta(self, output_file)

source code 

Dump the whole collection in mFASTA format.

Parameters:
  • output_file (str or stream) - write the output to this file or stream