Skip to content

Commit

Permalink
add prune target for mugration
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Apr 29, 2021
1 parent ca46113 commit 9dc376a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion autologs
11 changes: 6 additions & 5 deletions workflow/notebooks/plot_phylo.py.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"outputs": [],
"source": [
"MISSING_DATA=5\n",
"PRUNE=\"full\"\n",
"JSON_INDENT=2\n",
"AUSPICE_PREFIX=\"plague-phylogeography-projects_main\""
]
Expand All @@ -98,10 +99,10 @@
"auspice_remote_dir = \"/mnt/c/Users/ktmea/Projects/plague-phylogeography-projects/auspice/\"\n",
"\n",
"\n",
"iqtree_dir = os.path.join(project_dir, \"iqtree/all/chromosome/full/filter{}/\".format(MISSING_DATA))\n",
"lsd_dir = os.path.join(project_dir, \"lsd/all/chromosome/full/filter{}/\".format(MISSING_DATA))\n",
"mugration_dir = os.path.join(project_dir, \"mugration/all/chromosome/full/filter{}/\".format(MISSING_DATA))\n",
"snippy_dir = os.path.join(project_dir, \"snippy_multi/all/chromosome/full/filter{}/\".format(MISSING_DATA))\n",
"iqtree_dir = os.path.join(project_dir, \"iqtree/all/chromosome/{}/filter{}/\".format(PRUNE, MISSING_DATA))\n",
"lsd_dir = os.path.join(project_dir, \"lsd/all/chromosome/{}/filter{}/\".format(PRUNE, MISSING_DATA))\n",
"mugration_dir = os.path.join(project_dir, \"mugration/all/chromosome/{}/filter{}/\".format(PRUNE, MISSING_DATA))\n",
"snippy_dir = os.path.join(project_dir, \"snippy_multi/all/chromosome/{}/filter{}/\".format(PRUNE, MISSING_DATA))\n",
"\n",
"# ------------------------------------------\n",
"# Trees\n",
Expand Down Expand Up @@ -135,7 +136,7 @@
"\n",
"# ------------------------------------------\n",
"# Output\n",
"out_dir = project_dir + \"figures/\"\n",
"out_dir = iqtree_dir = os.path.join(project_dir, \"auspice/all/chromosome/{}/filter{}/\".format(PRUNE, MISSING_DATA))\"\n",
"if not os.path.exists(out_dir):\n",
" os.mkdir(out_dir)"
]
Expand Down
7 changes: 7 additions & 0 deletions workflow/rules/targets.smk
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,13 @@ rule mugration_all:
input:
mugration_all_input

mugration_prune_all_input = expand(results_dir + "/mugration/all/{locus_name}/prune/filter{missing_data}/metadata.tsv",
locus_name=config["reference_locus_name"],
missing_data = config["snippy_missing_data"])
rule mugration_prune_all:
input:
mugration_prune_all_input

#------------------------------------------------------------------------------#
# Plot
#------------------------------------------------------------------------------#
Expand Down

0 comments on commit 9dc376a

Please sign in to comment.