TASSELpy.net.maizegenetics.stats.statistics package

Submodules

TASSELpy.net.maizegenetics.stats.statistics.FisherExact module

class TASSELpy.net.maizegenetics.stats.statistics.FisherExact.FisherExact(*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.
getCumulativeP(*args) Calculates the one-tail P-value for the Fisher Exact test.
getDblArray(rows[, cols]) Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e.
getLeftTailedP(*args) Calculates the left-tail P-value for the Fisher Exact test.
getP(*args) Calculates the P-value for this specific state
getRightTailedP(*args) Calculates the right-tail P-value for the Fisher Exact test.
getRightTailedPQuick(*args) Calculates the right-tail P-value for the Fisher Exact test.
getTwoTailedP(*args) Calculates the two-tail P-value for the Fisher Exact test.
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]

Constructor for FisherExact table

FisherExact(int maxSize) FisherExact(int maxSize, boolean useLookup)

Arguments:

FisherExact(int maxSize)
maxSize – the maximum sum that will be encountered by the table (a+b+c+d)
FisherExact(int maxSize, boolean useLookup)
maxSize – the maximum sum that will be encountered by the table (a+b+c+d) useLookup – doesn’t appear to actually be used
getCumulativeP(*args)[source]

Calculates the one-tail P-value for the Fisher Exact test. Determines whether to calculate the right- or left- tail, thereby always returning the smallest p-value

Signatures:

final double getCumlativeP(int a, int b, int c, int d)

Arguments:

a, b, c, and d are the 4 cells in a 2x2 table

Returns:

one-tailed P-value (right or left, whichever is smallest)

getLeftTailedP(*args)[source]

Calculates the left-tail P-value for the Fisher Exact test.

Signatures:

final double getLeftTailedP(int a, int b, int c, int d)

Arguments:

a, b, c, and d are the 4 cells in a 2x2 table

Returns:

left-tailed P-value

getP(*args)[source]

Calculates the P-value for this specific state

final double getP(int a, int b, int c, int d)

Arguments:

a, b, c, and d are the 4 cells in a 2x2 table

Returns:

The p-value

getRightTailedP(*args)[source]

Calculates the right-tail P-value for the Fisher Exact test.

Signatures:

final double getRightTailedP(int a, int b, int c, int d)

Arguments:

a, b, c, and d are the 4 cells in a 2x2 table

Returns:

right-tailed P-value

getRightTailedPQuick(*args)[source]

Calculates the right-tail P-value for the Fisher Exact test.

Signatures:

final double getRightTailedPQuick(int a, int b, int c, int d, double maxP)

Arguments:

a, b, c, and d are the 4 cells in a 2x2 table maxP – maximum p-value possible

Returns:

right-tailed P-value

getTwoTailedP(*args)[source]

Calculates the two-tail P-value for the Fisher Exact test.

Signatures:

final double getTwoTailedP(int a, int b, int c, int d)

Arguments:

a, b, c, and d are the 4 cells in a 2x2 table

Returns:

two-tailed P-value

Module contents