Use samtools to access bam file in aws s3 storage
0
1
Entering edit mode
8.2 years ago
xing ▴ 10

I have a private aws bucket with aws_access_key_id, aws_secret_access_key, and region

How set I set up samtools 1.3 to make it work on bam files on aws s3 storage?

I followed the instruction in Tool for random access to indexed BAM files in S3?

I can make the following command work

$ samtools view s3://1000genomes/phase1/data/NA12878/exome_alignment/NA12878.mapped.illumina.mosaik.CEU.exome.20110411.bam 20:1000-100000 # works

but I can not make samtools work on my private bucket.

Best,
Xing

samtools • 6.2k views
ADD COMMENT
0
Entering edit mode

According to the post you linked to, it should only work for public buckets. Thus, it makes sense that it doesn't work for your private bucket.

ADD REPLY
0
Entering edit mode

You need to create a credential file in your home directory. I forgot the file name. Ask samtools-help.

ADD REPLY
0
Entering edit mode

I am curious, the command you have pasted does not work for me in samtools 1.9 or on any other files which I know are valid links. Any idea why?

ADD REPLY

Login before adding your answer.

Traffic: 2341 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6