API Reference¶
cocoatree
: Overall functions¶
Functions¶
|
Perform statistical coupling analysis (SCA) |
cocoatree.io
: Functions to import and export files¶
Functions¶
|
Read in a multiple sequence alignment (MSA) |
|
From the loading of a Newick tree, generate a ete3.Tree object |
|
Export intermediate files in fasta format |
|
Read in a PDB file. |
|
Export sector information for mapping on 3D structure in PyMOL. |
cocoatree.datasets
: Utilities to load popular datasets.¶
Functions¶
|
Load the S1A serine protease dataset |
Load the rhomboid protease dataset |
cocoatree.msa
: Manipulating multiple sequence alignment and sequences¶
Functions¶
|
Filter sequences |
|
Filter sequences based on list |
|
Filter the alignment based on identity with a reference sequence |
|
Mapping of the unfiltered MSA positions on a PDB structure. |
|
Computes the identity between sequences in a MSA (as Hamming's pairwise distance) |
|
Compute sequence weights |
|
Maps positions between the original and the filtered MSA |
cocoatree.statistics
: Computation of position-specific and pairwise statistics¶
Functions¶
|
Compute frequencies on sequences |
|
Compute the SCA coevolution matrix |
Compute the mutual information matrix |
|
Computes the average product correction (APC) as described in Dunn et al. (2008). |
|
Computes the entropy correction according to Vorberg et al. (2018). |
|
|
Computes Shannon's entropy for each position in the alignment |
Compute the conservation of amino acid at each position. |
cocoatree.deconvolution
: Co-evolution matrix deconvolution¶
Functions¶
Extract independent components from a coevolution matrix |
|
Perform principal component decomposition of a coevolution matrix |
|
Extract residue positions of sectors |
|
Remove global correlations |
cocoatree.visualization
: Visualization with ete3¶
Module to visualize phylogenetic trees along with sectors
Functions¶
Update ete3 tree with sector info and attributes and return tree_style for further visualization. |