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

Unexpected return code of 0 while erroring #22

Open
wdecoster opened this issue Nov 13, 2023 · 4 comments
Open

Unexpected return code of 0 while erroring #22

wdecoster opened this issue Nov 13, 2023 · 4 comments

Comments

@wdecoster
Copy link

Hi,

I noticed superstr unexpectedly returned a returncode of 0, while it ran into an error. I was running this on a cram file, for which it seems I do not have the correct permissions to the reference files.

stderr contained:

[W::find_file_url] Failed to open reference "http://www.ebi.ac.uk/ena/cram/md5/2648ae1bacce4ec4b6cf337dcae37816": Destination address required
[E::fai_build3_core] Failed to open the file /research/bsi/archive/cram_references/GRCh38/GCA_000001405.15_GRCh38_no_alt_short_headers_nonACTG_to_N.fa
[E::refs_load_fai] Failed to open reference file '/research/bsi/archive/cram_references/GRCh38/GCA_000001405.15_GRCh38_no_alt_short_headers_nonACTG_to_N.fa'
[E::cram_get_ref] Failed to populate reference for id 0
[E::cram_decode_slice] Unable to fetch reference #0:9999-29187

[E::cram_next_slice] Failure to decode slice

stdout contained:

Successful run; processed 0 reads.

I have a different idea of 'successful' ;-) It makes me a bit worried about having to search for errors.

Best,
Wouter

@lfearnley
Copy link
Contributor

lfearnley commented Nov 13, 2023 via email

@wdecoster
Copy link
Author

We assumed you'd be processing data that you had permissions to, so I can see why this isn't a great message.

Oh yeah, fair assumption, but shit happens :)

I already contacted the sysadmin to look into the permissions, as building the ref cache locally led to an error where the reference I downloaded differed from the one that was used for generating the crams - a bit of a mess!

Wouter

@lfearnley
Copy link
Contributor

lfearnley commented Nov 13, 2023 via email

@wdecoster
Copy link
Author

Alright - I will let you know if I figure out more. But would there be any reason that processing 0 reads could be considered good? Maybe that on its own is enough to fail. I don't know if you can escalate the htslib error, or if it is a samtools call raise the (presumably non-zero) return code?

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