Hello,
I am trying to load a bam file and its index into IGV from my AWS S3 bucket. I am using presigned URLs for this purpose, which allows to open the file remotelly with a temporary link, without providing my bucket credentials.
With my test files these works fine, both bam and bai files are loaded correctly and I can navigate them with almost no delay.
The problem comes when I incorporate this into my app. Files are stored in S3 using a key instead of the file name to avoid colisions. The extension therefore is not present in the file name. When I try to load these files from the URL IGV prompts a message stating "Unknown file type: Please check file extension". Both files are indeed bam and bai but it seems IGV is not able to recognize it unless the file extension is correct.
I have already tried modifying the attachment name in the 'Content-Disposition' header of the Response but it hasn't worked either, apparently what defines the extension is the file name in the URL.
Is there any way to set IGV to ignore file extensions? I don't think is possible to change the file name in the url as I must match the object key in the S3 bucket and including the file extension in all file will be very time consuming.
Thanks in advance
Running:
Ubuntu 18.04 LTS
IGV 2.4.16