public class HDF5Utils
public static boolean isTASSEL4HDF5Format(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static void createHDF5TaxaModule(ch.systemsx.cisd.hdf5.IHDF5Writer h5w)
public static void lockHDF5TaxaModule(ch.systemsx.cisd.hdf5.IHDF5Writer h5w)
public static void unlockHDF5TaxaModule(ch.systemsx.cisd.hdf5.IHDF5Writer h5w)
public static boolean doesTaxaModuleExist(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static boolean doTaxonCallsExist(ch.systemsx.cisd.hdf5.IHDF5Reader reader,
java.lang.String taxonName)
public static boolean doTaxonCallsExist(ch.systemsx.cisd.hdf5.IHDF5Reader reader,
Taxon taxon)
public static boolean isTaxaLocked(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static boolean addTaxon(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
Taxon taxon)
Adds a taxon to the taxon module
h5w - taxon - public static void writeHDF5Annotation(ch.systemsx.cisd.hdf5.IHDF5Writer writer,
java.lang.String path,
GeneralAnnotation annotations)
public static void replaceTaxonAnnotations(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
Taxon modifiedTaxon)
public static GeneralAnnotationStorage readHDF5Annotation(ch.systemsx.cisd.hdf5.IHDF5Reader reader, java.lang.String path)
public static GeneralAnnotationStorage readHDF5Annotation(ch.systemsx.cisd.hdf5.IHDF5Reader reader, java.lang.String path, java.lang.String[] annotationKeys)
public static Taxon getTaxon(ch.systemsx.cisd.hdf5.IHDF5Reader reader, java.lang.String taxonName)
public static java.util.List<java.lang.String> getAllTaxaNames(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static void writeHDF5TaxaNumTaxa(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
int numTaxa)
public static int getHDF5TaxaNumTaxa(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static int getHDF5GenotypeTaxaNumber(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static void createHDF5GenotypeModule(ch.systemsx.cisd.hdf5.IHDF5Writer h5w)
public static void lockHDF5GenotypeModule(ch.systemsx.cisd.hdf5.IHDF5Writer h5w)
public static void unlockHDF5GenotypeModule(ch.systemsx.cisd.hdf5.IHDF5Writer h5w)
public static boolean doesGenotypeModuleExist(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static boolean isHDF5GenotypeLocked(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static void writeHDF5GenotypesMaxNumAlleles(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
int maxNumAlleles)
public static void writeHDF5GenotypesRetainRareAlleles(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
boolean retainRareAlleles)
public static void writeHDF5GenotypesNumTaxa(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
int numTaxa)
public static void writeHDF5GenotypesScoreType(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
java.lang.String scoreType)
public static void writeHDF5GenotypesAlleleStates(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
java.lang.String[] aEncodings)
public static kotlin.Array[] getHDF5GenotypesCalls(ch.systemsx.cisd.hdf5.IHDF5Reader reader,
java.lang.String taxon)
public static void writeHDF5GenotypesCalls(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
java.lang.String taxon,
kotlin.Array[] calls)
public static void replaceHDF5GenotypesCalls(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
java.lang.String taxon,
kotlin.Array[] calls)
public static void replaceHDF5GenotypesCalls(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
java.lang.String taxon,
int startSite,
kotlin.Array[] calls)
public static kotlin.Array[] getHDF5GenotypesDepth(ch.systemsx.cisd.hdf5.IHDF5Reader reader,
java.lang.String taxon)
public static boolean doesGenotypeDepthExist(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static void writeHDF5GenotypesDepth(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
java.lang.String taxon,
kotlin.Array[] depth)
public static void replaceHDF5GenotypesDepth(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
java.lang.String taxon,
kotlin.Array[] depth)
public static kotlin.Array[] getHDF5Alleles(ch.systemsx.cisd.hdf5.IHDF5Reader reader,
WHICH_ALLELE allele)
public static kotlin.Array[] getHDF5GenotypeSiteScores(ch.systemsx.cisd.hdf5.IHDF5Reader reader,
java.lang.String taxon,
java.lang.String siteScoreType)
public static void writeHDF5GenotypeSiteScores(ch.systemsx.cisd.hdf5.IHDF5Writer writer,
java.lang.String taxon,
java.lang.String siteScoreType,
kotlin.Array[] values)
public static int getHDF5PositionNumber(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static void createHDF5PositionModule(ch.systemsx.cisd.hdf5.IHDF5Writer h5w)
public static void writeHDF5PositionNumSite(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
int numSites)
public static kotlin.Array[] getHDF5ReferenceAlleles(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static kotlin.Array[] getHDF5ReferenceAlleles(ch.systemsx.cisd.hdf5.IHDF5Reader reader,
int startSite,
int numSites)
public static kotlin.Array[] getHDF5AncestralAlleles(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static kotlin.Array[] getHDF5AncestralAlleles(ch.systemsx.cisd.hdf5.IHDF5Reader reader,
int startSite,
int numSites)
public static void createHDF5TagModule(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
int tagLengthInLong)
public static boolean isHDF5TagLocked(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static int getHDF5TagCount(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static int getHDF5TagLengthInLong(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static boolean doTagsExist(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static java.lang.String getTagPath(Tag tag)
public static kotlin.Array[] getTags(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static void writeTagDistributionBucket(ch.systemsx.cisd.hdf5.IHDF5Writer h5w,
int bucket,
kotlin.Array[] tags,
kotlin.Array[] length,
kotlin.Array[] encodedTaxaDist,
int maxTaxa,
kotlin.Array[] tagDistOffset)
public static boolean doTagsByTaxaExist(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
public static void writeHDF5EntireArray(java.lang.String objectPath,
ch.systemsx.cisd.hdf5.IHDF5Writer myWriter,
int objMaxLength,
int blockSize,
java.lang.Object val)
objectPath - myWriter - objMaxLength - blockSize - val - public static void writeHDF5Block(java.lang.String objectPath,
ch.systemsx.cisd.hdf5.IHDF5Writer myWriter,
int blockSize,
int block,
java.lang.Object val)
objectPath - myWriter - blockSize - block - val -