Bio.Phylo.TreeConstruction.DistanceTreeConstructor

Trees Indices Help Biopython Package Bio :: Package Phylo :: Module TreeConstruction :: Class DistanceTreeConstructor [hide private] [frames] | no frames ] Class DistanceTreeConstructor source code object --+ | TreeConstructor --+ | DistanceTreeConstructor Distance based tree constructor. Examples Loading a small PHYLIP alignment from which to compute distances, and then build a upgma Tree: from Bio.Phylo.TreeConstruction import DistanceTreeConstructor from Bio.Phylo.TreeConstruction import DistanceCalculator from Bio import AlignIO aln = AlignIO.read(open('TreeConstruction/msa.phy'), 'phylip') constructor = DistanceTreeConstructor() calculator = DistanceCalculator('identity') dm = calculator.get_distance(aln) upgmatree = constructor.upgma(dm) print(upgmatree) Output: Tree(rooted=True) Clade(branch_length=0, name='Inner4') Clade(branch_length=0.18749999999999994, name='Inner1') Clade(branch_length=0.07692307692307693, name='Epsilon') Clade(branch_length=0.07692307692307693, name='Delta') Clade(branch_length=0.11057692307692304, name='Inner3') Clade(branch_length=0.038461538461538464, name='Inner2') Clade(branch_length=0.11538461538461536, name='Gamma')

Clade(branch_length=0.11538461538461536, name='Beta') Clade(branch_length=0.15384615384615383, name='Alpha') Build a NJ Tree: njtree = constructor.nj(dm) print(njtree) Output: Tree(rooted=False) Clade(branch_length=0, name='Inner3') Clade(branch_length=0.18269230769230765, name='Alpha') Clade(branch_length=0.04807692307692307, name='Beta') Clade(branch_length=0.04807692307692307, name='Inner2') Clade(branch_length=0.27884615384615385, name='Inner1') Clade(branch_length=0.051282051282051266, name='Epsilon') Clade(branch_length=0.10256410256410259, name='Delta') Clade(branch_length=0.14423076923076922, name='Gamma') Instance Methods __init__(self, source code distance_calc ulator=None, method='nj ') Initialize the class. build_tree(sel source code f, msa) Construct and return a Tree, Neighbor Joining or UPGMA. upgma(self, source code distance_mat rix) Construct and return an UPGMA tree.

nj(self, source code distance_mat rix) Construct and return a Neighbor Joining tree. _height_of(se source code [hide private] lf, clade) Calculate clade height -- the longest path to any terminal (PRIVATE). Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__ Class Variables [hide private] methods = ['nj', 'upgma'] Properties [hide private] Inherited from object: __class__ Method Details __init__(self, distance_calculator=None, method='nj') (Constructor) [hide private] source code Initialize the class.

Parameters: method (str) - Distance tree construction method, 'nj'(default) or 'upgma'. distance_calculator (DistanceCalculator) - The distance matrix calculator for multiple sequence alignment. It must be provided if build_tree will be called. Overrides: object.__init__ build_tree(self, msa) source code Construct and return a Tree, Neighbor Joining or UPGMA. Overrides: TreeConstructor.build_tree upgma(self, distance_matrix) source code Construct and return an UPGMA tree. Constructs and returns an Unweighted Pair Group Method with Arithmetic mean (UPGMA) tree. Parameters: distance_matrix (DistanceMatrix) - The distance matrix for tree construction. nj(self, distance_matrix) source code Construct and return a Neighbor Joining tree. Parameters: distance_matrix (DistanceMatrix) - The distance matrix for tree construction. Trees Indices Help Biopython Generated by Epydoc 3.0.1 on Wed Nov 6 13:32:28 2019 http://epydoc.sourceforge.net

Recently Viewed Presentations

  • Basic Theatre Terminology - Mesa Public Schools

    Basic Theatre Terminology - Mesa Public Schools

    Basic Theatre Terminology. Beginning Drama. Stage Fright. A nervous feeling felt by someone who is going to appear in front of an audience. Drama. A piece of writing that tells a story and is performed on stage. Energy.
  • Common Subgrade Theories Used For Concrete Pavements

    Common Subgrade Theories Used For Concrete Pavements

    The history associated with the letter notation of k goes back to basic physics. You may remember, k is the variable name of the spring constant; and when Dr. Westergaard modeled the interaction of a rigid slab resting on a...
  • Adapted Physical Education - Rowan University

    Adapted Physical Education - Rowan University

    Replaced the term handicapped with disability. Defined 13 categories of disabilities. Physical Education is defined to include; physical and motor fitness, fundamental motor skills and patterns and skills in aquatics, dance, and individual and group games and sports (intramural and...
  • PowerPoint Presentation

    PowerPoint Presentation

    Informed Choice Obstacles to Home Hemodialysis. Historically, up to 88% of patients in the US reported being unaware that HHD was an option. Lack of modality education typically leads to in-center HD as the default modality, particularly for late-referred patients
  • Illinois Board of Higher Education Private Business ...

    Illinois Board of Higher Education Private Business ...

    Illinois Board of Higher EducationPrivate Business Vocational Schools Division. Helping Up: IBHE Outreach Efforts Within the Illinois Department of Corrections. Adam E. Campbell & Michelle M. Shaver. One of our goals is to increase attention on the educational opportunities within...
  • Year 11 Mini-Assessment 17 HIGHER Circles  Non-Calculator Area

    Year 11 Mini-Assessment 17 HIGHER Circles Non-Calculator Area

    44° CDF = 44° (Alternate segment. theorem) ABC and ADC opposite angles. in a cyclic quadrilateral so add. to 180° CDO = 46° ADC = 78° ABC = x = 180° - 78° =
  • Powerpoint template for scientific posters (Swarthmore College)

    Powerpoint template for scientific posters (Swarthmore College)

    Despite growing recognition of the potential for Behavior Imaging to improve access to care for individuals with ASD, few peer-reviewed evaluations of this kind of telehealth applied to ASD have been published (Gallagher, 2004). Additional information is needed in a...
  • Science and Gender Obstacles and Interventions Athene M

    Science and Gender Obstacles and Interventions Athene M

    Science and Gender - Obstacles and Interventions Athene M Donald University of Cambridge UK