Skip to content

Commit

Permalink
Move manuscript into a directory of that name
Browse files Browse the repository at this point in the history
  • Loading branch information
huddlej committed Nov 13, 2023
1 parent f95bdff commit b6c899d
Show file tree
Hide file tree
Showing 90 changed files with 103 additions and 106 deletions.
11 changes: 4 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ instance/
# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

Expand Down Expand Up @@ -135,10 +132,10 @@ notebooks/zika_tree.json
source/docs/_build
.vscode/

docs/cartography.aux
docs/cartography.bbl
docs/cartography.blg
docs/cartography.suppinfo
manuscript/cartography.aux
manuscript/cartography.bbl
manuscript/cartography.blg
manuscript/cartography.suppinfo

# Adding gridsearch but not results
**/seasonal-flu-nextstrain/results/*
Expand Down
6 changes: 3 additions & 3 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ wildcard_constraints:
rule all:
input:
# Static version of the paper.
"docs/cartography.pdf",
"manuscript/cartography.pdf",
# Interactive version of the paper.
"docs/cartography.html",
#"manuscript/cartography.html",

# Include rules for each pathogen.
include: "simulations/Snakefile"
Expand All @@ -86,4 +86,4 @@ rule pathogens:
*rules.sarscov2_test.input,

# Include rules for the manuscript.
include: "docs/Snakefile"
include: "manuscript/Snakefile"
48 changes: 24 additions & 24 deletions docs/Snakefile → manuscript/Snakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rule manuscript:
input:
"docs/cartography.pdf",
"manuscript/cartography.pdf",

rule within_between_stats:
input:
Expand All @@ -9,8 +9,8 @@ rule within_between_stats:
within_between_df_sars_training = "sars-cov-2-nextstrain/results/full_within_between_stats.csv",
within_between_df_sars_test = "sars-cov-2-nextstrain-2022-2023/results/full_within_between_stats.csv",
output:
flu_png = "docs/figures/within_between_influenza.png",
sars_png = "docs/figures/within_between_sars.png",
flu_png = "manuscript/figures/within_between_influenza.png",
sars_png = "manuscript/figures/within_between_sars.png",
conda: "../cartography.yml"
notebook:
"../notebooks/2023-07-24WithinVBetweenFigure.ipynb"
Expand All @@ -27,7 +27,7 @@ rule concat_mutation_tables:
"sars-cov-2-nextstrain-2022-2023/results/mutation_table_for_Nextclade_pango.csv",
]
output:
csv_table = "docs/tables/mutation_table.csv",
csv_table = "manuscript/tables/mutation_table.csv",
conda: "../cartography.yml"
shell:
"""
Expand All @@ -45,8 +45,8 @@ rule concat_HDBSCAN_tables:
"sars-cov-2-nextstrain/results/optimal_cluster_accuracy_and_parameters_for_Nextclade_pango_collapsed.csv",
]
output:
fullKDE = "docs/tables/total_HDBSCAN_table.csv",
table = "docs/tables/accuracy_table.tex",
fullKDE = "manuscript/tables/total_HDBSCAN_table.csv",
table = "manuscript/tables/accuracy_table.tex",
params:
disease_names = ["Influenza H3N2", "SARS-CoV-2 (Nextstrain clade)", "SARS-CoV-2 (Nextclade pango)"],
conda: "../cartography.yml"
Expand All @@ -69,7 +69,7 @@ rule concat_within_between_figure_table:
"sars-cov-2-nextstrain-2022-2023/results/full_within_between_stats.csv",
]
output:
csv_table = "docs/tables/total_within_between_stats.csv",
csv_table = "manuscript/tables/total_within_between_stats.csv",
conda: "../cartography.yml"
shell:
"""
Expand All @@ -89,7 +89,7 @@ rule concat_accessions_and_authors_tables:
"sars-cov-2-nextstrain-2022-2023/results/accessions_and_authors.tsv",
],
output:
authors="docs/tables/accessions_and_authors.tsv",
authors="manuscript/tables/accessions_and_authors.tsv",
conda: "../cartography.yml"
shell:
"""
Expand All @@ -99,22 +99,22 @@ rule concat_accessions_and_authors_tables:
rule manuscript_pdf:
input:
*rules.pathogens.input,
"docs/figures/simulated-influenza-like-with-no-reassortment-scores-by-parameters.png",
"docs/figures/simulated-coronavirus-like-with-moderate-recombination-rate-scores-by-parameters.png",
"docs/figures/simulated-populations-representative-embeddings.png",
"docs/figures/simulated-populations-representative-mds-embeddings.png",
"docs/figures/flu-2018-2020-replication-of-cluster-accuracy.png",
"docs/figures/sarscov2-test-replication-of-cluster-accuracy.png",
manuscript="docs/cartography.tex",
bibliography="docs/cartography.bib",
accuracy_table="docs/tables/accuracy_table.tex",
mutation_table="docs/tables/mutation_table.csv",
within_between_stats_table="docs/tables/total_within_between_stats.csv",
within_between_influenza_figure="docs/figures/within_between_influenza.png",
within_between_sars_figure="docs/figures/within_between_sars.png",
accessions_and_authors_table="docs/tables/accessions_and_authors.tsv",
"manuscript/figures/simulated-influenza-like-with-no-reassortment-scores-by-parameters.png",
"manuscript/figures/simulated-coronavirus-like-with-moderate-recombination-rate-scores-by-parameters.png",
"manuscript/figures/simulated-populations-representative-embeddings.png",
"manuscript/figures/simulated-populations-representative-mds-embeddings.png",
"manuscript/figures/flu-2018-2020-replication-of-cluster-accuracy.png",
"manuscript/figures/sarscov2-test-replication-of-cluster-accuracy.png",
manuscript="manuscript/cartography.tex",
bibliography="manuscript/cartography.bib",
accuracy_table="manuscript/tables/accuracy_table.tex",
mutation_table="manuscript/tables/mutation_table.csv",
within_between_stats_table="manuscript/tables/total_within_between_stats.csv",
within_between_influenza_figure="manuscript/figures/within_between_influenza.png",
within_between_sars_figure="manuscript/figures/within_between_sars.png",
accessions_and_authors_table="manuscript/tables/accessions_and_authors.tsv",
output:
manuscript = "docs/cartography.pdf",
manuscript = "manuscript/cartography.pdf",
conda: "../cartography.yml"
shell:
"""
Expand All @@ -129,7 +129,7 @@ rule manuscript_html:
template = "pandoc-scholar.html",
css = "pandoc-scholar.css"
output:
manuscript = "cartography.html"
manuscript = "manuscript/cartography.html"
conda: "../cartography.yml"
shell:
"""
Expand Down
Loading

0 comments on commit b6c899d

Please sign in to comment.