TASSELpy.net.maizegenetics.dna.snp.depth package

Submodules

TASSELpy.net.maizegenetics.dna.snp.depth.AlleleDepth module

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

Bases: TASSELpy.java.lang.Object.Object

Provides DNA read depth data for a genotype data

Methods

castTo(pyType) Casts this object to another java/python type
clone(*args) Creates and returns a copy of this object
depth(*args) Returns total depth for given taxon and site
depthAllSitesByte(*args) Returns allele depths for all alleles and sites for a taxon in byte format
depthForAllele(*args) Returns depth count for given allele at given taxon and site
depthForAlleleByte(*args) Returns depth count as byte for given allele at given taxon and site
depthForAlleles(*args) Returns depth count for each diploid allele at the given taxon and site The array of depths is sizes as determined by NUMBER_NUCLEOTIDE_ALLELES (6) and it is ordered as in NUCLEOTIDE_ALLELES (A, C, G, T, +(insertion), - (deletion)) The depths from 0 to 127 are recorded exactly.
depthForSite(*args) Returns total depth of all alleles and taxa for given site
depthForTaxon(*args) Returns total depth of all alleles and sites for given taxon
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
toString(*args) Returns a string representation of the object
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]
depth(*args)[source]

Returns total depth for given taxon and site

Signature:

depth (int taxon, int site)

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

total depth

Return type:

int

depthAllSitesByte(*args)[source]

Returns allele depths for all alleles and sites for a taxon in byte format (negative values are logs)

Signature:depthAllSitesByte (int taxon)
Parameters:taxon (int) – taxon
Returns:Allele depths for all alleles and sites
Return type:byte[][]
depthForAllele(*args)[source]

Returns depth count for given allele at given taxon and site

Signature:

depthForAllele (int taxon, int site, int allele)

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

Count

Return type:

int

depthForAlleleByte(*args)[source]

Returns depth count as byte for given allele at given taxon and site

Signature:

depthForAlleleByte (int taxon, int site, int allele)

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

Count as byte

Return type:

byte

depthForAlleles(*args)[source]

Returns depth count for each diploid allele at the given taxon and site The array of depths is sizes as determined by NUMBER_NUCLEOTIDE_ALLELES (6) and it is ordered as in NUCLEOTIDE_ALLELES (A, C, G, T, +(insertion), - (deletion)) The depths from 0 to 127 are recorded exactly. Depths above 127 are stored as approximate logs (equation), and they are represented by negative numbers

Signature:

depthForAlleles (int taxon, int site)

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

Array of counts

Return type:

int[]

depthForSite(*args)[source]

Returns total depth of all alleles and taxa for given site

Signature:depthForSite (int site)
Parameters:site (int) – site
Returns:depth
Return type:int
depthForTaxon(*args)[source]

Returns total depth of all alleles and sites for given taxon

Signature:depthForTaxon (int taxon)
Parameters:taxon (int) – taxon
Returns:total depth for taxon
Return type:int

Module contents

Table Of Contents

This Page