Home | Trees | Indices | Help |
---|
|
object --+ | ReadSet
Container class to encapsulate the concept of a(n un)paired read set
This class manages file properties and writing functionality.
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Default constructor. Initializes a ReadSet instance with the provided set of properties. Inputs: groupNames - [ string ], target names, one for each target group. outPrefix1 - string prefix of the first output file (read1). outPrefix2 - string prefix of the second output file or None for interleaved or unpaired files. isPaired - bool, True if the file is a paired read file. zipped - bool, True if the data should be compressed for writing. headersOnly - bool, True if only headers should be printed.
|
return the unchanging filename prefix associated with this ReadSet Inputs: fNumber - which file prefix is needed? [1 or 2] Outputs: The corresponding prefix |
Determine the suffix of the file depending on if we're writing fasta or fastq Inputs: isFastq - bool, is the file fastq (or fasta) Outputs: Filenames to be written to. (fileName1, fileName2) fileName2 will be None for unpaired or interleaved-paired files |
Write a single print chain to disk A print chain is a linked list of mapped reads that have been pre-ordered and are ready to write (or print). The print chain can contain either Fasta or Fastq reads but never both. File names are determined on the fly based on the presence or absence of quality info of the first read in the chain (determined by the BamExtractor) and passed to this function as isFastq. NOTE: This function does NOT free any memory associated with pBMM. Inputs: pBMM - c.POINTER(BM_mappedRead_C), the start of a linked list of mapped reads, pre-ordered for printing by the BamExtractor isFastq - bool, True if reads have quality information. printQueue - Managed by the BamExtractor. Place all printing strings here. Acts as a verbose flag. Outputs: None |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Feb 17 15:54:06 2015 | http://epydoc.sourceforge.net |