比对

  1. minimap2 \
  2. -x map-ont \
  3. -t 4 \
  4. --MD \
  5. --cs \
  6. -a \
  7. ${ref} \
  8. ${sample}.fq.gz \
  9. | samtools sort - -o ${sample}.sort.bam

SV 检测

  1. sniffles \
  2. -m ${sample}.sort.bam \
  3. -v ${sample}.sniffles.vcf \
  4. --min_support 5 \
  5. --min_length 50 \
  6. --threads 4 \
  7. > ${sample}.sniffles.log
  8. awk '$1 ~ /#/ || ($7 != "STRANDBIAS" && $8 !~ "IMPRECISE" && $7 != "UNRESOLVED")' \
  9. ${sample}.sniffles.vcf \
  10. > ${sample}.sniffles.filter.vcf
  11. ls *.sniffles.vcf > vcf_raw_calls.txt
  12. SURVIVOR merge \
  13. vcf_raw_calls.txt \
  14. 1000 1 1 -1 -1 -1 \
  15. merged_1kbpdist.vcf

  1. sniffles \
  2. -m ${sample}.sort.bam \
  3. -v ${sample}.sniffles.gt.vcf \
  4. --Ivcf merged_1kbpdist.vcf \
  5. --min_support 5 \
  6. --min_length 50 \
  7. --threads 4 \
  8. > ${sample}.sniffles.gt.log
  9. ls *.sniffles.gt.vcf > vcf_gt_calls.txt
  10. SURVIVOR merge \
  11. vcf_gt_calls.txt \
  12. 1000 -1 1 -1 -1 -1 \
  13. merged_1kbpdist.vcf

参考