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

error in rule bigwig #85

Closed
rrdavis77 opened this issue Apr 26, 2019 · 4 comments
Closed

error in rule bigwig #85

rrdavis77 opened this issue Apr 26, 2019 · 4 comments

Comments

@rrdavis77
Copy link

When running ARMOR on some data I get an error when it is trying to generate the bigwig files.
Error in rule bigwig: jobid: 51 output: Jin/output/STARbigwig/p63KO35_Aligned.sortedByCoord.out.bw log: Jin/output/logs/bigwig_p63KO35.log (check log file(s) for error message) conda-env: /home/ryan/ARMOR/.snakemake/conda/74957150 shell: echo 'bedtools version: ' > Jin/output/logs/bigwig_p63KO35.log; bedtools --version >> Jin/output/logs/bigwig_p63KO35.log; bedtools genomecov -split -ibam Jin/output/STAR/p63KO35/p63KO35_Aligned.sortedByCoord.out.bam -bg | sort -k1,1 -k2,2n > Jin/output/STARbigwig/p63KO35_Aligned.sortedByCoord.out.bedGraph; bedGraphToBigWig Jin/output/STARbigwig/p63KO35_Aligned.sortedByCoord.out.bedGraph /home/ryan/ARMOR/reference/human/STARIndex/Homo_sapiens.GRCh38.V30.STAR.idx/chrNameLength.txt Jin/output/STARbigwig/p63KO35_Aligned.sortedByCoord.out.bw; rm -f Jin/output/STARbigwig/p63KO35_Aligned.sortedByCoord.out.bedGraph

In the terminal i see:
Jin/output/STARbigwig/p63KO35_Aligned.sortedByCoord.out.bedGraph is not case-sensitive sorted at line 38881834. Please use "sort -k1,1 -k2,2n" with LC_COLLATE=C, or bedSort and try again.

when looking at that specific line, we see:

`sed -n '38881833,38881835p' p63KO35_Aligned.sortedByCoord.out.bedGraph

chrY 57215886 57215994 1

GL000008.2 83526 83545 1

GL000008.2 85565 85566 1
`
I am using the Genome sequence, primary assembly (GRCh38) from gencode.

Not sure how to proceed. Thanks!

@csoneson
Copy link
Owner

Not at a stable connection right now, but we do have sort -k1,1 -k2,2n in the bigwig rule, so it may be a problem with the LC_COLLATE=C part. Could you try to see whether adding LC_COLLATE=C just before sort here helps:

ARMOR/Snakefile

Line 471 in 3bfc403

"bedtools genomecov -split -ibam {input.bam} -bg | sort -k1,1 -k2,2n > "

@rrdavis77
Copy link
Author

I'll add it and let you know if that solves it.
Thanks

@rrdavis77
Copy link
Author

I changed the snake file line 471 by adding LC_COLLATE=C and it solved the issue.

"bedtools genomecov -split -ibam {input.bam} -bg | LC_COLLATE=C sort -k1,1 -k2,2n > "

@csoneson
Copy link
Owner

Great, thanks. We’ll fix that.

whtns pushed a commit to whtns/ARMOR that referenced this issue Nov 7, 2019
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

2 participants