public TagData
Interface to GBS Tag Data. Replaces TagsCounts, TBT, and TOPM TODO: TAS-476
TaxaDistribution getTaxaDistribution(Tag tag)
Returns the TaxaDistribution for a given taxa. If distribution data is not available, null is returned.
java.util.Set<net.maizegenetics.dna.snp.Allele> getAlleles(Tag tag)
Provides all SNP allele calls associated with a given tag.
tag - used for queryclass NucleotideAlignmentConstants. If no allele are available for a tag, the map will be empty.com.google.common.collect.Multimap<net.maizegenetics.dna.tag.Tag,net.maizegenetics.dna.snp.Allele> getAlleleMap()
Provides an iterator that goes through all tags with non-empty alleleMaps.
class NucleotideAlignmentConstants.)java.util.Set<net.maizegenetics.dna.tag.Tag> getTagsForSNPPosition(Position position)
Return all tags that cover a particular SNP position. Empty list is returned if there are no tags.
java.util.Set<net.maizegenetics.dna.tag.Tag> getTagsForAllele(Position position, byte allele)
Return all tags that call a particular SNP position allele. Empty list is returned if there are no tags.
java.util.Set<net.maizegenetics.dna.tag.Tag> getTagsForAllele(Allele allele)
Return all tags that call a particular SNP position allele. Empty list is returned if there are no tags.
java.util.Set<net.maizegenetics.dna.tag.Tag> getTags()
Set of all tags
java.util.Map<net.maizegenetics.dna.tag.Tag,java.lang.String> getTagsNameMap()
Map of all tags with associated names
PositionList getSNPPositions()
Create the unique list of SNPs (variants) based on all alleles.
PositionList getSNPPositions(int minSupportValue)
Create the unique list of SNPs (variants) based on all alleles. Only alleles with support values greater than the minSupportValue are considered.
PositionList getSNPPositions(double minQualityScore)
Create the unique list of SNPs (variants) based on all alleles. Only positions with minimum quality score equal to or greater than the u are considered.
PositionList getSNPPositionsForChromosomes(java.lang.Integer startChr, java.lang.Integer endChr)
Get SNPs for specified chromosomes
java.util.Set<net.maizegenetics.dna.tag.Tag> getTagsForTaxon(Taxon taxon)
Returns the list of tags present of a taxon. Note this could be a very compute intensive request.
java.util.Map<net.maizegenetics.dna.tag.Tag,java.lang.Integer> getTagDepth(Taxon taxon, Position position)
java.util.Map<net.maizegenetics.dna.tag.Tag,java.lang.Integer> getTagsWithDepth(int minimumDepth)
PositionList getTagCutPositions(boolean onlyBest)
Get all of the genomic cut positions associated with all tags. Positions in the position list are annotated with cigarAlignment, isBest, alignmentApproach, and supportValue.
PositionList getTagCutPositions(Chromosome chromosome, int firstPosition, int lastPosition, boolean onlyBest)
Get the unique list of position that tags to for a specific chromosome within a range.
chromosome - chromosomefirstPosition - first physical position in genome (value <0 will return physical >=0)lastPosition - inclusive last physical position (value <0 will assume Integer.MAX)onlyBest - only return positions flagged as bestjava.util.Map<net.maizegenetics.dna.tag.Tag,net.maizegenetics.dna.map.Position> getTagCutPosition(java.util.Set<net.maizegenetics.dna.tag.Tag> tag)
Get the cut position associated with a list of tags. Return a map of Tag/CutPosition The Position object is returned to facilitate grabbing both physical position and strand information.
java.util.Map<java.lang.String,java.lang.String> getTagAlignmentApproaches()
java.util.Map<net.maizegenetics.dna.map.Position,java.util.Map> getCutPositionTagTaxaMap(Chromosome chromosome, int firstPosition, int lastPosition)
Map of positions and with associated map of Tags and their taxa distribution and their alignment direction. Warning: This can be a very large data structure for entire chromosomes. Only the best positions are returned.
chromosome - chromosomefirstPosition - first physical position in genome (value <0 will return physical >=0)lastPosition - inclusive last physical position (value <0 will assume Integer.MAX)java.util.Map<net.maizegenetics.dna.map.Position,java.util.Map> getCutPosForStrandTagTaxaMap(Chromosome chromosome, int firstPosition, int lastPosition, boolean strand)
For a given snp position, Returns a Map of Allele with its associated Tag/TaxaDistribution Differs from getCutPositionTagTaxaMap() in that it now specifies on which strand the returned tags must appear.
java.util.Map<net.maizegenetics.dna.tag.Tag,net.maizegenetics.dna.tag.TaxaDistribution> getTagsTaxaMap(Position cutPosition)
For a given genomic position returns of the map tags and their distribution.
cutPosition - Genomic position of the cut site.TaxaList getTaxaList()
Returns the taxa list associated with taxa distribution
com.google.common.collect.ListMultimap<java.lang.String,net.maizegenetics.util.Tuple> getSNPPositionQS(com.google.common.collect.HashMultimap<java.lang.String,java.lang.Integer> myMap)
For a given map of chromosome/posiiton, Returns a map of chromsome (string) and Tuple (position,qualityScore)
com.google.common.collect.Multimap<net.maizegenetics.dna.snp.Allele,java.util.Map> getAllelesTagTaxaDistForSNP(Position position)
For a given snp position, Returns a Map of Allele with its associated Tag/TaxaDistribution
java.util.List<net.maizegenetics.dna.map.Chromosome> getChromosomesFromCutPositions()
Return all chromosomes stored in database. Returns a list of distinct chromsome objects from the cutPosition table
java.util.Map<net.maizegenetics.dna.tag.Tag,net.maizegenetics.dna.tag.TaxaDistribution> getAllTagsTaxaMap()
Return all tag/taxadistribution stored in database. Returns a Hashmap of tag.taxadistributions
TableReport getAllCountsForTaxonTissue(Taxon taxon, java.lang.String tissue)
Phenotype getAllCountsForTissue(java.lang.String tissue)
java.util.Set<java.lang.String> getAllTissue()
Return the set of tissue