Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: heatmap #114

Merged
merged 13 commits into from
Mar 2, 2017
Merged

ENH: heatmap #114

merged 13 commits into from
Mar 2, 2017

Conversation

mortonjt
Copy link
Collaborator

@mortonjt mortonjt commented Feb 27, 2017

Heatmaps through matplotlib + dendrograms + metadata highlighting

🎆

This was pair-programmed with @amnona

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 98.223% when pulling 62ed51f on mortonjt:heatmap into 18fc891 on biocore:master.

@mortonjt
Copy link
Collaborator Author

@RNAer this is finally ready for review!

@@ -49,7 +45,6 @@ class Dendrogram(TreeNode):

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did see where aspect_distorts_lengths is used? what does it do? is it neccessary?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a direct port from pycogent. I'm very ok with dropping this. Thanks for catching!

@@ -49,7 +45,6 @@ class Dendrogram(TreeNode):

def __init__(self, use_lengths=True, **kwargs):
""" Constructs a Dendrogram object for visualization.

"""
super().__init__(**kwargs)
self.use_lengths_default = use_lengths
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if use_lengths_default is public, document it? I don't get what this is

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also looks like this is a direct port. Dropping!

@@ -105,7 +100,6 @@ def coords(self, height, width):
The height of the canvas.
width : int
The width of the canvas.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can delete line 79: self.length = self.length

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped!


def _sign(x):
"""Returns True if x is positive, False otherwise."""
return x and x/abs(x)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not in the diff, but in line 38, the sentence is grammatically wrong and a bit confusing. length is the length from what to the subtree?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to improve the wording. Let me know what you think!

Removing attributes that aren't used
@mortonjt
Copy link
Collaborator Author

mortonjt commented Mar 2, 2017

Thanks for the feedback @RNAer ! I tried to address your concerns. Let me know what you think.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling b0caea4 on mortonjt:heatmap into ** on biocore:master**.

@mortonjt
Copy link
Collaborator Author

mortonjt commented Mar 2, 2017 via email

@qiyunzhu qiyunzhu merged commit 34d43e5 into biocore:master Mar 2, 2017
@mortonjt
Copy link
Collaborator Author

mortonjt commented Mar 2, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants