Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A potential bug in prep_mappability.sh #6

Open
ysbioinfo opened this issue Sep 1, 2024 · 0 comments
Open

A potential bug in prep_mappability.sh #6

ysbioinfo opened this issue Sep 1, 2024 · 0 comments

Comments

@ysbioinfo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant