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

Remove stat #131

Closed
wants to merge 3 commits into from
Closed

Remove stat #131

wants to merge 3 commits into from

Conversation

cmdcolin
Copy link
Contributor

This removes checks for "file out of bounds" to cram-js

While the code is a bit "safer" perhaps with these checks, they require that "stat" works which requires specialized CORS headers to be set. Access to files for example https://ftp.1000genomes.ebi.ac.uk/vol1/ftp/data_collections/HGDP/data/Sindhi/HGDP00171/alignment/HGDP00171.alt_bwamem_GRCh38DH.20181023.Sindhi.cram work with this PR enabled, but not without this PR

Draft PR because tests may be non-passing, but tested in the genome browser

@cmdcolin
Copy link
Contributor Author

an alternative is making these checks "optional" so they are applied if the stat result is available so you get some partial safety from this

@cmdcolin cmdcolin force-pushed the remove_stat branch 2 times, most recently from 464e899 to 2ce6ccf Compare November 7, 2024 15:41
@cmdcolin
Copy link
Contributor Author

cmdcolin commented Nov 7, 2024

Revisited this PR to fetch files from external buckets we don't necessarily have control of e.g. this file https://ont-open-data.s3.amazonaws.com/colo829_2024.03/wf_somatic_variation/sup/COLO829_tumor.ht.cram which is from the ONT bucket. the bucket has CORS enabled, but not CORS for Content-Range header access. this makes it fail when trying to get the stat() for "file length"

This PR removes the file length checks

it passes all tests except 1 currently

Misc

Misc
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

Successfully merging this pull request may close these issues.

1 participant