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

Class Record

source code

object --+

Hold 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)
Initialize the class.
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 
Initialize the class.
Overrides: object.__init__