run_targetBed_ref.pbs 912 B

12345678910111213141516171819202122
  1. #! /usr/bin/sh
  2. #PBS -N GC
  3. #PBS -j oe
  4. #PBS -l ncpus=8
  5. #PBS -l nodes=1
  6. #PBS -l mem=20G
  7. cd ${PBS_O_WORKDIR}
  8. #sample=$1
  9. samtools=/ngs/Bioinf/soft/cellar/samtools/bin/samtools
  10. ref=/ngs/Bioinf/Database/ref/hg19/seq/hg19.fa
  11. bedtools=/ngs/Bioinf/soft/cellar/bedtools/bin
  12. shome=/cgdata/guocq/script/2022-FeBY2
  13. target=$shome/bed/test/FeBY2_20210902.sorted.hg19.bed
  14. export PERL5LIB=~/perl5/lib/perl5
  15. slopBed -i $target -g $ref.fai -b 80 |mergeBed > $target.200.bed
  16. perl $shome/gc/get_GC_Refcnt.pl 200 $ref hg19 $target.200.bed 1 > FeBY2_2022.GC_REF.200_$run.xls
  17. cut -f2,6 FeBY2_2022.GC_REF.200_$run.xls |awk '$2~/^[1-9]/ && $2>900' > FeBY2_2022.GC_REF.200.tsv
  18. slopBed -i $target -g $ref.fai -b 180 |mergeBed > $target.300.bed
  19. perl $shome/gc/get_GC_Refcnt.pl 300 $ref hg19 $target.300.bed 1 > FeBY2_2022.GC_REF.300_$run.xls
  20. cut -f2,6 FeBY2_2022.GC_REF.300_$run.xls |awk '$2~/^[1-9]/ && $2>900' > FeBY2_2022.GC_REF.300.tsv