diff --git a/report.ipynb b/report.ipynb
index 9d6de46..146d518 100644
--- a/report.ipynb
+++ b/report.ipynb
@@ -111,7 +111,7 @@
"outputs": [],
"source": [
"samtools_view_output = !samtools view -F 4 $BAM_PATH | wc -l\n",
- "n_aligned_reads = int(samtools_view_output[0])"
+ "n_mapped_reads = int(samtools_view_output[0])"
]
},
{
@@ -216,7 +216,7 @@
"This report summarizes the detection of SARS-CoV-2, the causative agent of COVID-19, in sample \n",
"{sample_filename}. \n",
"This sample contained {n_reads:,} reads, with\n",
- "{n_aligned_reads:,} mapping to the \n",
+ "{n_mapped_reads:,} mapping to the \n",
"reference. \n",
"Reads cover {cov:.0%} of the genome ({cov_10x:.0%} over 10×), with a mean depth of {depth:.1f}×.\n",
"A total of {n_snps} variant{'s were' if n_snps != 1 else 'was'} detected.\"\"\"\n",
@@ -345,6 +345,8 @@
"source": [
"# Save a JSON too, including filtered variants <10x\n",
"results = {\n",
+ " \"n_reads\": n_reads,\n",
+ " \"n_mapped_reads\": n_mapped_reads,\n",
" \"report_id\": os.environ.get(\"ONE_CODEX_REPORT_UUID\"), \n",
" \"sample_id\": os.environ.get(\"ONE_CODEX_SAMPLE_UUID\"),\n",
" \"variants\": [r.to_dict() for _, r in snp_table.iterrows()]\n",