Skip to content
New issue

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

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

Already on GitHub? # to your account

setting outgroup #5

Open
grenaud opened this issue Aug 1, 2024 · 6 comments
Open

setting outgroup #5

grenaud opened this issue Aug 1, 2024 · 6 comments

Comments

@grenaud
Copy link

grenaud commented Aug 1, 2024

I tried

` ./newick_v1.0.1429_linux in.treefile -outGroup outgroup -output rooted.newick

Invalid command line
Expected -option_name or --option_name, got 'in.treefile'

`

@rcedgar
Copy link
Owner

rcedgar commented Aug 1, 2024

-outGroup should be -outgroup

@grenaud
Copy link
Author

grenaud commented Aug 1, 2024

sorry yes you are right but I still get the same error.

@rcedgar
Copy link
Owner

rcedgar commented Aug 1, 2024

you are missing command name in the command line, it should be either

newick -rootbyoutgroup unrooted.newick -outgroup clade_label -output rooted.newick

where clade_label is matched by substring, or

newick -rootbyoutgroup unrooted.newick -labels clade_labels.txt -output rooted.newick

@grenaud
Copy link
Author

grenaud commented Aug 2, 2024

ok I am actually trying to generate a new tree where I substitute entire subtrees for a single leaf, is this possible? It was complaining that my tree was not rooted.

@grenaud
Copy link
Author

grenaud commented Aug 2, 2024

and the -rootbyoutgroup has worked.

@rcedgar
Copy link
Owner

rcedgar commented Aug 2, 2024

newick does not have a command to do this.

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

No branches or pull requests

2 participants