public class AnnotateTOPM
Methods to annotate TOPM file, including adding mapping info from aligners, adding PE tag position and genetic position, model prediction for the best position
public AnnotateTOPM(TagsOnPhysicalMapV3 topm)
Constructor from a TOPM file
topm - public void annotateBestMappingImport(java.lang.String indexDirS,
java.lang.String predictDirS,
net.maizegenetics.dna.map.TagMappingInfoV3.Aligner priorityAligner)
Import prediction result to TOPM, contain hard coding on map index
indexDirS - predictDirS - priorityAligner - public void annotateBestMappingPredict(java.lang.String modelFileS,
java.lang.String tagCountFileS,
java.lang.String inputDirS,
java.lang.String indexDirS,
java.lang.String outputDirS)
Command line version to predict if hypotheses are correct using weka RandomForest. Make sure weka is installed (in ClassPath) in local machine Contain hard coding
modelFileS - tagCountFileS - inputDirS - indexDirS - outputDirS - public int getNumOfRank0(int tagIndex,
kotlin.Array[] mapIndex)
Return the number of Rank0 in an aligner
tagIndex - mapIndex - public int getNumOfAlign(int tagIndex,
kotlin.Array[] mapIndex)
Return number of alignment in an aligner
tagIndex - mapIndex - public double getPBest(int tagIndex)
Return the most significant p-value across all hypotheses
tagIndex - public int getNumOfAlignAll(int tagIndex)
Return number of alignment hypotheses across all aligners, excluding PEEnd1 and PEEnd2
tagIndex - public double minusLog10P(double p)
Return -log10(p-value), if p-value doesn't exist(p < 0), reutrn Double.NEGATIVE_INFINITY
p - public void annotateWithBowtie2(java.lang.String samFileS,
int maxMappingNum)
Annotate the TOPM file using Bowtie2
samFileS - maxMappingNum - is the max number of multiple alignmentpublic void annotateWithBWA(java.lang.String samFileS,
int maxMappingNum)
Annotate the TOPM with BWA
samFileS - maxMappingNum - public void annotateWithBWAMEM(java.lang.String samFileS,
int maxMappingNum)
Annotate the TOPM file using bwa-mem
samFileS - maxMappingNum - public void annotateWithBlastFromDir(java.lang.String blastDirS,
int maxMappingNum)
Annotate the TOPM with BLAST from a directory, where slices of blast result are stored
blastDirS - maxMappingNum - public void annotateWithBLAST(java.lang.String blastM8FileS,
int maxMappingNum)
Annotate the TOPM with BLAST
blastM8FileS - maxMappingNum - public void annotateWithPE(java.lang.String PETOPMFileS,
int maxMappingNum)
Annotate the TOPM with PE, using bowtie2 sam file
PETOPMFileS - maxMappingNum - public void annotateWithGMGW(java.lang.String TOGMFileS,
int maxMappingNum)
Annotate the TOPM with whole genome genetic mapping
TOGMFileS - maxMappingNum -