error from samtools view -h
1
0
Entering edit mode
8.6 years ago
jolin0701-dy ▴ 100

I'd like to convert bam to sam file by samtools and got an error.

$ samtools view –h CZ1_001.dedup.bam > CZ1_001_dedup.sam

[E::hts_open_format] fail to open file '–h'

samtools view: failed to open "–h" for reading: No such file or directory

Any ideas?

Thanks a lot~~

RNA-Seq • 3.2k views
ADD COMMENT
2
Entering edit mode
8.6 years ago

You have a emdash instead of dash in there - are you copying and pasting this from a word processor or webpage? Observe the difference between:

samtools view –h
samtools view -h

(the first has a longer - line)

ADD COMMENT
0
Entering edit mode

YEs, you're right~~ Thanks..

ADD REPLY

Login before adding your answer.

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