Skip to content

Commit

Permalink
update deps for notebook building
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Nov 6, 2020
1 parent 712e55b commit 2d5d509
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions genome_grist/conf/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ rule make_notebook:

rule make_html:
input:
source_nb='genome_grist/notebooks/report-sample.ipynb',
notebook = outdir + f'/reports/report-{SAMPLE}.ipynb'
output:
outdir + f'/reports/report-{SAMPLE}.html'
Expand Down
13 changes: 12 additions & 1 deletion genome_grist/notebooks/report-sample.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@
"#sample_id = 'p8808mo11'\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from IPython.display import Markdown as md\n",
"from IPython.display import display\n",
"md(f\"# genome-grist report for metagenome `{sample_id}`\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -48,7 +59,7 @@
"gather_df = pd.read_csv(f'../../outputs/{sample_id}.gather.csv')\n",
"\n",
"# names!\n",
"names_df = pd.read_csv(f'../../{sample_id}.acc.urls.csv')\n",
"names_df = pd.read_csv(f'../../outputs/genbank/{sample_id}.genomes.info.csv')\n",
"\n",
"# connect gather_df to all_df and left_df using 'genome_id'\n",
"def fix_name(x):\n",
Expand Down

0 comments on commit 2d5d509

Please sign in to comment.