Table of contents
Usage
A simple run
To simply run the THORIN tool on your cohort, we assume you already have the following files ready:
data.group
: a group file listing focal individuals and reference individualsdata_chr20.bcf
: a genotype file containing at least your focal and reference individualsdata_chr20.unrelated_samples.bcf
: a genotype file containing unrelated individualschr20.b38.gmap.gz
: a genetic map file in the correct genome built (can be found here)
CHR=20
GRP=data.group
IN=data_chr20.bcf
UNR=data_chr20.unrelated_samples.bcf
MAP=chr20.b38.gmap.gz
OUT=data_chr20.thorin.prob
./thorin_v1.2 -I ${IN} -H ${UNR} -M ${MAP} -R chr${CHR} -G ${GRP} -O ${OUT}
The Variant Call Format output
For the output to be in .vcf.gz
or .bcf
format, simply add the desired extension to the output file name, such that:
CHR=20
GRP=data.group
IN=data_chr20.bcf
UNR=data_chr20.unrelated_samples.bcf
MAP=chr20.b38.gmap.gz
OUT=data_chr20.thorin.prob.bcf
./thorin_v1.2 -I ${IN} -H ${UNR} -M ${MAP} -R chr${CHR} -G ${GRP} -O ${OUT}
IBD segments
To output IBD segments, use in addition the option --ibd
:
CHR=20
GRP=data.group
IN=data_chr20.bcf
UNR=data_chr20.unrelated_samples.bcf
MAP=chr20.b38.gmap.gz
OUT=data_chr20.thorin.prob.bcf
OUT_SEG=data_chr20.thorin_segments.prob
./thorin_v1.2 -I ${IN} -H ${UNR} -M ${MAP} -R chr${CHR} -G ${GRP} -O ${OUT} --ibd ${OUT_SEG}
IBD scaffold
To output the scaffold based on IBD probabilities, use the option --scaffold
:
CHR=20
GRP=data.group
IN=data_chr20.bcf
UNR=data_chr20.unrelated_samples.bcf
MAP=chr20.b38.gmap.gz
OUT=data_chr20.thorin.prob.bcf
OUT_SCAF=data_chr20.thorin_scaffold.vcf.gz
./thorin_v1.2 -I ${IN} -H ${UNR} -M ${MAP} -R chr${CHR} -G ${GRP} -O ${OUT} --scaffold ${OUT_SCAF}