Closed cariaso closed 10 months ago
I am not really sure what is happening here. There error message is one produced when the file format is not recognised as one it can index (cram, bam or compressed sam).
My own tests with the latest code worked as expected.
What happens when you do:
samtools view s3://mybucket/mypath/NA12878.cram
I can no longer reproduce the test case. User error. My apologies.
Are you using the latest version of samtools and HTSlib? If not, please specify.
(run
samtools --version
)However I've also confirmed that this does work fine when run under other environments such as
Please describe your environment.
uname -sr
on Linux/Mac OS orwmic os get Caption, Version
on Windows)uname -m
on Linux/Mac OS orwmic os get OSArchitecture
on Windows)gcc --version
orclang --version
)Failure env: Linux 6.1.59-84.139.amzn2023.aarch64 aarch64 gcc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2)
build steps
Please specify the steps taken to generate the issue, the command you are running and the relevant output.
samtools index 's3://mybucket/mypath/NA12878.cram' -o foo samtools index: "s3://mybucket/mypath/NA12878.cram" is in a format that cannot be usefully indexed
although the same file at an https or local url works fine. samtools index 'https://gatk-test-data.s3.amazonaws.com/wgs_cram/NA12878_20k_hg38/NA12878.cram' -o foo
aws s3 cp s3://mybucket/mypath/NA12878.cram . samtools index NA12878.cram -o foo