public class TagsOnGeneticMap
extends AbstractTags
Class that hold genetic position of tags, genetic positions are the position of markers associated with tags
protected kotlin.Array[] gChr
protected kotlin.Array[] gPos
protected kotlin.Array[] ifPAV
protected kotlin.Array[] prediction
public TagsOnGeneticMap(java.lang.String infileS,
net.maizegenetics.dna.tag.TagsByTaxa.FilePacking format)
Construct TOGM from a file
infileS - File name of input TagsOnGeneticMap fileformat - FilePacking formatpublic void mergeTOGM(TagsOnGeneticMap another)
public int getGChr(int index)
Return chromosome of genetic position
index - public int getGPos(int index)
Return site of genetic position
index - public byte getIfPAV(int index)
Return if this tag is PAV
index - public boolean isPAV(int index)
Return if this tag is a PAV
index - public float getPrediction(int index)
Return prediction value from model
index - public void setIfPAV(int index,
int value)
Set PAV value of tag
index - value - public void readDistFile(java.lang.String infileS,
net.maizegenetics.dna.tag.TagsByTaxa.FilePacking format)
Read tagsOnGeneticMap file
infileS - format - protected void iniMatrix(int tagLengthInLong,
int tagNum)
Initialize the matrix of TOGM
tagLengthInLong - Tag length in Long primitive data typetagNum - Total tag numberpublic void writeDistFile(java.lang.String outfileS,
net.maizegenetics.dna.tag.TagsByTaxa.FilePacking format)
Write TagsOnGeneticMap file
outfileS - File name of output fileformat - FilePacking formatpublic void writeDistFile(java.lang.String outfileS,
kotlin.Array[] ifOut,
net.maizegenetics.dna.tag.TagsByTaxa.FilePacking format)
Write TagsOnGeneticMap file
outfileS - ifOut - format - public void writeFastA(java.lang.String outfileS)
Output FASTA file of TOGM
outfileS - public void writeFastQ(java.lang.String outfileS)
Output FASTQ file of TOGM
outfileS - public void swap(int index1,
int index2)
public void sortByPosition()
Sort TOGM by genetic position