Sovereign 8s.is mirror of standardgalactic/Snakemake-HumAS-SD
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| config | ||
| data | ||
| test | ||
| workflow | ||
| .gitattributes | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| env.yaml | ||
| env_dev.yaml | ||
| LICENSE | ||
| README.md | ||
Snakemake-HumAS-SD
Workflow to use stringdecomposer to annotate alpha-satellite HOR monomers.
Usage
conda env create -f env.yaml --name humas_sd
conda activate humas_sd
snakemake -np --sdm conda --configfile config/config.yaml -c 1
Input
Expects .fa files in input_dir with chr? in name.
- ex.
chr3.fa,HG0002_ch3_new.fa, orHG00171_chr3.fa
Output
results/{contig}/stv_row.bed- HOR variants
results/{contig}/final_decomposition.bedStringDecomposeroutput formatted as BED9 file
Configuration
# Input directory with fa files.
input_dir: "cens"
# Various directories.
output_dir: "results"
benchmarks_dir: "benchmarks"
logs_dir: "logs"
# Input HMM profile with all possible monomers.
# May remove.
hmm_profile: "data/AS-HORs-hmmer.hmm"
# Threads passed to stringdecomposer
threads: 4
Test
Workflow
On HG01596 chr3 H1.
# ~5-10 minutes.
snakemake -np --sdm conda --configfile test/config/config.yaml -c 4
Compare HumAS-HMMER
Two centromere HOR annotation bed files.
- Output from HumAS-HMMER_for_AnVIL using https://github.com/logsdon-lab/CenMAP/blob/main/data/models/AS-HORs-hmmer3.0-170921.hmm.
- Output from stringdecomposer.
Note
From HGSVC3 sample ,
HG01596_chr3_haplotype1-0000018:7760823-18212765, which was extracted via CenMAP v0.1.5.
python test/scripts/compare.py
Number of shared HORs annotated: 22894
Average Length Difference: 1.1741504324277103
Live:
Correct: 18245
Total: 18327
Perc: 99.55257270693512
Other:
Correct: 3880
Total: 4567
Perc: 84.9573023866871
Sources
-
HMM profile:
-
Based on annotations from:
- Shepelev VA, Uralsky LI, Alexandrov AA, Yurov YB, Rogaev EI, Alexandrov IA. Annotation of suprachromosomal families reveals uncommon types of alpha satellite organization in pericentromeric regions of hg38 human genome assembly. Genom Data. 2015;5:139-146. doi:10.1016/j.gdata.2015.05.035
Cite
Gao S, Oshima KK, Chuang SC, Loftus M, Montanari A, Gordon DS, Human Genome Structural Variation Consortium, Human Pangenome Reference Consortium, Hsieh P, Konkel MK, Ventura M, Logsdon GA. A global view of human centromere variation and evolution. bioRxiv. 2025. p. 2025.12.09.693231. doi:10.64898/2025.12.09.693231