public class GBSUtils
This class contains methods and constants used by various classes in the GBSv2 pipeline.
public static java.lang.String inputFileGlob
public static java.lang.String sampleNameField
public static java.lang.String flowcellField
public static java.lang.String laneField
public static java.lang.String barcodeField
public static java.lang.String tissueNameField
public static java.lang.String fileNameField
public static java.lang.String[] readFastQBlock(java.io.BufferedReader bw,
int currentRead)
Method for reading FastQ four line structure, and returning a string array with [sequence, qualityScore]
public static java.lang.String[] readDeMultiPlexFastQBlock(java.io.BufferedReader bw,
int currentRead)
Method for reading FastQ four line structure, and returning a string array with [sequence, qualityScore]
public static int determineQualityScoreBase(java.nio.file.Path fastqFile)
Method for reading FastQ four line structure, and returning a string array with [sequence, qualityScore]
public static java.util.ArrayList<net.maizegenetics.taxa.Taxon> getLaneAnnotatedTaxaList(java.nio.file.Path keyPath,
java.nio.file.Path fastQpath)
Returns an annotated taxaList based on a Keyfile for GBS
keyPath - fastQpath - public static BarcodeTrie initializeBarcodeTrie(java.util.ArrayList<net.maizegenetics.taxa.Taxon> taxaList, TaxaList masterTaxaList, GBSEnzyme myEnzyme)
Produces a trie for sorting the read
taxaList - the taxaList of the current flowcell lanes that is annotated with barcode informationmasterTaxaList - the mastertaxaList provides the taxaIndexmyEnzyme - public static BarcodeTrie initializeBarcodeTrie(java.util.ArrayList<net.maizegenetics.taxa.Taxon> taxaList, TaxaList masterTaxaList, java.util.ArrayList masterTissueList, GBSEnzyme myEnzyme)
public static java.util.List<java.nio.file.Path> culledFiles(java.util.List<java.nio.file.Path> directoryFiles,
java.nio.file.Path keyFile)
Produces a list of fastq files that are represented by the plugin's keyfile
directoryFiles - : List of all the files in the directorypublic static com.google.common.collect.ListMultimap<java.lang.String,java.lang.String> parseKeyfileIntoMap(java.lang.String fileName)
Parses a tab-delimited keyFile storing the flow cell and lane values into a multimap. The flow cell is the key, which may have multiple associated lanes.