Package Bio :: Package PopGen :: Package GenePop :: Module LargeFileParser :: Class Record
[hide private]
[frames] | no frames]

Class Record

source code

object --+

Holds information from a GenePop record.

Members: marker_len The marker length (2 or 3 digit code per allele).

comment_line Comment line.

loci_list List of loci names.

data_generator Iterates over population data.

The generator will only work once. If you want to read a handle twice you have to re-open it!

data_generator can either be () - an empty tuple - marking a new population or an individual. An individual is something like ('Ind1', [(1,1), (3,None), (200,201)], In the case above the individual is called Ind1, has three diploid loci. For the second loci, one of the alleles is unknown.

Instance Methods [hide private]
__init__(self, handle)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
data_generator(self) source code

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]

__init__(self, handle)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)