converting cram to ubam
1
0
Entering edit mode
14 months ago
joe_genome ▴ 40

How can I convert a cram to an unmapped bam file with samtools?

samtools view -b -T ref.fasta input.cram > output.bam

is this correct?

cram • 845 views
ADD COMMENT
1
Entering edit mode

I'm curious - why do you want to do this? Are you submitting reads from your on premises CRAM archive to something like GEO or SRA?

ADD REPLY
0
Entering edit mode

Correct this is what I'm doing

ADD REPLY
2
Entering edit mode
14 months ago
samtools collate -O -u input.cram | \
  samtools reset -O BAM -o out.bam
ADD COMMENT

Login before adding your answer.

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