public class AlleleDepthBuilder
public static AlleleDepthBuilder getInstance(ch.systemsx.cisd.hdf5.IHDF5Writer writer, int numSites)
AlleleDepthBuilder is created and depths are stored in a HDF5 file. setDepth methods are used to set the depths. Finish the building with build()
writer - numSites - public static AlleleDepth getFilteredInstance(HDF5AlleleDepth alleleDepth, FilterGenotypeTable filter)
public static AlleleDepthBuilder getInstance(int numTaxa, int numSites, TaxaList taxaList)
This returns an AlleleDepthBuilder where depths are stored in memory.
numTaxa - number of taxanumSites - number of sitestaxaList - taxa listpublic static AlleleDepth getFilteredInstance(AlleleDepth base, Translate translate)
This creates a filtered AlleleDepth.
base - original AlleleDepthtranslate - translatepublic static AlleleDepth getMaskInstance(AlleleDepth base, MaskMatrix mask)
public static AlleleDepth getInstance(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
This creates an AlleleDepth instance from an existing HDF5 file.
reader - readerpublic AlleleDepthBuilder addTaxon(int taxon, kotlin.Array[] values, net.maizegenetics.dna.snp.score.SiteScore.SITE_SCORE_TYPE type)
public AlleleDepthBuilder addTaxon(int taxon, kotlin.Array[] values)
public AlleleDepthBuilder setDepthRangeForTaxon(int taxon, int siteOffset, kotlin.Array[] depths)
Set depth for range of sites and alleles for a taxon simultaneously. First dimension of depths is number of alleles (6 for Nucleotide) and second dimension is sites.
taxon - Index of taxonsiteOffset - site offsetdepths - array[allele][site] of all valuespublic void reorderPositions(kotlin.Array[] newIndices)
public AlleleDepth build()