Package Bio :: Package SeqIO :: Module _index :: Class FastqRandomAccess
[hide private]
[frames] | no frames]

Class FastqRandomAccess

source code

               object --+        
                        |        
File._IndexedSeqFileProxy --+    
                            |    
          SeqFileRandomAccess --+
                                |
                               FastqRandomAccess

Random access to a FASTQ file (any supported variant).

With FASTQ the records all start with a "@" line, but so can quality lines. Note this will cope with line-wrapped FASTQ files.

Instance Methods [hide private]
 
__iter__(self)
Returns (identifier, offset, length in bytes) tuples.
source code
 
get_raw(self, offset)
Similar to the get method, but returns the record as a raw string.
source code

Inherited from SeqFileRandomAccess: __init__, get

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__iter__(self)

source code 

Returns (identifier, offset, length in bytes) tuples.

The length can be zero where it is not implemented or not possible for a particular file format.

Overrides: File._IndexedSeqFileProxy.__iter__
(inherited documentation)

get_raw(self, offset)

source code 
Similar to the get method, but returns the record as a raw string.
Overrides: File._IndexedSeqFileProxy.get_raw