TASSELpy package

Subpackages

Submodules

TASSELpy.TASSELbridge module

class TASSELpy.TASSELbridge.TASSELbridge[source]

Methods

start([tassel_dir]) Starts the JVM and connects to the TASSEL JAR
stop() Kills the JVM
static start(tassel_dir=None)[source]

Starts the JVM and connects to the TASSEL JAR

Arguments:

tassel_dir – The directory containing the TASSEL JAR

static stop()[source]

Kills the JVM

TASSELpy.javaObj module

class TASSELpy.javaObj.genericJavaObj(*args, **kwargs)[source]

Bases: TASSELpy.javaObj.javaObj

Base class for all java object wrappers that you want to accept angle bracket arguments

Methods

getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
getDblArray(rows[, cols]) Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e.
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]

Sets the type of elements that would be given by angle brackets in java i.e. MyClass<String> myobj

Arguments:

generic – wrapper class

class TASSELpy.javaObj.javaArray[source]

Bases: TASSELpy.javaObj.javaObj

Base class for arrays of wrapped objects

Methods

getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
getDblArray(rows[, cols]) Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e.
get_array_type(Class)
make_array(Class_instance, length[, pyType]) Makes a wrapped java array for some java class
to_numpy_array() Makes a numpy array copy of the Java primative array
to_wrapped_array(arr_instance, pyType[, setter]) Wraps a current array
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
static get_array_type(Class)[source]
static make_array(Class_instance, length, pyType=None)[source]

Makes a wrapped java array for some java class

Arguments:

Class_instance – Either an instance of a javaObj, an instance of a javabridge.JB_Object,
an instance of javabridge._javabridge.JB_Class, or the name of a java class as path/to/class
pyType – The type of the javaObj. This must be passed unless using a javaObj instance to make
the array

Returns:

The wrapped java array

to_numpy_array()[source]

Makes a numpy array copy of the Java primative array

Returns:

Numpy array containing data

static to_wrapped_array(arr_instance, pyType, setter=None)[source]

Wraps a current array

Arguments:

arr_instance – A java object containing the array pyType – The type of the javaObj

Returns:

The wrapped java array

class TASSELpy.javaObj.javaObj[source]

Bases: object

Methods

getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
getDblArray(rows[, cols]) Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e.
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
classmethod getArray(size)[source]

Gets an empty wrapped java array that can accept the type of the wrapped java object

Arguments:

size – the size of the array

Returns:

An instance of the array of the given size

classmethod getDblArray(rows, cols=None)[source]

Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e. Object[][]

Arguments:

rows – The number of rows that should be in the array (the first dimension) cols – The number of columns that should be in the array (if not specified, the

array objects will not be instantiated at these locations

Returns:

An instance of an array of arrays

classmethod wrap_existing_array(arr_instance)[source]

Wraps a java array of this class’s type

Arguments:

arr_instance – The java array

Returns:

The wrapped java array

Module contents

Table Of Contents

Previous topic

Running Quantitative Genetic Analyses

Next topic

TASSELpy.data package

This Page