Skip to content

Commit

Permalink
Fixed some type documentation issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSafatli committed Apr 29, 2015
1 parent 4e8acbe commit 4d45221
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
Binary file modified docs/api.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion pylogeny/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '0.3.6.1'
VERSION = '0.3.6.2'
23 changes: 12 additions & 11 deletions pylogeny/scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def beaglegetLogLikelihood(tree,alignment):
Currently uses HKY85 model.
:param tree: A tree object.
:type tree: :class: `.tree.tree`
:type tree: :class:`.tree.tree`
:param alignment: An alignment object.
:type alignment: :class: `.alignment.alignment`
:type alignment: :class:`.alignment.alignment`
:returns: A floating point value.
'''
Expand All @@ -40,12 +40,13 @@ def beaglegetLogLikelihood(tree,alignment):

def getLogLikelihood(tree,alignment,updateBranchLengths=True):

''' Acquire log-likelihood via C library libpll.
''' Acquire log-likelihood via C library libpll. Requires the input
alignment to be "Phylip friendly" (a phylipFriendlyAlignment).
:param tree: A tree object.
:type tree: :class: `.tree.tree`
:type tree: :class:`.tree.tree`
:param alignment: An alignment object.
:type alignment: :class: `.alignment.phylipFriendlyAlignment`
:type alignment: :class:`.alignment.phylipFriendlyAlignment`
:param updateBranchLengths: Whether or not to update the branch lengths
in the provided tree with optimized ones.
:returns: A floating point value.
Expand Down Expand Up @@ -95,7 +96,7 @@ def getParsimony(newick,alignment):
:param newick: A New Hampshire (Newick) tree string.
:param alignment: An alignment object.
:type alignment: :class: `.alignment.alignment`
:type alignment: :class:`.alignment.alignment`
:returns: An integer value.
'''
Expand All @@ -108,9 +109,9 @@ def getParsimonyForTopology(topo,alignment):
''' Acquire parsimony via a C++ implementation.
:param topo: A topology object.
:type topo: :class: `.rearrangement.topology`
:type topo: :class:`.rearrangement.topology`
:param alignment: An alignment object.
:type alignment: :class: `.alignment.alignment`
:type alignment: :class:`.alignment.alignment`
:returns: An integer value.
'''
Expand All @@ -125,7 +126,7 @@ def getParsimonyFromProfiles(newick,profiles):
:param newick: A New Hampshire (Newick) tree string.
:param profiles: A set of profiles corresponding to an alignment.
:type profiles: :class: `.parsimony.profile_set`
:type profiles: :class:`.parsimony.profile_set`
:returns: An integer value.
'''
Expand All @@ -140,9 +141,9 @@ def getParsimonyFromProfilesForTopology(topology,profiles):
''' Acquire parsimony via a C++ implementation.
:param topo: A topology object.
:type topo: :class: `.rearrangement.topology`
:type topo: :class:`.rearrangement.topology`
:param profiles: A set of profiles corresponding to an alignment.
:type profiles: :class: `.parsimony.profile_set`
:type profiles: :class:`.parsimony.profile_set`
:returns: An integer value.
'''
Expand Down

0 comments on commit 4d45221

Please sign in to comment.