Samtools merge Failed to open file BAMT error
1
1
Entering edit mode
3.9 years ago
mar77 ▴ 40

I have bam files that I have split into unmapped, uniquely mapped and multimapped bam files from HISAT2 alignment. I am trying to merge the sorted unmapped and uniquely mapped bam files with the command

samtools merge A1_merged.bam -b A1_unmapped.bam A1_unique.bam

and am getting an error

[E::hts_open_format] Failed to open file BAMT
samtools merge: fail to open "BAMT": No such file or directory

the square actually has a question mark in it but that didn't copy across. Anyone have any ideas on why this error is coming up and how to fix it?

RNA-Seq samtools merge • 2.9k views
ADD COMMENT
2
Entering edit mode
3.9 years ago
ATpoint 81k
  -b FILE    List of input BAM filenames, one per line [null]

-b would be necessary if the file names were in a separate text file.

It is simply

samtools merge A1_merged.bam A1_unmapped.bam A1_unique.bam
ADD COMMENT

Login before adding your answer.

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