Are my .bam files ok?
1
0
Entering edit mode
4.9 years ago
jomagrax ▴ 40

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 • 2.8k views
ADD COMMENT
1
Entering edit mode

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

ADD REPLY
1
Entering edit mode

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

ADD REPLY
1
Entering edit mode
4.9 years ago
ATpoint 85k

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 COMMENT
0
Entering edit mode

Ok that worked thankyou very much!

ADD REPLY

Login before adding your answer.

Traffic: 2590 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