重测序

GSE_统计位点测序深度

2021-01-11  本文已影响0人  宗肃書

统计位点测序深度

mkdir depth
ls *.bam > flagstat_bam
find *.bam>bam_sample
sed -i "s/.bam/ /g" bam_sample
paste flagstat_bam bam_sample >flagstatbam_list
vim depth.sh
cat flagstatbam_list |while read id
do
          arr=(${id})
         bam=${arr[0]}
         sample=${arr[1]}
         samtools depth $bam > depth/$sample.depth.txt &
         done
chmod a+x depth.sh
nohup ./depth.sh
cd depth
上一篇 下一篇

猜你喜欢

热点阅读