You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #73 from AyushSemwal/annot_demux_refactor
* Default annotation model switched from 10x3p_sc_ont_013 (Conv+CRF) to 10x3p_sc_ont_016 (CNN-BiLSTM-CRF, 3 conv × 64 filters, 1 BiLSTM × 32 units). Empirically validated to ~525 kb on 4× L40S.
* GPU stability hardening — bounded join→SIGTERM→SIGKILL worker shutdown to prevent NCCL ring corruption across jobs, predict_with_backoff now raises on stale model after K.clear_session(), XLA disabled (tf2crf Viterbi incompatibility on TF 2.15), CUDA_VISIBLE_DEVICES no longer blanked when no GPUs found, model state persisted across length bins.
* QC enhancements — new --gene-body-bed flag accepting RSeQC-style BED12 (replaces auto-extraction from GTF); single-pass BAM scan is significantly faster.
* Training/simulation — new --min-flank/--max-flank for terminal cDNA flanks, separate from interior --min/max-spacer; pre-flight read-length math corrected in assess-model.
* Observability — every pipeline stage reports peak memory + elapsed time; logs and artifacts include the model name.
* Bug fixes — barcode-correct falls back to bundled seq_orders.yaml when only --model-name is given; extract_annotated_seqs no longer crashes on empty Starts.
* Documentation — resource_requirements.qmd re-anchored on _016 (bpt 6,644 → 2,916, k 73.4 → 32.2 KB/bp); new --max-batch-size per-VRAM-tier tuning guidance; XLA references removed; tentative-figures disclaimer added pending per-GPU benchmarking.
Copy file name to clipboardExpand all lines: docs/webpages/model_training/assess_model.qmd
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,8 @@ pannable plots with hover tooltips. This is the primary artifact for reviewing m
146
146
|`--transcriptome`| TEXT | None | Transcriptome FASTA for realistic cDNA | Recommended for realistic assessment |
147
147
|`--min-spacer`| INT | 0 | Minimum spacer length between concatenated fragments | Adjust if your data has inter-fragment cDNA |
148
148
|`--max-spacer`| INT | 50 | Maximum spacer length between concatenated fragments | Adjust if your data has inter-fragment cDNA |
149
+
|`--min-flank`| INT | 0 | Minimum length of random cDNA flank at each terminal end of a read | Rarely changed |
150
+
|`--max-flank`| INT | 50 | Maximum length of random cDNA flank at each terminal end of a read | Raise (e.g. 200–300) to cover real ONT adapter-flank lengths and reduce edge false positives |
149
151
|`--max-trunc-5p`| INT | 0 | Max 5' truncation (bp) | Enable to test truncated read handling |
150
152
|`--max-trunc-3p`| INT | 0 | Max 3' truncation (bp) | Enable to test truncated read handling |
151
153
|`--threads`| INT | 2 | CPU threads | Increase for faster simulation |
@@ -162,7 +164,7 @@ pannable plots with hover tooltips. This is the primary artifact for reviewing m
Copy file name to clipboardExpand all lines: docs/webpages/model_training/simulate_data_cli.qmd
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,10 @@ For background on how reads are simulated and why, see [Read Structure Simulatio
29
29
|`--rc` / `--no-rc`| FLAG |`--rc`| Include reverse complements (doubles the training set) | Disable only if your protocol has a fixed known orientation |
30
30
|`--transcriptome`| TEXT | None | Transcriptome FASTA for realistic cDNA generation | Recommended — improves model accuracy on real data |
31
31
|`--invalid-fraction`| FLOAT | 0.3 | Fraction of reads generated as structurally invalid artifacts | Increase if your data has many malformed reads |
32
+
|`--min-spacer`| INT | 0 | Minimum length of random cDNA spacer between concatenated fragments | Rarely changed |
33
+
|`--max-spacer`| INT | 50 | Maximum length of random cDNA spacer between concatenated fragments | Raise to cover longer real chimeric junctions |
34
+
|`--min-flank`| INT | 0 | Minimum length of random cDNA flank at each terminal end of a read | Rarely changed |
35
+
|`--max-flank`| INT | 50 | Maximum length of random cDNA flank at each terminal end of a read | Raise (e.g. 200–300) to cover real ONT adapter-flank lengths and reduce edge false positives |
single-isoform-per-gene sets for hg38, hg19, mm10, etc. The fastest path to a clean curve.
85
+
-**MANE_Select export** — for human, the ~19,000 MANE_Select transcripts converted to BED12 (e.g. via UCSC
86
+
`gtfToGenePred` + `genePredToBed`).
87
+
-**Custom curated set** — any BED12 the user trusts (e.g. APPRIS principal isoforms, project-specific genes
88
+
of interest).
89
+
90
+
Without `--gene-body-bed`, the gene body coverage plot is omitted from the report (other QC sections are
91
+
unaffected).
92
+
72
93
# Command Line Options
73
94
74
95
| Option | Default | Description | When to change |
@@ -81,7 +102,8 @@ tranquillyzer qc-metrics \
81
102
|`--invalid-file`| auto-detect | Path to invalid annotations parquet | Only if non-standard location |
82
103
|`--bam`| None | Coordinate-sorted BAM with CB/UB tags | Provide for saturation and alignment metrics |
83
104
|`--counts-matrix`| None | featureCounts counts matrix TSV | Provide for gene-level QC |
84
-
|`--gtf`| None | GTF annotation file | Required with `--counts-matrix`; also used for gene body coverage |
105
+
|`--gtf`| None | GTF annotation file | Required with `--counts-matrix`|
106
+
|`--gene-body-bed`| None | BED12 file (plain or `.gz`) for gene body coverage, RSeQC-style | Provide a curated single-transcript-per-gene BED (e.g. RSeQC `HouseKeepingGenes.bed.gz`, MANE_Select export) to enable the gene body coverage plot |
85
107
|`--read-len-bin-width`| 100 | Bin width for read-length histograms | Decrease for finer resolution |
0 commit comments