I have access to some indexed BAM files in S3. Using the AWS CLI, it is fairly easy to download the entire BAM file. That was fine for our initial analysis, but for validation, we are interested in looking a small region of ~10kb in thousands of individuals.
The BAM files are indexed and S3 supports GET requests with range headers so this should be possible. Does anyone know of a tool that does this?
EDIT: htslib 1.3 was recently released and supports random access to BAM files in s3.
I have a private aws bucket with
aws_access_key_id
,aws_secret_access_key
, andregion
How set I set up samtools 1.3 to make it work on bam files on aws s3 storage?
follow the instruction above I can make the following command work
but I can not make samtools work on my private bucket.
Any suggestion?
See: C: Using samtools to view an indexed file in a private S3 bucket