public class ImportUtils
Methods for importing GenotypeTables from various file formats.
public static int NUM_HAPMAP_NON_TAXA_HEADERS
public static GenotypeTable read(java.lang.String filename)
This utility attempts to identify the file format(i.e. Hapmap, VCF, HDF5, Fasta, PLINK, Phylip, Numerical Genotype) of the given file and loads it as a Genotype Table.
filename - input filepublic static GenotypeTable read(java.lang.String filename, boolean keepDepth, boolean sortPositions)
This utility attempts to identify the file format(i.e. Hapmap, VCF, HDF5, Fasta, PLINK, Phylip, Numerical Genotype) of the given file and loads it as a Genotype Table.
filename - input filekeepDepth - whether to keep depth (if available)sortPositions - whether to sort positions (if out of order)public static DataSet readDataSet(java.lang.String filename)
This utility attempts to identify the file format(i.e. Hapmap, VCF, HDF5, Fasta, PLINK, Phylip, Numerical Genotype) of the given file and loads it as a DataSet.
filename - public static GenotypeTable readGuessFormat(java.lang.String fileName)
public static GenotypeTable readFromVCF(java.lang.String filename, ProgressListener listener, boolean keepDepth, boolean sortPositions)
public static GenotypeTable readFromVCF(java.lang.String filename, ProgressListener listener, boolean keepDepth)
public static GenotypeTable readFromVCF(java.lang.String filename, ProgressListener listener)
public static GenotypeTable readFromVCF(java.lang.String filename)
public static GenotypeTable readFromHapmap(java.lang.String filename)
Read GenotypeTable from HapMap file
filename - input HapMap file namepublic static GenotypeTable readFromHapmap(java.lang.String filename, ProgressListener listener)
Read GenotypeTable from HapMap file
filename - input HapMap file namelistener - progress listener to track reading ratepublic static GenotypeTable readFromHapmap(java.lang.String filename, ProgressListener listener, boolean sortPositions)
Read GenotypeTable from HapMap file
filename - input HapMap file namelistener - progress listener to track reading ratesortPositions - whether to sort positionspublic static GenotypeTable readFromPLink(java.lang.String pedFilename, java.lang.String mapFilename, ProgressListener listener)
public static GenotypeTable readFromPLink(java.lang.String pedFilename, java.lang.String mapFilename, ProgressListener listener, boolean sortPositions)
public static GenotypeTable readFasta(java.lang.String filename)