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

how can I generate tree file #21

Open
jeffchen2000 opened this issue Oct 7, 2022 · 3 comments
Open

how can I generate tree file #21

jeffchen2000 opened this issue Oct 7, 2022 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@jeffchen2000
Copy link

according to the readme, BnpC can generate a output tree file (did I misunderstand?)
but when I run this:
run_BnpC.py snp.input.txt -tr test.gv

I got error like below, it seems that BnpC is trying to read "test.gv":
Traceback (most recent call last):
File "BnpC/run_BnpC.py", line 296, in
main(args)
File "BnpC/run_BnpC.py", line 291, in main
generate_output(args, results, data, data_names)
File "BnpC/run_BnpC.py", line 232, in generate_output
io.save_tree_plots(
File "BnpC/libs/dpmmIO.py", line 226, in save_tree_plots
pl.color_tree_nodes(
File "BnpC/libs/plotting.py", line 324, in color_tree_nodes
with open(tree_file, 'r') as f_in:
FileNotFoundError: [Errno 2] No such file or directory: 'test.gv'

@NBMueller NBMueller self-assigned this Oct 10, 2022
@NBMueller NBMueller added the question Further information is requested label Oct 10, 2022
@NBMueller
Copy link
Member

BnpC does not infer the tree structure (see also (this issue)[https://github.com//issues/18]).
The option --tr takes the (simulated) tree used for data generation and colors the tree nodes according to the inferred clusters.

Putting it as an output argument might be misleading: I moved it to the input arguments.

@jeffchen2000
Copy link
Author

Hi NBMueller
Thanks for your quick response! Yea, moving it to the input arguments will be better.
and also, thanks for providing me the information about generating a tree file from third part (which is actually what I wanted).
now, can I use a tree file generated from third part (say CellPhy as you mentioned) for the argument --tr ?

@NBMueller
Copy link
Member

NBMueller commented Oct 12, 2022

the -tr argument takes an existing mutation tree (nodes are mutations) in graphviz format and colors the nodes according to the identified clusters.

Cellphy infers a cell lineage tree (nodes are cells), due to the different tree representation it cannot be colored with BnpC.
infScite infers the mutation tree, it should work with its output tree therefore.

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

No branches or pull requests

2 participants