-
Notifications
You must be signed in to change notification settings - Fork 165
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
Salmon output invalid JSON #279
Comments
Hi @kurtwheeler, Thanks for the detailed bug report. What seems to be going on here is that none of the reads are mapping concordantly, so that we have a paired-end input library where all of the mappable reads are mapping as orphans. This is messing up the computation of the ratio. Definitely, we should not be outputting |
Ok, more interesting information. I just pushed a fix for this that will put 0 instead of NAN and output a warning. But I ran this sample with |
Related request, if you're fixing up the JSON formatting, it'd be nice if
was replaced with
|
Both the originally-reported issue (form @kurtwheeler) and the request by @Miserlou are now implemented in develop, and so will be available in the next release, so I'm going to close this issue for now. |
Wow, thanks for the super quick turnaround @rob-p! This is awesome. |
Is the bug primarily related to salmon (bulk mode) or alevin (single-cell mode)?
No.
Describe the bug
I ran
salmon quant
and thelib_format_counts.json
file that was produced contained aNaN
value which is not valid JSON.To Reproduce
Steps and data to reproduce the behavior:
Specifically, please provide at least the following information:
0.9.1
From our dockerfile:
One we prepared. We got the raw transcriptome from ensembl, then prepared it with:
https://github.com/AlexsLemonade/refinebio/blob/dev/workers/data_refinery_workers/processors/transcriptome_index.py
Which produced:
https://s3.amazonaws.com/data-refinery-test-assets/Caenorhabditis_elegans_short_1527089586.tar.gz
Two read files out of:
https://s3.amazonaws.com/data-refinery-test-assets/salmon_tests.tar.gz
found within that archive at:
test_experiment/raw/reads_1.fastq
and
test_experiment/raw/reads_2.fastq
Unfortunately I am not entirely sure where these were found.
The exact invocation of salmon was:
Expected behavior
This happened while I was modifying the tests for running salmon. I'm guessing that my code isn't quite right yet so something going wrong isn't quite unexpected. However I would have expected an error to come out of Salmon rather than producing JSON which is invalid.
Desktop (please complete the following information):
Our exact environment for running this is described here:
https://github.com/AlexsLemonade/refinebio/blob/dev/workers/dockerfiles/Dockerfile.salmon
The base image is
ubuntu:16.04
Additional context
Here is the contents of
lib_format_counts.json
file (github won't let me upload it):The text was updated successfully, but these errors were encountered: