public RepGenData
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> 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.
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
PositionList getPhysicalMapPositions()
Get all of the physical map positions associated with the ref tags.
PositionList getPhysicalMapPositions(Chromosome chromosome, int firstPosition, int lastPosition)
Get the unique list of positions for ref tags 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)java.util.Set<net.maizegenetics.analysis.gbs.repgen.RefTagData> getRefTags()
Set of all reference tags
com.google.common.collect.Multimap<net.maizegenetics.dna.tag.Tag,net.maizegenetics.analysis.gbs.repgen.AlignmentInfo> getTagAlignmentsForTags(java.util.List<net.maizegenetics.dna.tag.Tag> tags,
int minscore)
Method returns a map of all tag (non-ref) alignments for specified non-ref tags. All tags on the list must be non-ref tags as the tagID is pulled from the tagTagIDMap.
com.google.common.collect.Multimap<net.maizegenetics.dna.tag.Tag,net.maizegenetics.analysis.gbs.repgen.AlignmentInfo> getRefAlignmentsForTags(java.util.List<net.maizegenetics.dna.tag.Tag> tags,
int minscore)
Map of all reftag alignments for specified non-ref tags. All tags on the list must be non-ref tags as the tagID is pulled from the tagTagIDMap.
tags - list of tags for which we want the ref tag alignmentminscore - minimum score value for alignment to be includedcom.google.common.collect.Multimap<net.maizegenetics.dna.tag.Tag,net.maizegenetics.analysis.gbs.repgen.AlignmentInfo> getTagAlignmentsForRefTag(RefTagData refTag, int minscore)
Map of all non-reftag alignments for specified ref tag.
refTag - A ref tag for which we want the non-ref tag alignmentminscore - minimum score value for alignment to be includedcom.google.common.collect.Multimap<net.maizegenetics.dna.tag.Tag,net.maizegenetics.analysis.gbs.repgen.AlignmentInfo> getAllNonRefTagAlignments(int minscore)
Map of all non-ref tags and their alignments This method calls getTagAlignmentsForTags(). All tag-tag alignments are return
minscore - the minimum score required to pull the alignment minscore=0 means get them allcom.google.common.collect.Multimap<net.maizegenetics.analysis.gbs.repgen.RefTagData,net.maizegenetics.analysis.gbs.repgen.AlignmentInfo> getAllRefTagAlignments(int minscore)
Map of all alignments for reference tags This returns reftag to reftag alignments.
minscore - the minimum score required to pull the alignmentcom.google.common.collect.Multimap<net.maizegenetics.analysis.gbs.repgen.RefTagData,net.maizegenetics.analysis.gbs.repgen.AlignmentInfo> getRefAlignmentsForRefTags(java.util.List<net.maizegenetics.analysis.gbs.repgen.RefTagData> refTags,
int minscore)
Map of all alignments for specified ref tags having minimum specified score. minscore = 0 means get all tags. This returns refTag to refTag alignments from the reftag_reftag_Alignments table. It does not include refTag to non-refTag alignments.
minscore - the minimum score required to pull the alignmentcom.google.common.collect.Multimap<net.maizegenetics.dna.tag.Tag,net.maizegenetics.analysis.gbs.repgen.TagCorrelationInfo> getCorrelationsForTags(java.util.List<net.maizegenetics.dna.tag.Tag> tags)
Grab correlations for specified tags