Package bamm :: Module bamLink :: Class BM_linkInfo
[hide private]
[frames] | no frames]

Class BM_linkInfo

source code

object --+
         |
        BM_linkInfo

A single link joining two contigs

Instance Methods [hide private]
 
__init__(self, r1, r2, p1, p2, bid=None)
Default constructor.
source code
 
printMore(self, bamFileNames, len1, len2)
Advanced string function
source code
 
__str__(self)
override basic string function
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, r1, r2, p1, p2, bid=None)
(Constructor)

source code 
Default constructor.

Initializes a BM_LinkInfo instance with the provided set of properties.

Inputs:
 r1 - int, == 1 if the read maps to contig 1 in reverse orientation
 r2 - int, == 1 if the read maps to contig 2 in reverse orientation
 pos1 - int, leftmost position of read on contig 1
 pos2 - int, leftmost position of read on contig 2
 bid - unique identifier for the bam file describing this link

Outputs:
 None

Overrides: object.__init__

printMore(self, bamFileNames, len1, len2)

source code 
Advanced string function

used for creating output to links file

Inputs:
 bamFileNames - { bamId : string }, storage for long bam file names
 len1 - int, length of contig 1
 len1 - int, length of contig 2

Outputs:
 String describing the link

__str__(self)
(Informal representation operator)

source code 

override basic string function

Overrides: object.__str__