Samtools Rmdup, file output empty
1
0
Entering edit mode
8.9 years ago
mmukhame321 ▴ 60

Hello,

I am trying to output a file that removed PCR duplicates by using rmdup command. My file is single-ends.

I put this into my terminal: samtools rdup [-s] input_path_file_directory > output_path_file_and_file_name.bam

It makes the file, the only thing is that the file is empty. Any ideas why?

Thanks

PCR next-gen samtools NGS • 3.5k views
ADD COMMENT
1
Entering edit mode

Are you using this command?

samtools rmdup -s input.bam output.bam

You don't need '>' symbol to get the output bam.

ADD REPLY
0
Entering edit mode

> explains empty output.

ADD REPLY
1
Entering edit mode

Exactly :-)

ADD REPLY
0
Entering edit mode

Thank you! I overlooked that, and got the results I needed!

ADD REPLY
0
Entering edit mode
8.9 years ago
samtools rmdup -s input.bam out.bam

input.bam must be sorted (samtools sort).

ADD COMMENT

Login before adding your answer.

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