CRAM file version
1
0
Entering edit mode
11 months ago
emma.a ▴ 130

Hi,

I received a cram file and using samtools I was looking to find the cram file version in the header.

samtools view -H <myfile.cram>

What I found is

@HD     VN:1.4  SO:coordinate

but this seems more for a BAM version?

How can I know the cram version of the file?

Thanks!

cram • 1.0k views
ADD COMMENT
2
Entering edit mode
11 months ago
$ file toy.cram
toy.cram: CRAM version 3.0

but unless I'm wrong the CRAM version == BAM version.

ADD COMMENT
0
Entering edit mode

I think is correct your code, I take as output v3.0 which is much more normal than 1.4. Thanks a lot!

ADD REPLY
0
Entering edit mode

A small educational note: if an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one answer if they all work. If an answer was not really helpful or did not work, provide detailed feedback so others know not to use that answer.

upvote_bookmark_accept

ADD REPLY
0
Entering edit mode

Pierre, this person has not responded to their previous posts. Can you have your script/bot do its thing please?

ADD REPLY
0
Entering edit mode

not sure what is your personal problem with me. I upvoted the answer yesterday before your message and cosnidering that both Pierre and I are not sure for the answer (but unless I'm wrong the CRAM version == BAM version) I left open the post for some more time to see if someone else confirm.

ADD REPLY
0
Entering edit mode

Have you responded to all your previous posts? I do not have a personal problem with you, I have a problem with your misuse (at least in my opinion) of the forum

ADD REPLY

Login before adding your answer.

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