|
__init__(self,
input=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
get_original_taxon_order(self)
Included for backwards compatibility (DEPRECATED). |
source code
|
|
|
set_original_taxon_order(self,
value)
Included for backwards compatibility (DEPRECATED). |
source code
|
|
|
read(self,
input)
Read and parse NEXUS imput (a filename, file-handle, or string). |
source code
|
|
|
_get_nexus_block(self,
file_contents)
Generator for looping through Nexus blocks. |
source code
|
|
|
_unknown_nexus_block(self,
title,
contents) |
source code
|
|
|
_parse_nexus_block(self,
title,
contents)
Parse a known Nexus Block (PRIVATE). |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_check_taxlabels(self,
taxon)
Check for presence of taxon in self.taxlabels. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
_utree(self,
options)
Some software (clustalx) uses 'utree' to denote an unrooted tree. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_get_indices(self,
options,
set_type=' chars ' ,
separator=' = ' )
Parse the taxset/charset specification (PRIVATE). |
source code
|
|
|
_name_n_vector(self,
opts,
separator=' = ' )
Extract name and check that it's not in vector format. |
source code
|
|
|
|
|
_resolve(self,
identifier,
set_type=None)
Translate identifier in list into character/taxon index. |
source code
|
|
|
|
|
|
|
|
|
|
|
write_nexus_data_partitions(self,
matrix=None,
filename=None,
blocksize=None,
interleave=False,
exclude=[ ] ,
delete=[ ] ,
charpartition=None,
comment='
' ,
mrbayes=False)
Writes a nexus file for each partition in charpartition. |
source code
|
|
|
write_nexus_data(self,
filename=None,
matrix=None,
exclude=[ ] ,
delete=[ ] ,
blocksize=None,
interleave=False,
interleave_by_partition=False,
comment=None,
omit_NEXUS=False,
append_sets=True,
mrbayes=False,
codons_block=True)
Writes a nexus file with data and sets block to a file or handle. |
source code
|
|
|
append_sets(self,
exclude=[ ] ,
delete=[ ] ,
mrbayes=False,
include_codons=True,
codons_only=False)
Returns a sets block. |
source code
|
|
|
export_fasta(self,
filename=None,
width=70)
Writes matrix into a fasta file: (self, filename=None, width=70). |
source code
|
|
|
|
|
constant(self,
matrix=None,
delete=[ ] ,
exclude=[ ] )
Return a list with all constant characters. |
source code
|
|
|
|
|
|
|
crop_matrix(self,
matrix=None,
delete=[ ] ,
exclude=[ ] )
Return a matrix without deleted taxa and excluded characters. |
source code
|
|
|
bootstrap(self,
matrix=None,
delete=[ ] ,
exclude=[ ] )
Return a bootstrapped matrix. |
source code
|
|
|
add_sequence(self,
name,
sequence)
Adds a sequence (string) to the matrix. |
source code
|
|
|
insert_gap(self,
pos,
n=1,
leftgreedy=False)
Add a gap into the matrix and adjust charsets and partitions. |
source code
|
|
|
_adjust_charlabels(self,
exclude=None,
insert=None)
Return adjusted indices of self.charlabels if characters are excluded
or inserted. |
source code
|
|
|
invert(self,
charlist)
Returns all character indices that are not in charlist. |
source code
|
|
|
gaponly(self,
include_missing=False)
Return gap-only sites. |
source code
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|