This function constructs a `TasselNumericGenotype` object from an R matrix by interfacing with the TASSEL Java API. It creates taxa lists, position lists, reference probabilities, and a genotype table using the provided matrix data.
Arguments
- m
 A numeric matrix where rows represent taxa and columns represent positions/sites. The matrix values are used to calculate reference probabilities.
- asTGP
 Should the return object be a "classic"
TasselGenotypePhenotypeobject (TRUE) or should it return aTasselNumericGenotypeobject (FALSE)? Defaults toTRUE.
Details
The following components are constructed using respective Java builder classes:
Taxa list is created using the
TASSEL_JVM$TAXA_LIST_BUILDERJava class.Position list is constructed using the
TASSEL_JVM$POSITION_LIST_BUILDERandTASSEL_JVM$GENERAL_POSITION_BUILDERJava classes.Reference probabilities are built using the
TASSEL_JVM$REF_PROBABILITY_BUILDERJava class.The genotype table is created using the
TASSEL_JVM$GENOTYPE_TABLE_BUILDERJava class.
