Question: Are my .bam files ok?
0
gravatar for jomagrax
10 months ago by
jomagrax30
Spain
jomagrax30 wrote:

Hi everyone my name is Jos, this is my problem:

I have downloded some .bam files compressed in .rar, I decompressed them with both winrar and the command unrar obtaining this:

file control_1.bam control_1.bam: gzip compressed data, extra field

when I try to see the file this message comes up

head control_1.bam head: error writing 'standard output': Input/output error

What that means, thankyou in advance.

alignment • 316 views
ADD COMMENTlink modified 10 months ago by genomax92k • written 10 months ago by jomagrax30
1

BAM files are binary so you will not be able to see anything with head.

ADD REPLYlink written 10 months ago by genomax92k
1

Instead of head, try using dedicated tools such as samtools, seqkit or picardtools to read bam file.

ADD REPLYlink written 10 months ago by cpad011214k
1
gravatar for ATpoint
10 months ago by
ATpoint42k
Germany
ATpoint42k wrote:

Use samtools quickcheck to check file integrity. Details can be found in the samtools documentation.

head on bam makes no sense as it is binary, instead do samtools view your.file | head

Make yourself familiar with samtools as it is a key application to work with SAM/BAM format.

ADD COMMENTlink modified 10 months ago • written 10 months ago by ATpoint42k

Ok that worked thankyou very much!

ADD REPLYlink written 10 months ago by jomagrax30
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1556 users visited in the last hour