Bases: TASSELpy.net.maizegenetics.trait.Phenotype.Phenotype
Methods
| castTo(pyType) | Casts this object to another java/python type |
| clone(*args) | Creates and returns a copy of this object |
| equals(*args) | Indicates whether some other object is “equal to” this one |
| getArray(size) | Gets an empty wrapped java array that can accept the type of the wrapped |
| getClass(*args) | Returns the runtime class of this Object. |
| getColumnCount(*args) | Gets the number of columns |
| getData(*args) | Gets data from the phenotype |
| getDblArray(rows[, cols]) | Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e. |
| getElementCount(*args) | Gets the total number of elements in the dataset |
| getNumberOfTaxa(*args) | Gets the number of taxa or rows in this data set |
| getNumberOfTraits(*args) | Gets the number of traits or columns in this data set |
| getRow(*args) | Returns specified row |
| getRowCount(*args) | Gets the number of rows |
| getTableColumnNames(*args) | Gets the names of the columns |
| getTableTitle(*args) | Gets the title of the table |
| getTaxa(*args) | Get the taxa in this data set in order by row number |
| getTaxon(*args) | Gets a taxon |
| getTrait(*args) | Gets a trait |
| getTraits(*args) | Gets the traits or columns of this dataset, in order by column number |
| getValueAt(*args) | Returns value at given row and column |
| hashCode(*args) | Returns a hash code vlaue for the object |
| setData(*args) | Sets the double value for this trait and taxon |
| toDict() | Outputs the table as a dictionary |
| toString(*args) | Returns a string representation of the object |
| whichTaxon(*args) | Gets the index of a taxon |
| whichTrait(*args) | Gets the index of a trait |
| wrap_existing_array(arr_instance) | Wraps a java array of this class’s type |
Bases: TASSELpy.net.maizegenetics.trait.AbstractPhenotype.AbstractPhenotype
Class used for combining multiple phenotypes that may have different taxa among them
Methods
| castTo(pyType) | Casts this object to another java/python type |
| clone(*args) | Creates and returns a copy of this object |
| equals(*args) | Indicates whether some other object is “equal to” this one |
| getArray(size) | Gets an empty wrapped java array that can accept the type of the wrapped |
| getClass(*args) | Returns the runtime class of this Object. |
| getColumnCount(*args) | Gets the number of columns |
| getData(*args) | Gets data from the phenotype |
| getDblArray(rows[, cols]) | Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e. |
| getElementCount(*args) | Gets the total number of elements in the dataset |
| getInstance(*args) | Gets an instance of CombinePhenotype, allowing combining of more than |
| getNumberOfTaxa(*args) | Gets the number of taxa or rows in this data set |
| getNumberOfTraits(*args) | Gets the number of traits or columns in this data set |
| getRow(*args) | Returns specified row |
| getRowCount(*args) | Gets the number of rows |
| getTableColumnNames(*args) | Gets the names of the columns |
| getTableTitle(*args) | Gets the title of the table |
| getTaxa(*args) | Get the taxa in this data set in order by row number |
| getTaxon(*args) | Gets a taxon |
| getTrait(*args) | Gets a trait |
| getTraits(*args) | Gets the traits or columns of this dataset, in order by column number |
| getValueAt(*args) | Returns value at given row and column |
| hashCode(*args) | Returns a hash code vlaue for the object |
| setData(*args) | Sets a particular data value |
| simpleCopy(*args) | Makes a copy of the CombinePhenotype as a SimplePhenotype |
| toDict() | Outputs the table as a dictionary |
| toString(*args) | Returns a string representation of the object |
| whichTaxon(*args) | Gets the index of a taxon |
| whichTrait(*args) | Gets the index of a trait |
| wrap_existing_array(arr_instance) | Wraps a java array of this class’s type |
Gets an instance of CombinePhenotype, allowing combining of more than one phenotype
| Signature: | getInstance (Phenotype phenotype1, Phenotype phenotype2, boolean isUnion) |
|---|---|
| Signature: | getInstance (Phenotype[] phenotypes, boolean isUnion) |
| Parameters: |
|
Bases: TASSELpy.net.maizegenetics.trait.AbstractPhenotype.AbstractPhenotype
Class used to filter through phenotypes
Methods
| castTo(pyType) | Casts this object to another java/python type |
| clone(*args) | Creates and returns a copy of this object |
| equals(*args) | Indicates whether some other object is “equal to” this one |
| getArray(size) | Gets an empty wrapped java array that can accept the type of the wrapped |
| getClass(*args) | Returns the runtime class of this Object. |
| getColumnCount(*args) | Gets the number of columns |
| getData(*args) | Gets data from the phenotype |
| getDblArray(rows[, cols]) | Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e. |
| getElementCount(*args) | Gets the total number of elements in the dataset |
| getInstance(*args) | Gets an instance of the filtered phenotype |
| getInstanceRemoveIDs(*args) | Gets a FilterPhenotype after removing certain taxa |
| getNumberOfTaxa(*args) | Gets the number of taxa or rows in this data set |
| getNumberOfTraits(*args) | Gets the number of traits or columns in this data set |
| getRow(*args) | Returns specified row |
| getRowCount(*args) | Gets the number of rows |
| getTableColumnNames(*args) | Gets the names of the columns |
| getTableTitle(*args) | Gets the title of the table |
| getTaxa(*args) | Get the taxa in this data set in order by row number |
| getTaxon(*args) | Gets a taxon |
| getTrait(*args) | Gets a trait |
| getTraits(*args) | Gets the traits or columns of this dataset, in order by column number |
| getValueAt(*args) | Returns value at given row and column |
| hashCode(*args) | Returns a hash code vlaue for the object |
| setData(*args) | Sets a particular datum |
| simpleCopy(*args) | Makes a copy of the FilterPhenotype object, returning a SimplePhenotype |
| toDict() | Outputs the table as a dictionary |
| toString(*args) | Returns a string representation of the object |
| whichTaxon(*args) | Gets the index of a taxon |
| whichTrait(*args) | Gets the index of a trait |
| wrap_existing_array(arr_instance) | Wraps a java array of this class’s type |
Gets an instance of the filtered phenotype
The indices for taxa and traits must be valid indexes in the original phenotype. That is, only taxa and traits in the original phenotype can be used. This function is not appropriate for union joins
Signatures:
static FilterPhenotype getInstance(Phenotype phenotype, int[] taxa, int[] traits) static FilterPhenotype getInstance(Phenotype phenotype, TaxaList taxa,
List<Trait> traits)
Arguments:
phenotype – the input Phenotype taxa – an index of taxa to include in the filtered subset. If null,
all taxa will be included
List<Trait> traits)
phenotype – the input Phenotype taxa – the taxa to be included in the output FIlterPhenotype traits – the traits to be included in the output FilterPhenotype
Returns:
A new FilterPhenotype
Gets a FilterPhenotype after removing certain taxa
| Signature: | getInstanceRemoveIDs (Phenotype phenotype, TaxaList taxa) |
|---|---|
| Parameters: |
|
| Returns: | A FilterPhenotype without excluded IDs |
| Return type: | FilterPhenotype |
Bases: TASSELpy.net.maizegenetics.util.TableReport.TableReport
Class combining a GenotypeTable and a Phenotype. Enters into quantitative genetics models
Methods
| castTo(pyType) | Casts this object to another java/python type |
| clone(*args) | Creates and returns a copy of this object |
| equals(*args) | Indicates whether some other object is “equal to” this one |
| getAlignment(*args) | Gets the alignment |
| getArray(size) | Gets an empty wrapped java array that can accept the type of the wrapped |
| getClass(*args) | Returns the runtime class of this Object. |
| getColumnCount(*args) | Gets the number of columns |
| getDblArray(rows[, cols]) | Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e. |
| getElementCount(*args) | Gets the total number of elements in the dataset |
| getInstance(*args) | Gets an instance of a MarkerPhenotype class |
| getPhenotype(*args) | Gets the phenotype |
| getRow(*args) | Returns specified row |
| getRowCount(*args) | Gets the number of rows |
| getTableColumnNames(*args) | Gets the names of the columns |
| getTableTitle(*args) | Gets the title of the table |
| getValueAt(*args) | Returns value at given row and column |
| hashCode(*args) | Returns a hash code vlaue for the object |
| toDict() | Outputs the table as a dictionary |
| toString(*args) | Returns a string representation of the object |
| wrap_existing_array(arr_instance) | Wraps a java array of this class’s type |
Gets the alignment
| Signature: | getAlignment () |
|---|---|
| Returns: | The alignment |
| Return type: | GenotypeTable |
Gets an instance of a MarkerPhenotype class
| Signature: | getInstance (GenotypeTable aa, Phenotype ca, boolean union) |
|---|---|
| Signature: | getInstance (MarkerPhenotype aac, TaxaList group) |
| Parameters: |
|
Bases: TASSELpy.java.lang.Object.Object
Class used to easily access information on MarkerPhenotype objects
Methods
| areTraitFactorsConsistent(*args) | Returns true if traits all have the same factors or no factors |
| castTo(pyType) | Casts this object to another java/python type |
| checkFactorCovariateEnvironments(*args) | Factor columns should either have no phenotype factors, or the ones they have should match at least one data column. |
| clone(*args) | Creates and returns a copy of this object |
| equals(*args) | Indicates whether some other object is “equal to” this one |
| getArray(size) | Gets an empty wrapped java array that can accept the type of the wrapped |
| getClass(*args) | Returns the runtime class of this Object. |
| getCovariateName(*args) | Gets the name of a covariate |
| getCovariateValues(*args) | Gets the values of a covariate |
| getDblArray(rows[, cols]) | Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e. |
| getFactorName(*args) | Gets a factor name |
| getFactorValues(*args) | Gets the factor values for a factor |
| getLocusName(*args) | Gets the name of a locus |
| getLocusPosition(*args) | Gets the position of a locus |
| getMarkerChromosome(*args) | Gets the chromosome of a marker |
| getMarkerChromosomePosition(*args) | Gets the position of a marker on the chromosome |
| getMarkerName(*args) | Gets a marker name |
| getMarkerValue(*args) | Gets the value of a marker over the taxa |
| getMissingCovariates(*args) | Gets a boolean array indicating whether covariate values are missing |
| getMissingFactors(*args) | Gets the missing factors for a phenotype |
| getMissingMarkers(*args) | Gets a boolean array indicating which taxa have a marker missing |
| getMissingPhenotypes(*args) | Gets array of booleans indicating which taxa have missing phenotypes |
| getNumberOfBlocks(*args) | Gets the number of blocks for a phenotype |
| getNumberOfCovariates(*args) | Gets the number of covariates |
| getNumberOfFactors(*args) | Gets the number of factors |
| getNumberOfMarkers(*args) | Gets the number of markers |
| getNumberOfPhenotypes(*args) | Gets the number of Phenotypes |
| getNumberOfRows(*args) | Gets the number of rows for a phenotype |
| getPhenotypeName(*args) | Gets the name of a phenotype |
| getPhenotypeValues(*args) | Gets the values for a Phenotype |
| getTaxa(*args) | Gets the taxa that are present for a phenotype |
| hasMarkerNames(*args) | Gets whether there are marker names present |
| hashCode(*args) | Returns a hash code vlaue for the object |
| isMarkerDiscrete(*args) | Returns whether a given marker is discrete |
| toString(*args) | Returns a string representation of the object |
| wrap_existing_array(arr_instance) | Wraps a java array of this class’s type |
Instantiates a MarkerPhenotypeAdapter object
| Signature: | MarkerPhenotypeAdapter (Phenotype aPhenotype) |
|---|---|
| Signature: | MarkerPhenotypeAdapter (MarkerPhenotype aMarkerPhenotype) |
| Parameters: |
|
Returns true if traits all have the same factors or no factors
| Signature: | areTraitFactorsConsistent () |
|---|---|
| Returns: | true if all traits have the same factors or no factors |
| Return type: | boolean |
Factor columns should either have no phenotype factors, or the ones they have should match at least one data column.
| Signature: | checkFactorCovariateEnvironments () |
|---|---|
| Returns: | A message giving consistency information |
| Return type: | String |
Gets the name of a covariate
| Signature: | getCovariateName (int i) |
|---|---|
| Parameters: | i (int) – The index of a covariate |
| Returns: | The name of the covariate |
| Return type: | String |
Gets the values of a covariate
| Signature: | getCovariateValues (int phenotype, int covariate) |
|---|---|
| Parameters: |
|
| Returns: | The values of the covariate |
| Return type: | double[] |
Gets a factor name
| Signature: | getFactorName (int i) |
|---|---|
| Parameters: | i (int) – The index of a factor |
| Returns: | The name of the factor |
| Return type: | String |
Gets the factor values for a factor
| Signature: | getFactorValues (int phenotype, int factor) |
|---|---|
| Parameters: |
|
| Returns: | The names of the values for the factor |
| Return type: | String[] |
Gets the name of a locus
| Signature: | getLocusName (int marker) |
|---|---|
| Parameters: | marker (int) – The index of a marker |
| Returns: | The name of the locus |
| Return type: | String |
Gets the position of a locus
| Signature: | getLocusPosition (int marker) |
|---|---|
| Parameters: | marker (int) – The index of a marker |
| Returns: | The position of the locus |
| Return type: | int |
Gets the chromosome of a marker
| Signature: | getMarkerChromosome (int marker) |
|---|---|
| Parameters: | marker (int) – The index of a marker |
| Returns: | The chromosome of the marker |
| Return type: | String |
Gets the position of a marker on the chromosome
| Signature: | getMarkerChromosomePosition (int marker) |
|---|---|
| Parameters: | marker (int) – The index of a marker |
| Returns: | The position of the marker on a chromosome |
| Return type: | double |
Gets a marker name
| Signature: | getMarkerName (int i) |
|---|---|
| Parameters: | i (int) – The index of a marker |
| Returns: | The name of the marker |
| Return type: | String |
Gets the value of a marker over the taxa
| Signature: | getMarkerValue (int phenotype, int marker) |
|---|---|
| Parameters: |
|
| Returns: | The value of a marker over the taxa |
| Return type: | Object[] |
Gets a boolean array indicating whether covariate values are missing
| Signature: | getMissingCovariates (int phenotype, int covariate) |
|---|---|
| Parameters: |
|
| Returns: | Boolean array indicating whether covariate values are missing |
| Return type: | boolean[] |
Gets the missing factors for a phenotype
| Signature: | getMissingFactors (int phenotype, int factor) |
|---|---|
| Parameters: |
|
| Returns: | Boolean array indicating factor values are missing for a taxon |
| Return type: | boolean[] |
Gets a boolean array indicating which taxa have a marker missing
| Signature: | getMissingMarkers (int phenotype, int marker) |
|---|---|
| Parameters: |
|
| Returns: | Boolean array indicating which taxa have a marker missing |
| Return type: | boolean[] |
Gets array of booleans indicating which taxa have missing phenotypes
| Signature: | getMissingPhenotypes (int phenotype) |
|---|---|
| Parameters: | phenotype (int) – The index of a phenotype |
| Returns: | Array of booleans indicating which taxa have missing phenotypes |
| Return type: | boolean[] |
Gets the number of blocks for a phenotype
Signatures:
int getNumberOfBlocks(int phenotype)
Argument:
phenotype – The index of a phenotype
Returns:
The number of blocks
Gets the number of covariates
| Signature: | getNumberOfCovariates () |
|---|---|
| Returns: | The number of covariates |
| Return type: | int |
Gets the number of factors
| Signature: | getNumberOfFactors () |
|---|---|
| Returns: | The number of factors |
| Return type: | int |
Gets the number of markers
| Signature: | getNumberOfMarkers () |
|---|---|
| Returns: | The number of markers |
| Return type: | int |
Gets the number of Phenotypes
| Signature: | getNumberOfPhenotypes () |
|---|---|
| Returns: | The number of Phenotypes |
| Return type: | int |
Gets the number of rows for a phenotype
Signatures:
int getNumberOfRows(int phenotype)
Argument:
phenotype – The index of a phenotype
Returns:
The number of rows
Gets the name of a phenotype
| Signature: | getPhenotypeName (int i) |
|---|---|
| Parameters: | i (int) – The index of a phenotype |
| Returns: | The name of the phenotype |
| Return type: | String |
Gets the values for a Phenotype
| Signature: | getPhenotypeValues (int i) |
|---|---|
| Parameters: | i (int) – The index of a Phenotype |
| Returns: | The values for a Phenotype |
| Return type: | double[] |
Gets the taxa that are present for a phenotype
| Signature: | getTaxa (int phenotype) |
|---|---|
| Parameters: | phenotype (int) – The index of a Phenotype |
| Returns: | The taxa that are present for a Phenotype |
| Return type: | Taxon[] |
Bases: TASSELpy.net.maizegenetics.util.TableReport.TableReport
A collection of data for a set of Taxa. Each taxon is expected to appear only once in the data. Data is represented as a two dimensional table of doubles, with taxa as rows and traits as columns.
Methods
| castTo(pyType) | Casts this object to another java/python type |
| clone(*args) | Creates and returns a copy of this object |
| equals(*args) | Indicates whether some other object is “equal to” this one |
| getArray(size) | Gets an empty wrapped java array that can accept the type of the wrapped |
| getClass(*args) | Returns the runtime class of this Object. |
| getColumnCount(*args) | Gets the number of columns |
| getData(*args) | Gets data from the phenotype |
| getDblArray(rows[, cols]) | Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e. |
| getElementCount(*args) | Gets the total number of elements in the dataset |
| getNumberOfTaxa(*args) | Gets the number of taxa or rows in this data set |
| getNumberOfTraits(*args) | Gets the number of traits or columns in this data set |
| getRow(*args) | Returns specified row |
| getRowCount(*args) | Gets the number of rows |
| getTableColumnNames(*args) | Gets the names of the columns |
| getTableTitle(*args) | Gets the title of the table |
| getTaxa(*args) | Get the taxa in this data set in order by row number |
| getTaxon(*args) | Gets a taxon |
| getTrait(*args) | Gets a trait |
| getTraits(*args) | Gets the traits or columns of this dataset, in order by column number |
| getValueAt(*args) | Returns value at given row and column |
| hashCode(*args) | Returns a hash code vlaue for the object |
| setData(*args) | Sets the double value for this trait and taxon |
| toDict() | Outputs the table as a dictionary |
| toString(*args) | Returns a string representation of the object |
| whichTaxon(*args) | Gets the index of a taxon |
| whichTrait(*args) | Gets the index of a trait |
| wrap_existing_array(arr_instance) | Wraps a java array of this class’s type |
Gets data from the phenotype
| Signature: | getData (int taxon, int trait) |
|---|---|
| Signature: | getData (Taxon taxon, Trait trait) |
| Signature: | getData () |
| Parameters: |
|
| Returns: | The data stored for the given trait and taxon |
| Return type: | double |
Gets the number of taxa or rows in this data set
| Signature: | getNumberOfTaxa () |
|---|---|
| Returns: | The number of taxa or rows in this data set |
| Return type: | int |
Gets the number of traits or columns in this data set
| Signature: | getNumberOfTraits () |
|---|---|
| Returns: | The number of traits or columns in this data set |
| Return type: | int |
Get the taxa in this data set in order by row number
| Signature: | getTaxa () |
|---|---|
| Returns: | The taxa in this data set in order by row number |
| Return type: | TaxaList |
Gets a taxon
| Signature: | getTaxon (int taxon) |
|---|---|
| Parameters: | taxon (int) – An integer j, representing the jth row in the data set |
| Returns: | The Taxon for this row |
| Return type: | Taxon |
Gets a trait
| Signature: | getTrait (int trait) |
|---|---|
| Parameters: | trait (int) – An integer j, representing the jth column in the data set |
| Returns: | The Trait for this column |
| Return type: | Trait |
Gets the traits or columns of this dataset, in order by column number
Signatures:
List<Trait> getTraits()
Returns:
The traits or columns of this dataset, in order by column number
Sets the double value for this trait and taxon
| Signature: | setData (int taxon, int trait, double value) |
|---|---|
| Parameters: |
|
Bases: TASSELpy.java.lang.Object.Object
Methods
| castTo(pyType) | Casts this object to another java/python type |
| clone(*args) | Creates and returns a copy of this object |
| doubleFromCharacterTrait(*args) | Converts a character trait to doubles |
| equals(*args) | Indicates whether some other object is “equal to” this one |
| getArray(size) | Gets an empty wrapped java array that can accept the type of the wrapped |
| getClass(*args) | Returns the runtime class of this Object. |
| getDblArray(rows[, cols]) | Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e. |
| hashCode(*args) | Returns a hash code vlaue for the object |
| makeCharacterTrait(*args) | Makes a character trait |
| readGenericFile(*args) | Reads input file with TASSEL v3 annotations or with no input directive |
| readNumericalAlignment(*args) | Reads Phenotype from a file in TASSEL v2 numerical format |
| readPolymorphismAlignment(*args) | Reads the polymorphism data from a TASSEL v2 polymorphism format file |
| toString(*args) | Returns a string representation of the object |
| wrap_existing_array(arr_instance) | Wraps a java array of this class’s type |
Converts a character trait to doubles
| Signature: | doubleFromCharacterTrait (Trait trait, String[] textdata) |
|---|---|
| Parameters: |
|
| Returns: | The new trait |
| Return type: | double[] |
Makes a character trait
Signatures:
Arguments:
original – the original class or discrete data tonumber – a double array, the same length as the original data, which
will hold the class indices
name – the trait name type – the trait type
Returns:
The new trait
Reads input file with TASSEL v3 annotations or with no input directive
Signatures:
static Phenotype readGenericFile(String inputFile) throws IOException
Arguments:
inputFile – the input file with TASSEL v3 annotations or with no input directives
Returns:
a Phenotype
Reads Phenotype from a file in TASSEL v2 numerical format
Signatures:
static Phenotype readNumericalAlignment(String inputFile) throws IOException
Arguments:
inputFile – the input file in TASSEL v2 numerical format
Returns:
a Phenotype
Reads the polymorphism data from a TASSEL v2 polymorphism format file
Signatures:
static Phenotype readPolymorphismAlignment(String inputFile) throws IOException
Arguments:
inputFile – The input file in TASSEL v2 polymorphism format
Returns:
a Phenotype
Bases: TASSELpy.net.maizegenetics.trait.AbstractPhenotype.AbstractPhenotype
Methods
| castTo(pyType) | Casts this object to another java/python type |
| clone(*args) | Creates and returns a copy of this object |
| equals(*args) | Indicates whether some other object is “equal to” this one |
| getArray(size) | Gets an empty wrapped java array that can accept the type of the wrapped |
| getClass(*args) | Returns the runtime class of this Object. |
| getColumnCount(*args) | Gets the number of columns |
| getData(*args) | Gets data from the phenotype |
| getDblArray(rows[, cols]) | Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e. |
| getElementCount(*args) | Gets the total number of elements in the dataset |
| getNumberOfTaxa(*args) | Gets the number of taxa or rows in this data set |
| getNumberOfTraits(*args) | Gets the number of traits or columns in this data set |
| getRow(*args) | Returns specified row |
| getRowCount(*args) | Gets the number of rows |
| getTableColumnNames(*args) | Gets the names of the columns |
| getTableTitle(*args) | Gets the title of the table |
| getTaxa(*args) | Get the taxa in this data set in order by row number |
| getTaxon(*args) | Gets a taxon |
| getTrait(*args) | Gets a trait |
| getTraits(*args) | Gets the traits or columns of this dataset, in order by column number |
| getValueAt(*args) | Returns value at given row and column |
| hashCode(*args) | Returns a hash code vlaue for the object |
| setData(*args) | Sets the double value for this trait and taxon |
| toDict() | Outputs the table as a dictionary |
| toString(*args) | Returns a string representation of the object |
| whichTaxon(*args) | Gets the index of a taxon |
| whichTrait(*args) | Gets the index of a trait |
| wrap_existing_array(arr_instance) | Wraps a java array of this class’s type |
Bases: TASSELpy.java.lang.Comparable.Comparable
Data descriptor that contains information about a trait, factor, covariate, or other item for which data may be stored. It may contain information about the experimental unit on which data was collected (factors). It may contain information about how the data is to be used in an analysis. Data values will be stored as doubles. In the case of discrete variables, the value stored will be 0, 1, ... indicating the variable level. For discrete variables, labels or names corresponding to each variable level would be stored as well.
Methods
| addFactor(*args) | Adds a new factor and its value or changes the value of an existing factor. |
| castTo(pyType) | Casts this object to another java/python type |
| clone(*args) | Creates and returns a copy of this object |
| compareTo(*args) | Compares this object with the specified object for order. |
| equals(*args) | Indicates whether some other object is “equal to” this one |
| getArray(size) | Gets an empty wrapped java array that can accept the type of the wrapped |
| getClass(*args) | Returns the runtime class of this Object. |
| getDblArray(rows[, cols]) | Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e. |
| getFactorNames(*args) | Gets the names for the factors for this trait. |
| getFactorValue(*args) | Gets a factor value |
| getInstance(*args) | Gets a copy of an existing trait |
| getLevelLabel(*args) | Gets the name of a level |
| getLevelLabels(*args) | Gets the level labels |
| getName(*args) | Gets the name by which the trait is identified |
| getNumberOfFactors(*args) | Gets the number of factors for this trait |
| getNumberOfLevels(*args) | Gets the number of levels |
| getNumberOfProperties(*args) | Gets the number of entries in the property map |
| getProperties(*args) | The entry set for this trait’s property map |
| getProperty(*args) | Gets the value of this property, null if property does not exist |
| getPropertyNames(*args) | Gets all the property names for this trait |
| getType(*args) | Gets the type of this trait |
| hasLevels(*args) | Returns whether the trait has levels |
| hashCode(*args) | Returns a hash code vlaue for the object |
| isDiscrete(*args) | Gets whether this trait is discrete |
| setLevelLabels(*args) | Sets the level labels |
| setProperty(*args) | Adds a property or sets a new value for an existing property |
| setType(*args) | Sets the type of this trait |
| toString(*args) | Returns a string representation of the object |
| wrap_existing_array(arr_instance) | Wraps a java array of this class’s type |
Constructor for Trait
| Signature: | Trait (String name, boolean isDiscrete, String type) |
|---|---|
| Parameters: |
|
Adds a new factor and its value or changes the value of an existing factor. A factor might be an environment or a rep number
| Signature: | addFactor (String name, String value) |
|---|---|
| Parameters: |
|
Gets the names for the factors for this trait. Returns null if there are no factors
Signatures:
ArrayList<String> getFactorNames()
Returns:
Names for the factors for this trait. Returns null if there are no factors
Gets a factor value
| Signature: | getFactorValue (String factorName) |
|---|---|
| Returns: | The value of this factor or null if the factor does not exist |
| Return type: | String |
Gets a copy of an existing trait
| Signature: | getInstance (Trait trait) |
|---|---|
| Parameters: | trait (Trait) – the trait to be copied |
| Returns: | A copy of the trait |
| Return type: | Trait |
Gets the name of a level
| Signature: | getLevelLabel (int level) |
|---|---|
| Parameters: | level (int) – the level number (0,1,...) |
| Returns: | The name of this level |
| Return type: | String |
Gets the level labels
| Signature: | getLevelLabels () |
|---|---|
| Returns: | For a discrete trait, the names of the levels or values this trait can take |
| Return type: | String[] |
Gets the name by which the trait is identified
| Signature: | getName () |
|---|---|
| Returns: | Name by which the trait is identified |
| Return type: | String |
Gets the number of factors for this trait
| Signature: | getNumberOfFactors () |
|---|---|
| Returns: | The number of factors for this trait |
| Return type: | int |
Gets the number of levels
| Signature: | getNumberOfLevels () |
|---|---|
| Returns: | The number of levels |
| Return type: | int |
Gets the number of entries in the property map
| Signature: | getNumberOfProperties () |
|---|---|
| Returns: | The number of entries in the property map |
| Return type: | int |
The entry set for this trait’s property map
Signatures:
Set<Entry<String, Object>> getProperties()
Returns:
The entry Set for this trait’s property map
Gets the value of this property, null if property does not exist
| Signature: | getProperty (String propertyName) |
|---|---|
| Parameters: | propertyName (String) – The name of a property for this trait |
| Returns: | The value of this property null if the property does not exist |
| Return type: | Object |
Gets all the property names for this trait
Signatures:
Set<String> getPropertyNames()
Returns:
All the property names for this trait
Gets the type of this trait
| Signature: | getType () |
|---|---|
| Returns: | The type of this trait: data, covariate, factor, marker, or exclude |
| Return type: | String |
Returns whether the trait has levels
| Signature: | hasLevels () |
|---|---|
| Returns: | true if the trait has levels |
| Return type: | boolean |
Gets whether this trait is discrete
| Signature: | isDiscrete () |
|---|---|
| Returns: | true if this trait is discrete, false if it is continuous |
| Return type: | boolean |
Sets the level labels
Signatures:
void setLevelLabels(String[] levelLabels)
Arguments: