public class CombineGenotypeTable implements GenotypeTable
Combines multiple GenotypeTables together.
public static GenotypeTable getInstance(GenotypeTable[] genoTables)
This factory method combines given genoTables. If only one genotypeTable, then it is returned unchanged. Otherwise, this requires that each genotypeTable has the same Taxa in the same order.
genoTables - public static GenotypeTable getInstance(GenotypeTable[] genoTables, boolean isUnion)
This factory method combines given genoTables. If only one genotypeTable, then it is returned unchanged. If isUnion equals true, a union join of the Identifiers will be used to construct the combination. Any genotypeTable not containing one of the Identifiers will return unknown value for those locations. If isUnion equals false, a intersect join of the Identifiers will be used.
genoTables - genoTables to combineisUnion - whether to union or intersect joinpublic byte genotype(int taxon,
int site)
public kotlin.Array[] genotypeRange(int taxon,
int startSite,
int endSite)
public byte genotype(int taxon,
Chromosome locus,
int physicalPosition)
public int translateSite(int site)
Returns which genotypeTable to use.
site - public boolean hasReference()
public java.lang.String siteName(int site)
public int numberOfSites()
public int chromosomeSiteCount(Chromosome locus)
public int chromosomalPosition(int site)
public int siteOfPhysicalPosition(int physicalPosition,
Chromosome locus)
public int siteOfPhysicalPosition(int physicalPosition,
Chromosome locus,
java.lang.String snpName)
public Chromosome chromosome(int site)
public Chromosome[] chromosomes()
public int numChromosomes()
public int indelSize(int site)
public boolean isIndel(int site)
public byte referenceAllele(int site)
public byte alternateAllele(int site)
public GenotypeTable[] compositeAlignments()
public byte majorAllele(int site)
public byte minorAllele(int site)
public kotlin.Array[] minorAlleles(int site)
public kotlin.Array[] alleles(int site)
public double minorAlleleFrequency(int site)
public kotlin.Array[] allelesSortedByFrequency(int site)
public kotlin.Array[] genotypeArray(int taxon,
int site)
public kotlin.Array[] genotypeAllTaxa(int site)
public kotlin.Array[] genotypeAllSites(int taxon)
public BitSet allelePresenceForAllSites(int taxon, WHICH_ALLELE allele)
public kotlin.Array[] allelePresenceForSitesBlock(int taxon,
WHICH_ALLELE allele,
int startBlock,
int endBlock)
public java.lang.String genotypeAsString(int taxon,
int site)
public java.lang.String[] genotypeAsStringArray(int taxon,
int site)
public kotlin.Array[] referenceAlleles(int startSite,
int endSite)
public kotlin.Array[] referenceAlleleForAllSites()
public boolean isHeterozygous(int taxon,
int site)
public kotlin.Array[] physicalPositions()
public java.lang.String chromosomeName(int site)
public kotlin.Array[] chromosomesOffsets()
public java.util.Set<net.maizegenetics.dna.snp.score.SiteScore.SITE_SCORE_TYPE> siteScoreTypes()
public boolean isAllPolymorphic()
public boolean isPolymorphic(int site)
public double majorAlleleFrequency(int site)
public java.lang.String genomeVersion()
public boolean isPositiveStrand(int site)
public boolean isPhased()
public boolean retainsRareAlleles()
public java.lang.String[] alleleDefinitions()
public java.lang.String[] alleleDefinitions(int site)
public java.lang.String genotypeAsString(int site,
byte value)
public int maxNumAlleles()
public int totalGametesNonMissingForSite(int site)
public int heterozygousCount(int site)
public int minorAlleleCount(int site)
public int majorAlleleCount(int site)
public java.lang.Object[] genosSortedByFrequency(int site)
public kotlin.Array[] allelesBySortType(net.maizegenetics.dna.snp.GenotypeTable.ALLELE_SORT_TYPE scope,
int site)
public BitSet allelePresenceForAllTaxa(int site, WHICH_ALLELE allele)
public BitSet haplotypeAllelePresenceForAllSites(int taxon, boolean firstParent, WHICH_ALLELE allele)
public BitSet haplotypeAllelePresenceForAllTaxa(int site, boolean firstParent, WHICH_ALLELE allele)
public kotlin.Array[] haplotypeAllelePresenceForSitesBlock(int taxon,
boolean firstParent,
WHICH_ALLELE allele,
int startBlock,
int endBlock)
public java.lang.String genotypeAsStringRange(int taxon,
int startSite,
int endSite)
public java.lang.String genotypeAsStringRow(int taxon)
public kotlin.Array[] firstLastSiteOfChromosome(Chromosome chromosome)
public int numberOfTaxa()
public Chromosome chromosome(java.lang.String name)
public java.lang.String majorAlleleAsString(int site)
public java.lang.String minorAlleleAsString(int site)
public TaxaList taxa()
public java.lang.String taxaName(int index)
public java.lang.String diploidAsString(int site,
byte value)
public int totalNonMissingForSite(int site)
public java.lang.Object[] genoCounts()
public java.lang.Object[] majorMinorCounts()
public int totalGametesNonMissingForTaxon(int taxon)
public int heterozygousCountForTaxon(int taxon)
public int totalNonMissingForTaxon(int taxon)
public boolean hasGenotype()
public boolean hasDepth()
public boolean hasAlleleProbabilities()
public boolean hasReferenceProbablity()
public boolean hasDosage()
public AlleleDepth depth()
public kotlin.Array[] depthForAlleles(int taxon,
int site)
public BitStorage bitStorage(WHICH_ALLELE allele)
public PositionList positions()
public GenotypeCallTable genotypeMatrix()
public AlleleProbability alleleProbability()
public float alleleProbability(int taxon,
int site,
net.maizegenetics.dna.snp.score.SiteScore.SITE_SCORE_TYPE type)
public ReferenceProbability referenceProbability()
public float referenceProbability(int taxon,
int site)
public Dosage dosage()
public byte dosage(int taxon,
int site)
public GeneralAnnotationStorage annotations()
public java.util.stream.Stream<java.lang.Byte> streamGenotype()
public java.util.stream.Stream<java.lang.Byte> streamGenotype(int taxon)
public boolean hasSiteTranslations()
public kotlin.Array[] siteTranslations()