ding-lab / BICSEQ2

BICSEQ2 pipeline for processing CPTAC3 somatic WGS CNA
GNU General Public License v3.0
16 stars 5 forks source link

A potential bug in prep_mappability.sh #6

Open ysbioinfo opened 2 months ago

ysbioinfo commented 2 months ago

Hi, Thanks for building such a useful one-stop pipeline. I found a small bug in the prep_mappability.sh script, line 196: CMD="grep $CHR $OUTD/$MER.bedGraph | awk '\$4==1 {print \$2,\$3}' > $OUTFN" When the loop goes to chr1, this line will grep not only chr1, but also chr10-chr19. Same for chr2. It will lead to malformated mappability files. I suggest change the code to: CMD="grep '$CHR\b' $OUTD/$MER.bedGraph | awk '\$4==1 {print \$2,\$3}' > $OUTFN" which can make it match exactly chr1.

Best Yang