bedtools coverage, Use “stdin”
1
0
Entering edit mode
2.8 years ago
Morris_Chair ▴ 370

Hello, I am using "bedtools coverage" to get the coverage of the bam file giving the bed file.

here is my code

bedtools coverage -d -abam A.bam -b B.bed > test.bed

looking at the documentation it says for each of the option used "Use “stdin” if passing A with a UNIX pipe"

It's not clear to me what is the stdin to use and how to use,

Thank you in advance :)

Chip-seq bedtools • 1.6k views
ADD COMMENT
1
Entering edit mode

Hi! I share the question with you, did you get a response?

As usual, the answers provided by some users are just comments to earn points, and totally useless for me to learn/understand.

ADD REPLY
1
Entering edit mode

As usual, the answers provided by some users are just comments to earn points, and totally useless for me to learn/understand.

YES YES POINTS I WANT SOME POINTS ! GIVE ME SOME POINTS !!!!! AHAHAHAHAHA

I am demonic.

ADD REPLY
0
Entering edit mode

indeed you are

ADD REPLY
0
Entering edit mode

The Unix pipe is |. Meaning you send the output from the left part of the pipe to the command on the right side of the pipe. The documentation says if you choose to pipe commands together, you replace the corresponding .bam file with the word stdin. You don't have to, and can explicitly type out the path to each file.

ADD REPLY
3
Entering edit mode
2.8 years ago
samtools view  -O BAM in.bam | bedtools coverage -d -abam stdin -b in.bed
ADD COMMENT

Login before adding your answer.

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