TASSELpy.net.maizegenetics.dna.snp.byte2d package

Submodules

TASSELpy.net.maizegenetics.dna.snp.byte2d.Byte2D module

class TASSELpy.net.maizegenetics.dna.snp.byte2d.Byte2D.Byte2D(*args, **kwargs)[source]

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
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
numSites(*args) The number of sites in the matrix
numTaxa(*args) The number of taxa in the matrix
siteScoreType(*args) The site score type for sites
toString(*args) Returns a string representation of the object
valueForAllele(*args) Gets the byte value for a particular allele in the matrix
valuesForAllSites(*args) Gets the byte values for all sites on a taxon
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]
numSites(*args)[source]

The number of sites in the matrix

Signature:numSites ()
Returns:The number of sites in the matrix
Return type:int
numTaxa(*args)[source]

The number of taxa in the matrix

Signature:numTaxa ()
Returns:The number of taxa in the matrix
Return type:int
siteScoreType(*args)[source]

The site score type for sites

Signature:siteScoreType ()
Returns:The SITE_SCORE_TYPE
Return type:SiteScore.SITE_SCORE_TYPE
valueForAllele(*args)[source]

Gets the byte value for a particular allele in the matrix

Signature:

valueForAllele (int taxon, int site)

Parameters:
  • taxon (int) – taxon
  • site (int) – site
Returns:

The byte value for the allele

Return type:

byte

valuesForAllSites(*args)[source]

Gets the byte values for all sites on a taxon

Signature:valuesForAllSites (int taxon)
Parameters:taxon (int) – taxon
Returns:The array of bytes for a taxon, where each entry is a genotype
Return type:byte[]

Module contents