Skip to content

Commit 18fc131

Browse files
committed
.
1 parent f3f478c commit 18fc131

3 files changed

Lines changed: 453 additions & 27 deletions

File tree

NOGR.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# NOGR (Non-Overlapping Genomic Regions)
2+
3+
Virasign reports **NOGR** as an extra per-virus evidence metric: it counts how many **distinct, non-overlapping regions of the reference genome** are supported by at least one mapped read, and the total number of reference bases spanned by those regions. This follows an mNGS reporting idea used before that can be very valuable for interpretation: requiring a minimum number of **non-overlapping viral reads/regions** to support a detection (e.g. Nature Communications `s41467-024-51470-y`, which uses a threshold of ≥3 non-overlapping viral reads/contigs as a positive criterion).
4+
5+
----
6+
7+
## Why this is useful
8+
9+
Coverage breadth can be low for true positives (degraded samples, low viral load), but it can also be low for technical artifacts such as **amplicon contamination**, where many reads stack on the same small viral genomic region. **NOGR helps distinguish real signals from false contamination**.
10+
11+
----
12+
13+
## What exactly is computed
14+
15+
Virasign looks at the virus BAM file (`{accession}.bam`) and does this:
16+
17+
- **Step 1**: For each mapped read, record where it maps on the virus genome (**start** and **end** coordinates).
18+
- **Step 2**: Count how many reads map to **different parts** of the genome (reads that do not overlap each other on the genome).
19+
20+
This gives two values:
21+
22+
- **`nogr_regions`**: how many **separate (non-overlapping) genomic regions** are supported
23+
- **`nogr_bases`**: how many **virus genome bases** are covered by those separate regions (so it can never be larger than the genome length)
24+
25+
----
26+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ virasign --help
103103
- `--min_mapped_reads`: Min read number that must map to a reference for it to be reported (default: `100`).
104104
- `--coverage_depth`: Min average coverage depth across the reference (default: `1.0`).
105105
- `--coverage_breadth`: Min fraction of the reference covered by ≥1 read (default: `0.1`).
106+
- `--NOGR` / `--min-nogr`: Minimum number of **NOGR** (Non-Overlapping Genomic Regions) required to report a reference (default: `0`). See `NOGR.md`.
106107
- `-u, --ultrasensitive`: Lowers all thresholds to maximise detection. Useful when you suspect amplicon contamination or severe viral degeneration (bad sample storage), but not advised as default because it increases false positivity.
107108

108109
- **Reporting**

0 commit comments

Comments
 (0)