Skip to content

Commit d70c087

Browse files
committed
Added a synthetic example
1 parent b76f0ff commit d70c087

7 files changed

Lines changed: 500 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,7 @@ gcnvplot plot \
4545
--sample-name SAMPLE_01 \
4646
--output plot.svg
4747
```
48+
49+
## Example data
50+
51+
A tiny synthetic BRCA1 transcript example is available in [`examples/brca1_synthetic`](examples/brca1_synthetic). It demonstrates a highlighted multi-exon deletion, open dots for intervals outside exons, and an uncovered-exon marker.

examples/brca1_synthetic/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# BRCA1 synthetic plotting example
2+
3+
This example is a tiny, synthetic dataset for exercising the transcript plotting features in `gcnvplot`.
4+
5+
It contains:
6+
7+
- `brca1_mane_minimal.gtf`: the BRCA1 `NM_007294.4` transcript line plus exon lines from an hg38 NCBI RefSeq GTF.
8+
- `background.tsv`: synthetic interval-wise background statistics with 20 mock background samples and interval-to-interval depth variation.
9+
- `sample_deletion.tsv`: a synthetic sample with realistic count jitter and a heterozygous deletion across BRCA1 exons 13-15.
10+
11+
The intervals are roughly 1 kb and have different expected depths, mimicking variable probe efficiency. Two intervals are intentionally intronic so the plot shows open sample dots; one of those intronic intervals falls inside the deletion and is depressed with the deleted exons. Exon 12 has no overlapping interval so the transcript track shows the uncovered-exon triangle.
12+
13+
Run from the repository root:
14+
15+
```bash
16+
gcnvplot plot \
17+
--read-counts examples/brca1_synthetic/sample_deletion.tsv \
18+
--background examples/brca1_synthetic/background.tsv \
19+
--transcript NM_007294.4 \
20+
--gtf examples/brca1_synthetic/brca1_mane_minimal.gtf \
21+
--sample-name "Synthetic BRCA1 exon 13-15 deletion" \
22+
--highlight chr17:43070928-43076614 \
23+
--output examples/brca1_synthetic/brca1_synthetic.svg
24+
```
25+
26+
The output should show:
27+
28+
- a depressed log2 signal across the highlighted exon 13-15 deletion, including the intronic interval inside the deletion,
29+
- filled dots for intervals overlapping exons,
30+
- open dots for intervals outside exons,
31+
- a red triangle under exon 12, which has no overlapping synthetic interval.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# normalization=median-of-ratios
2+
# baseline=synthetic-variable-counts
3+
# samples=20
4+
# lower_percentile=5
5+
# upper_percentile=95
6+
CONTIG START END BASELINE_MEDIAN N BG_NORM_MEAN BG_NORM_MEDIAN BG_NORM_SD BG_NORM_P5 BG_NORM_P95
7+
chr17 43044295 43045294 1180 20 1187 1180 93 1036 1333
8+
chr17 43045295 43046294 1125 20 1116 1125 82 998 1260
9+
chr17 43047174 43048173 980 20 998 980 82 853 1115
10+
chr17 43048658 43049657 1265 20 1249 1265 111 1093 1448
11+
chr17 43050600 43051599 910 20 929 910 70 802 1026
12+
chr17 43056600 43057599 1005 20 1013 1005 81 879 1139
13+
chr17 43062853 43063852 1088 20 1084 1088 81 962 1222
14+
chr17 43063853 43064852 960 20 973 960 83 831 1097
15+
chr17 43067152 43068151 1195 20 1184 1195 94 1049 1350
16+
chr17 43070583 43071582 1040 20 1058 1040 86 907 1182
17+
chr17 43073000 43073999 990 20 999 990 74 875 1112
18+
chr17 43073926 43074925 1135 20 1127 1135 101 978 1302
19+
chr17 43076052 43077051 970 20 985 970 76 852 1095
20+
chr17 43079000 43079999 1030 20 1019 1030 84 900 1169
21+
chr17 43090488 43091487 890 20 908 890 76 772 1015
22+
chr17 43091435 43092434 1325 20 1318 1325 101 1168 1492
23+
chr17 43092435 43093434 1420 20 1436 1420 124 1228 1625
24+
chr17 43093435 43094434 1490 20 1469 1490 121 1302 1690
25+
chr17 43094435 43095434 1385 20 1410 1385 102 1227 1553
26+
chr17 43095384 43096383 1060 20 1064 1060 93 916 1213
27+
chr17 43096767 43097766 1140 20 1131 1140 90 1000 1288
28+
chr17 43099328 43100327 1015 20 1031 1015 84 885 1154
29+
chr17 43103692 43104691 1210 20 1206 1210 93 1066 1363
30+
chr17 43104692 43105691 940 20 951 940 81 814 1074
31+
chr17 43105994 43106993 975 20 963 975 78 854 1104
32+
chr17 43115253 43116252 860 20 876 860 72 748 979
33+
chr17 43123566 43124565 720 20 724 720 56 633 812
34+
chr17 43124818 43125817 760 20 755 760 62 664 862
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
chr17 ncbiRefSeq.2022-10-28 transcript 43044295 43125364 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; gene_name "BRCA1";
2+
chr17 ncbiRefSeq.2022-10-28 exon 43044295 43045802 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "23"; exon_id "NM_007294.4.23"; gene_name "BRCA1";
3+
chr17 ncbiRefSeq.2022-10-28 exon 43047643 43047703 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "22"; exon_id "NM_007294.4.22"; gene_name "BRCA1";
4+
chr17 ncbiRefSeq.2022-10-28 exon 43049121 43049194 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "21"; exon_id "NM_007294.4.21"; gene_name "BRCA1";
5+
chr17 ncbiRefSeq.2022-10-28 exon 43051063 43051117 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "20"; exon_id "NM_007294.4.20"; gene_name "BRCA1";
6+
chr17 ncbiRefSeq.2022-10-28 exon 43057052 43057135 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "19"; exon_id "NM_007294.4.19"; gene_name "BRCA1";
7+
chr17 ncbiRefSeq.2022-10-28 exon 43063333 43063373 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "18"; exon_id "NM_007294.4.18"; gene_name "BRCA1";
8+
chr17 ncbiRefSeq.2022-10-28 exon 43063874 43063951 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "17"; exon_id "NM_007294.4.17"; gene_name "BRCA1";
9+
chr17 ncbiRefSeq.2022-10-28 exon 43067608 43067695 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "16"; exon_id "NM_007294.4.16"; gene_name "BRCA1";
10+
chr17 ncbiRefSeq.2022-10-28 exon 43070928 43071238 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "15"; exon_id "NM_007294.4.15"; gene_name "BRCA1";
11+
chr17 ncbiRefSeq.2022-10-28 exon 43074331 43074521 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "14"; exon_id "NM_007294.4.14"; gene_name "BRCA1";
12+
chr17 ncbiRefSeq.2022-10-28 exon 43076488 43076614 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "13"; exon_id "NM_007294.4.13"; gene_name "BRCA1";
13+
chr17 ncbiRefSeq.2022-10-28 exon 43082404 43082575 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "12"; exon_id "NM_007294.4.12"; gene_name "BRCA1";
14+
chr17 ncbiRefSeq.2022-10-28 exon 43090944 43091032 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "11"; exon_id "NM_007294.4.11"; gene_name "BRCA1";
15+
chr17 ncbiRefSeq.2022-10-28 exon 43091435 43094860 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "10"; exon_id "NM_007294.4.10"; gene_name "BRCA1";
16+
chr17 ncbiRefSeq.2022-10-28 exon 43095846 43095922 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "9"; exon_id "NM_007294.4.9"; gene_name "BRCA1";
17+
chr17 ncbiRefSeq.2022-10-28 exon 43097244 43097289 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "8"; exon_id "NM_007294.4.8"; gene_name "BRCA1";
18+
chr17 ncbiRefSeq.2022-10-28 exon 43099775 43099880 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "7"; exon_id "NM_007294.4.7"; gene_name "BRCA1";
19+
chr17 ncbiRefSeq.2022-10-28 exon 43104122 43104261 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "6"; exon_id "NM_007294.4.6"; gene_name "BRCA1";
20+
chr17 ncbiRefSeq.2022-10-28 exon 43104868 43104956 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "5"; exon_id "NM_007294.4.5"; gene_name "BRCA1";
21+
chr17 ncbiRefSeq.2022-10-28 exon 43106456 43106533 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "4"; exon_id "NM_007294.4.4"; gene_name "BRCA1";
22+
chr17 ncbiRefSeq.2022-10-28 exon 43115726 43115779 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "3"; exon_id "NM_007294.4.3"; gene_name "BRCA1";
23+
chr17 ncbiRefSeq.2022-10-28 exon 43124017 43124115 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "2"; exon_id "NM_007294.4.2"; gene_name "BRCA1";
24+
chr17 ncbiRefSeq.2022-10-28 exon 43125271 43125364 . - . gene_id "BRCA1"; transcript_id "NM_007294.4"; exon_number "1"; exon_id "NM_007294.4.1"; gene_name "BRCA1";

0 commit comments

Comments
 (0)