Package PyML :: Package utils :: Module fasta :: Class fasta_slice
[hide private]
[frames] | no frames]

Class fasta_slice

source code

object --+
         |
        fasta_slice

Provide an iteration through the fasta records in 'src', from 'start' to 'stop'.

Instance Methods [hide private]
 
__init__(self, src, first, last=None)
:Parameters: - `src` - the fasta file/file handle.
source code
 
__iter__(self) source code
 
next(self) source code
 
__getitem__(self, name) source code
 
save(self, fileName) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, src, first, last=None)
(Constructor)

source code 

:Parameters:
- `src` - the fasta file/file handle. file can be gzipped.
- `first` - the first record (either its index in the file or
  its identifier
- `last` - the last record to be output (index in the file or identifier)

Overrides: object.__init__