跟着nature plants做种群历推断:PSMC、SMC++、MSMC2 (二)

https://datadryad.org/stash/share/jcQfZcbai80MmLb6kO4_mrQLfu1tX-I_1_Yx7hAfJkI

  1. ref=genome.fa

PSMC

  1. bcftools mpileup \
  2. -C 50 \
  3. -O u \
  4. -f ${ref} \
  5. ${bam} \
  6. | bcftools call -c -Ov - \
  7. | vcfutils.pl vcf2fq -d 10 -D 100 \
  8. > ${sample}.fq
  9. fq2psmcfa -q 20 ${sample}.fq > ${sample}.psmcfa
  10. psmc \
  11. -N 25 \
  12. -t 15 \
  13. -r 5 \
  14. -p "4+25*2+4+6" \
  15. -o ${sample}.psmc \
  16. ${sample}.psmcfa
  1. splitfa ${sample}.psmcfa > ${sample}.split.psmcfa
  2. mkdir ${sample}.bootstrap
  3. for i in `seq 100`
  4. do
  5. psmc \
  6. -N 25 \
  7. -t 15 \
  8. -r 5 \
  9. -b \
  10. -p "4+25*2+4+6" \
  11. -o ${sample}.bootstrap/round-${i}.psmc \
  12. e.${sample}.split.psmcfa
  13. done
  14. cat ${sample}.psmc ${sample}.bootstrap/round-*.psmc > ${sample}.addboot.psmc

SMC++

参考