public class AbstractTagsByTaxa extends AbstractTags implements TagsByTaxa
Basic method implementation of Tags by Taxa, including methods for reading and writing files
protected int taxaNum
protected java.lang.String[] taxaNames
protected TaxaList taxaList
public int getTaxaCount()
public java.lang.String getTaxaName(int taxaIndex)
public java.lang.String[] getTaxaNames()
public TaxaList getTaxaList()
public int getIndexOfTaxaName(java.lang.String taxon)
public void truncateTaxonNames()
Truncates each taxon name to everything up to the first colon, and converts all letters to lower case. This causes tag counts from taxa with identical names to be merged.
public void addReadsToTagTaxon(int tagIndex,
int taxaIndex,
int addValue)
public kotlin.Array[] getTaxaReadCountsForTag(int tagIndex)
public OpenBitSet getTaxaReadBitsForTag(int tagIndex)
tagIndex - Number of organisms/bits that must be stored in the bitset.public int getNumberOfTaxaWithTag(int readIndex)
public void readDistFile(java.io.File inFile,
net.maizegenetics.dna.tag.TagsByTaxa.FilePacking numberType)
public void readChannel(java.io.File inFile)
public void writeDistFile(java.io.File outFile,
net.maizegenetics.dna.tag.TagsByTaxa.FilePacking numberType,
int minCount)
public void writeReadCountFile(java.io.File outFile,
boolean binary)
Writes a tag count file in binary (true) or text (false) format, containing the tag sequences from this TBT file.
public int getReadCount(int tagIndex)
public boolean areTagsUnique()