TASSELpy.net.maizegenetics.taxa package

Submodules

TASSELpy.net.maizegenetics.taxa.TaxaList module

class TASSELpy.net.maizegenetics.taxa.TaxaList.TaxaList(*args, **kwargs)[source]

Bases: TASSELpy.java.util.FilterList.FilterList

Methods

add(*args) Ensures that this collection contains the specified element.
addAll(*args) Adds all of the elements in the specified collection to this collection.
castTo(pyType) Casts this object to another java/python type
clear(*args) Removes all of the elements from this collection.
clone(*args) Creates and returns a copy of this object
contains(*args) Returns true if this collection contains the specified element.
containsAll(*args) Returns true if this collection contains all of the elements in the specified collection
equals(*args) Indicates whether some other object is “equal to” this one
filterEnumerator(filterFunc) Enumerates the list, returning index and items for which a function
filterIterator(filterFunc) Iterates through the list, but only returns items for which a function evaluates True.
get(*args) Returns the element at the specified position in this list
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
indexOf(*args) Return matching taxa index for given name
isEmpty(*args) Returns true if this collection contains no elements
iterator(*args) Returns an iterator over a set of elements of type T
lastIndexOf(*args) Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
listIterator(*args) Returns a list iterator over the elements in this list
numberOfTaxa(*args) Returns number of taxa
remove(*args) Removes a single instance of the specified element from this collection, if it is present.
removeAll(*args) Removes all of this collection’s elements that are also contained in the specified collection.
retainAll(*args) Retains only the elements in this collection that are contained in the specified collection.
set(*args) Replaces the element at the specified position in this list with
size(*args) Returns the number of elements in this collection.
subList(*args) REturns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
taxaName(*args) Return taxa name at given index
toArray(*args) Returns an array containing all of the elements in this collection.
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]
indexOf(*args)[source]

Return matching taxa index for given name

Signature:

indexOf (String name)

Signature:

indexOf (Taxon taxon)

Parameters:
  • name (String) – name
  • taxon (Taxon) –
    • taxon
Returns:

Index for matching taxon (-1 if no match)

Return type:

int

numberOfTaxa(*args)[source]

Returns number of taxa

Signature:numberOfTaxa ()
Returns:Number of taxa
Return type:int
taxaName(*args)[source]

Return taxa name at given index

Signature:taxaName (int index)
Parameters:index (int) – index
Returns:taxa name
Return type:String

TASSELpy.net.maizegenetics.taxa.TaxaListBuilder module

class TASSELpy.net.maizegenetics.taxa.TaxaListBuilder.TaxaListBuilder(*args, **kwargs)[source]

Bases: TASSELpy.javaObj.javaObj

A builder for creating immutable TaxaList instances

Example:

tlb = TaxaListBuilder() for i in xrange(10):

at = Taxon.Builder(“Z”+i+”:Line:mays:Zea”).inbreedF(0.99) .parents(“B73”,”B97”) .pedigree(“(B73xB97)S6I1”) .build() tlb.add(at)

tl = tlb.build()

Methods

add(*args) Adds a taxon to the builder
addAll(*args) Adds multiple taxa to the builder
build(*args) Builds the TaxaList
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]
add(*args)[source]

Adds a taxon to the builder

Signature:add (Taxon taxon)
Parameters:taxon (Taxon) – taxon
Returns:TaxaListBuilder with taxon added
Return type:TaxaListBuilder
addAll(*args)[source]

Adds multiple taxa to the builder

Signature:

addAll (GenotypeTable a)

Parameters:
  • taxa (Taxon[]) – taxa
  • a (GenotypeTable) – GenotypeTable from which to add taxa
Returns:

TaxaListBuilder with taxa added

Return type:

TaxaListBuilder

build(*args)[source]

Builds the TaxaList

Signature:build ()
Returns:A TaxaList
Return type:TaxaList

TASSELpy.net.maizegenetics.taxa.Taxon module

class TASSELpy.net.maizegenetics.taxa.Taxon.Taxon(*args, **kwargs)[source]

Bases: TASSELpy.java.lang.Comparable.Comparable, TASSELpy.net.maizegenetics.util.GeneralAnnotation.GeneralAnnotation

Methods

castTo(pyType) Casts this object to another java/python type
clone(*args) Creates and returns a copy of this object
compareTo(*args) Compares this object with the specified object for order.
equals(*args) Indicates whether some other object is “equal to” this one
getAllAnnotationEntries(*args) Returns all annotation Map.Entries
getAnnotation(*args) Returns all annotation value for a given annotation key
getAnnotationAsMap(*args) Returns all annotations in TreeMap
getArray(size) Gets an empty wrapped java array that can accept the type of the wrapped
getAverageAnnotation(*args) Returns average annotation for a given annotation key
getClass(*args) Returns the runtime class of this Object.
getConsensusAnnotation(*args) Returns consensus value for given annotation key
getDblArray(rows[, cols]) Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e.
getName(*args)
signature:getName ()
getQuantAnnotation(*args) Returns all annotation value for given annotation key
getTextAnnotation(*args) Returns all annotation values for a given annotation key
hashCode(*args) Returns a hash code vlaue for the object
toString(*args) Returns a string representation of the object
toStringWithVCFAnnotation(*args)
signature:toStringWithVCFAnnotation ()
wrap_existing_array(arr_instance) Wraps a java array of this class’s type
__init__(*args, **kwargs)[source]

Instantiates a Taxon

Signature:Taxon (String name)
getName(*args)[source]
Signature:getName ()
toStringWithVCFAnnotation(*args)[source]
Signature:toStringWithVCFAnnotation ()

Module contents