-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6bbef6
commit 04329d0
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env python | ||
import argparse | ||
import sys | ||
import physcraper | ||
from physcraper.opentree_helpers import scraper_from_opentree | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument("-s","--study_id", help="OpenTree study id") | ||
parser.add_argument("-t","--tree_id", help="tree id") | ||
parser.add_argument("-a","--alignment", help="path to alignment") | ||
parser.add_argument("-as","--aln_schema", help="alignment schema (nexus or fasta)") | ||
parser.add_argument("-o","--output", help="path to output directory") | ||
|
||
|
||
args = parser.parse_args() | ||
|
||
|
||
|
||
# Create an 'scraper' object to get data from NCBI, align it an | ||
scraper = scraper_from_opentree(study_id =args.study_id, | ||
tree_id = args.tree_id, | ||
alnfile = args.alignment, | ||
aln_schema = args.aln_schema, | ||
workdir = args.output) | ||
|
||
sys.stdout.write("{} taxa in alignment and tree\n".format(len(scraper.data.aln))) | ||
|
||
|
||
#scraper.read_blast_wrapper() | ||
scraper.est_full_tree() | ||
scraper.data.write_labelled(label='^ot:ottTaxonName') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters