public class FilterGenotypeTable
Taxa and site filtering of GenotypeTables. The class essentially creates views of the baseGenotypeTable through arrays for indirection.
public static GenotypeTable getInstance(GenotypeTable base, TaxaList taxa, PositionList positions, Translate translate)
public static PositionList createPositions(GenotypeTable genotypes, Translate translate)
public static TaxaList createTaxa(GenotypeTable genotypes, Translate translate)
public static GenotypeTable getInstance(GenotypeTable genotypes, PositionList positions, kotlin.Array[] redirectSites)
For use when converting between coordinate systems.
genotypes - base genotypespositions - new position listredirectSites - redirected sites from positions to base genotypespublic static GenotypeTable getInstance(GenotypeTable a, TaxaList subTaxaList)
This returns GenotypeTable with only specified subTaxaList. Defaults to retain unknown taxa.
a - original genotype tablesubTaxaList - taxa list subsetpublic static GenotypeTable getInstanceSortTaxaAlphabetically(GenotypeTable genotypes)
public static Tuple<net.maizegenetics.dna.snp.GenotypeTable,kotlin.Array[]> getInstanceTaxaOrderedByGeneticDistance(GenotypeTable genotypes, int taxon)
public static GenotypeTable getInstance(GenotypeTable genotype, TaxaList subTaxaList, boolean retainUnknownTaxa)
This returns FilterGenotypeTable with only specified subTaxaList. If retainUnknownTaxa is true then Alignment will return unknown values for missing taxa.
genotype - original genotype tablesubTaxaList - taxa list subsetretainUnknownTaxa - whether to retain unknown taxapublic static GenotypeTable getInstanceRemoveIDs(GenotypeTable a, TaxaList subTaxaList)
Removes specified IDs.
a - alignment to getInstancesubTaxaList - specified IDspublic static GenotypeTable getInstance(GenotypeTable genotypes, kotlin.Array[] subSites)
public static GenotypeTable getInstance(GenotypeTable genotypes, BitSet subSites, boolean includeSites)
public static GenotypeTable getInstance(GenotypeTable a, java.util.List<java.lang.String> siteNamesToKeep)
public static GenotypeTable getInstance(GenotypeTable a, java.lang.String[] siteNamesToKeep)
public static GenotypeTable getInstanceRemoveSiteNames(GenotypeTable a, java.util.List<java.lang.String> siteNamesToRemove)
public static GenotypeTable getInstanceRemoveSiteNames(GenotypeTable a, java.lang.String[] siteNamesToRemove)
public static GenotypeTable getInstance(GenotypeTable a, PositionList subPositionList)
public static GenotypeTable getInstance(GenotypeTable a, java.lang.String chromosome, int startPhysicalPos, int endPhysicalPos)
public static GenotypeTable getInstance(GenotypeTable a, Chromosome chromosome, int startPhysicalPos, int endPhysicalPos)
public static GenotypeTable getInstance(GenotypeTable a, Chromosome chromosome)
public static GenotypeTable getInstance(GenotypeTable genotypes, int startSite, int endSite)
Factory method that returns genotypes FilterGenotypeTable viewing sites between start site (inclusive) and end site (inclusive).
genotypes - alignmentstartSite - start siteendSite - end sitepublic static GenotypeTable getInstance(GenotypeTable a, int startSite, int endSite, boolean includeSites)