|
| 1 | +[](https://github.com/WGLab/ContextScore/actions/workflows/unit-tests.yml) |
| 2 | + |
1 | 3 | # ContextScore |
2 | | -Assign confidence scores to SV datasets based on coverage, genomic context, and other important alignment features |
| 4 | +<p> |
| 5 | +<img src="https://github.com/user-attachments/assets/03603ad1-df9d-438d-911c-81af0cf612e3" alt="ContextSV" align="left" style="width:100px;"/> |
| 6 | +Filtering step for the <a href="https://github.com/WGLab/ContextSV">ContextSV</a> long-read structural variant (SV) caller, utilizing a Random Forest model trained on SV validation features. Assign confidence scores to SV datasets based on coverage, genomic context, and other important alignment features, then filter low-confidence SVs to increase the precision of the final callset. Genomic context is determined from annotations using ANNOVAR and UCSC databases. |
| 7 | +</p> |
| 8 | +<br clear="left"/> |
| 9 | + |
| 10 | +## Installation |
| 11 | +```bash |
| 12 | +conda install -c wglab -c bioconda -c conda-forge contextscore |
| 13 | + |
| 14 | +# Or using mamba (faster dependency resolution): |
| 15 | +mamba install -c wglab contextscore |
| 16 | +``` |
| 17 | + |
| 18 | +## ANNOVAR setup |
| 19 | +[ANNOVAR](https://annovar.openbioinformatics.org/en/latest/user-guide/download/) is required for annotations and must be installed separately. |
| 20 | + |
| 21 | +These are the required ANNOVAR components for ContextScore: |
| 22 | +- `--annovar`: directory containing `annotate_variation.pl` and `table_annovar.pl` |
| 23 | +- `--annovar-db`: ANNOVAR database directory |
| 24 | + |
| 25 | +## User Workflow |
| 26 | +```bash |
| 27 | +contextscore --input input.vcf --output scored.vcf --sample-coverage 30 --buildver {hg38,hg19} --threshold 0.2 \ |
| 28 | + --annovar /path/to/annovar --annovar-db /path/to/humandb |
| 29 | +``` |
| 30 | + |
| 31 | +## Sources for additional annotations (under `data/` directory): |
| 32 | +| File | Source | Description | Link | |
| 33 | +| --- | --- | --- | --- | |
| 34 | +| `cytobands_hg{19,38}.txt` | UCSC Genome Browser | Cytoband annotations for human genome builds hg19 and hg38 | [UCSC hg19](https://hgdownload.soe.ucsc.edu/goldenPath/hg19/database/cytoBand.txt.gz) / [UCSC hg38](https://hgdownload.soe.ucsc.edu/goldenPath/hg38/database/cytoBand.txt.gz) | |
| 35 | +| `hg{19,38}_segmental_duplications.bed` | UCSC Genome Browser | Segmental duplication annotations for human genome builds hg19 and hg38 | [UCSC hg19](https://hgdownload.soe.ucsc.edu/goldenPath/hg19/database/segmentalDuplications.txt.gz) / [UCSC hg38](https://hgdownload.soe.ucsc.edu/goldenPath/hg38/database/segmentalDuplications.txt.gz) | |
| 36 | +| `phastcons100way_hg{19,38}.bed` | UCSC Genome Browser | PhastCons conservation scores for human genome builds hg19 and hg38 | [UCSC hg19](https://hgdownload.soe.ucsc.edu/goldenPath/hg19/database/phastCons100way.txt.gz) / [UCSC hg38](https://hgdownload.soe.ucsc.edu/goldenPath/hg38/database/phastCons100way.txt.gz) | |
| 37 | +| `simple_repeats_hg{19,38}.bed` | UCSC Genome Browser | Simple repeat annotations for human genome builds hg19 and hg38 | [UCSC hg19](https://hgdownload.soe.ucsc.edu/goldenPath/hg19/database/simpleRepeat.txt.gz) / [UCSC hg38](https://hgdownload.soe.ucsc.edu/goldenPath/hg38/database/simpleRepeat.txt.gz) | |
| 38 | +| `fragile_sites_hg38.bed` / `fragile_sites_hg19_liftover.bed` | [HumCFS](https://webs.iiitd.edu.in/raghava/humcfs/download.html) | Fragile site annotations for human genome builds hg38 and hg19 (liftover) | [HumCFS](https://webs.iiitd.edu.in/raghava/humcfs/fragile_site_bed.zip) | |
| 39 | + |
0 commit comments