public class PhenotypeBuilder
public PhenotypeBuilder fromFile(java.lang.String filename)
filename - the name of a file containing phenotype data to be importedpublic PhenotypeBuilder fromPhenotype(Phenotype base)
base - the Phenotype from which to create a new Phenotypepublic PhenotypeBuilder fromPhenotypeList(java.util.List<net.maizegenetics.phenotype.Phenotype> phenotypes)
phenotypes - a List of Phenotypespublic PhenotypeBuilder fromAttributeList(java.util.List<net.maizegenetics.phenotype.PhenotypeAttribute> attributes, java.util.List<net.maizegenetics.phenotype.Phenotype.ATTRIBUTE_TYPE> types)
attributes - a list of attributestypes - a list of types matching the attribute listpublic PhenotypeBuilder unionJoin()
public PhenotypeBuilder intersectJoin()
public PhenotypeBuilder concatenate()
public PhenotypeBuilder assignName(java.lang.String name)
public PhenotypeBuilder keepTaxa(java.util.List<net.maizegenetics.taxa.Taxon> taxaToKeep)
taxaToKeep - a list of taxa to be kept from the base Phenotypepublic PhenotypeBuilder removeTaxa(java.util.List<net.maizegenetics.taxa.Taxon> taxaToRemove)
taxaToRemove - a list of taxa to removed from the base Phenotypepublic PhenotypeBuilder keepAttributes(java.util.List<net.maizegenetics.phenotype.PhenotypeAttribute> attributesToKeep)
attributesToKeep - a list of the attributes to be keptpublic PhenotypeBuilder keepAttributes(kotlin.Array[] indexOfAttributes)
indexOfAttributes - the column numbers of the attributes in the base Phenotype to be included in the newly built Phenotypepublic PhenotypeBuilder changeAttributeType(java.util.Map<net.maizegenetics.phenotype.PhenotypeAttribute,net.maizegenetics.phenotype.Phenotype.ATTRIBUTE_TYPE> changeMap)
changeMap - a Map of PhenotypeAttribute to ATTRIBUTE_TYPE for PhenotypeAttributes that should be assigned new typespublic PhenotypeBuilder typesOfRetainedAttributes(java.util.List<net.maizegenetics.phenotype.Phenotype.ATTRIBUTE_TYPE> attributeTypes)
attributeTypes - a list of attribute types for the attributes to be builtpublic PhenotypeBuilder pivotOn(java.util.List<net.maizegenetics.phenotype.PhenotypeAttribute> factors)
factors - a list of attributes on which to pivot the table. These must be CategoricalAttributes.public PhenotypeBuilder separateOn(java.util.List<net.maizegenetics.phenotype.PhenotypeAttribute> factors)
factors - a list of attributes used to create separate Phenotypes. These must be CategoricalAttributes.public PhenotypeBuilder removeMissingObservations()
public java.util.List<net.maizegenetics.phenotype.Phenotype> build()