public class PETagCounts
extends AbstractPETags
Hold PE tags and their counts, also including contigs
public PETagCounts(java.lang.String inFile,
net.maizegenetics.dna.tag.TagsByTaxa.FilePacking format)
Construct PETagCounts from a file
inFile - Filename of PETagCountsformat - FilePacking formatpublic PETagCounts(int tagLengthInLong,
int tagNum)
Initialize PETagCounts with empty matrix
tagLengthInLong - Tag length In Long primitive data typetagNum - Tag numberpublic PETagCounts getCollapsedPETagCounts()
Collapse the PETagCounts and return a new collapsed PETagCounts object
public int collapseCounts()
Collapse PETagCounts, the tag count of collapsed tags is set to 0
public PETagCounts getMergedPETagCounts(PETagCounts another, boolean ifCollapsed)
Merge two PETagCounts objects
another - Another PETagCounts objectifCollapsed - Boolean value of another PETagCounts object (If it is collapsed). Both objects should be collapsed firstpublic int getTotalReadCount()
Return total read count of PE tags
public int getReadCount(int index)
Return read count of a PE tag
index - public void readDistFile(java.lang.String infileS,
net.maizegenetics.dna.tag.TagsByTaxa.FilePacking format)
Read PETagCounts file
infileS - File name of PETagCounts fileformat - FilePacking formatpublic void writeDistFile(java.lang.String outfileS,
net.maizegenetics.dna.tag.TagsByTaxa.FilePacking format,
int minCount)
Write PETagCounts file
outfileS - File name of output PETagCounts fileformat - FilePakcing formatminCount - Minimum count of PE Tag in the outputprotected void iniMatrix(int tagLengthInLong,
int tagNum)
public void swap(int index1,
int index2)