比对
minimap2 \
-x map-ont \
-t 4 \
--MD \
--cs \
-a \
${ref} \
${sample}.fq.gz \
| samtools sort - -o ${sample}.sort.bam
SV 检测
sniffles \
-m ${sample}.sort.bam \
-v ${sample}.sniffles.vcf \
--min_support 5 \
--min_length 50 \
--threads 4 \
> ${sample}.sniffles.log
awk '$1 ~ /#/ || ($7 != "STRANDBIAS" && $8 !~ "IMPRECISE" && $7 != "UNRESOLVED")' \
${sample}.sniffles.vcf \
> ${sample}.sniffles.filter.vcf
ls *.sniffles.vcf > vcf_raw_calls.txt
SURVIVOR merge \
vcf_raw_calls.txt \
1000 1 1 -1 -1 -1 \
merged_1kbpdist.vcf
sniffles \
-m ${sample}.sort.bam \
-v ${sample}.sniffles.gt.vcf \
--Ivcf merged_1kbpdist.vcf \
--min_support 5 \
--min_length 50 \
--threads 4 \
> ${sample}.sniffles.gt.log
ls *.sniffles.gt.vcf > vcf_gt_calls.txt
SURVIVOR merge \
vcf_gt_calls.txt \
1000 -1 1 -1 -1 -1 \
merged_1kbpdist.vcf
参考