PSMC 是使用单个个体的两条序列推断群体历史动态的方法,一般认为,测序深度大于10X的个体推算结果比较准确,在1000年内的结果不一定准确
samtools mpileup -C50 -uf ref.fa aln.bam | bcftools call -c - | vcfutils.pl vcf2fq -d $average_depth/3 -D $average_depth/3 -D 100 | gzip > diploid.fq.gzutils/fq2psmcfa -q20 diploid.fq.gz > diploid.psmcfafor i in 1..100:
psmc -N25 -t15 -r5 -p "4+25*2+4+6" -o diploid.psmc diploid.psmcfa
done或
seq 100 | xargs -i echo psmc -N25 -t15 -r5 -b -p "4+25*2+4+6" -o round-{}.psmc split.fa | shcat roud-*.psmc > combined.psmcutils/psmc_plot.pl -pY50000 -u $mutation_rate -g $per_generation_time combined combined.psmc