public class TaxaListBuilder
A builder for creating immutable instances. Example:interface TaxaList TaxaListBuilder tlb=new TaxaListBuilder();
for (int i = 0; i < 10; i++) {
Taxon at= new Taxon.Builder("Z"+i+":Line:mays:Zea")
.inbreedF(0.99f)
.parents("B73","B97")
.pedigree("(B73xB97)S6I1")
.build();
tlb.add(at);
}
TaxaList tl=tlb.build();
If building from HDF5:
TaxaList tl=new TaxaListBuilder().buildFromHDF5Genotypes(testMutFile);
interface TaxaListpublic static TaxaList getInstance(int numTaxa)
public TaxaListBuilder add(Taxon taxon)
public TaxaListBuilder add(java.lang.String taxon)
public boolean contains(Taxon taxon)
public TaxaListBuilder addOrMerge(Taxon taxon)
public TaxaListBuilder addAll(java.util.Collection<net.maizegenetics.taxa.Taxon> taxa)
public TaxaListBuilder addAll(GenotypeTable a)
public TaxaListBuilder addAll(java.lang.String[] taxa)
public TaxaListBuilder addAll(java.util.List<java.lang.String> taxa)
public TaxaListBuilder addAll(Taxon[] taxa)
public TaxaListBuilder addAll(TaxaListBuilder builder)
public TaxaList build()
public TaxaList buildFromHDF5Genotypes(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
Builds TaxaList with annotations from an HDF5 file. The list of Taxa come from the those taxa that have been genotyped (in /Genotypes/ path), while the annotations come from the /Taxa/ path. Frequently these two lists are identical, but sometimes this can Genotypes can have a subset of the taxa in /Taxa/
reader - public TaxaList buildFromHDF5(ch.systemsx.cisd.hdf5.IHDF5Reader reader)
Builds TaxaList with annotations from an HDF5 file. The list of Taxa and annotations come from the /Taxa/ path. This maybe a super set of what is present in the /Genotypes/ or /TBT/ paths.
reader - public static void createHDF5TaxaList(ch.systemsx.cisd.hdf5.IHDF5Writer writer,
TaxaList exportList)
public TaxaListBuilder sortTaxaAlphabetically(GenotypeCallTableBuilder genotypes)
public TaxaListBuilder sortTaxaAlphabetically()
public kotlin.Array[] sortAlphabetically()
public int numberOfTaxa()