Skip to content

How to draw a singleton? #27

@billzhanghantao

Description

@billzhanghantao

Thank you very much for developing this tool, but I'm having problems visualising the singleton and don't know how to fix it.
Since singleton doesn't belong to any hog, I encountered this error when running ham_analysis.get_hog_by_gene(gene_iseg): TypeError: Invalid argument Gene(138338) for HOG.
When I switch to the other way and run the following commands in sequence:
filter_ham = pyham.ParserFilter()
filter_ham.add_hogs_via_GeneIntId([138338])
ham_analysis_filter = pyham.Ham(tree_str, orthoxml_path, use_internal_name=True, filter_object=filter_ham)
treeprofile = ham_analysis_filter.create_tree_profile(outfile="/Users/test.html")
from IPython.display import IFrame
IFrame("/Users/zhanghantao/Desktop/test.html", width=240, height=120)
I encountered this error:KeyError: 'No ancestral genomes match the query name: 1',the 1 I assume refers to the root node in my evolutionary tree.
Can you please tell me how to visualize singletons using pyham?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions