Question: extract the number of reads around TSS
0
gravatar for Ben
11 months ago by
Ben50
Ben50 wrote:

I have coded oen python script to extract the amount of reads around TSS from ChIP-seq sam file, but the speed is too slow. Does anyone have any suggestions to solve this question? Thanks in advance!

chip-seq • 600 views
ADD COMMENTlink modified 11 months ago by Alex Reynolds24k • written 11 months ago by Ben50
2
gravatar for Alex Reynolds
11 months ago by
Alex Reynolds24k
Seattle, WA USA
Alex Reynolds24k wrote:

Via BEDOPS:

$ bedmap --echo --count TSSs.bed <(sam2bed < reads.sam) > answer.bed

If you want to pad the TSSs, say by 1k bases on both sides, add the --range N option:

$ bedmap --echo --count --range 1000 TSSs.bed <(sam2bed < reads.sam) > answer.bed

This will likely increase the number of overlaps between reads and (padded) TSSs.

ADD COMMENTlink modified 11 months ago • written 11 months ago by Alex Reynolds24k
1
gravatar for h.mon
11 months ago by
h.mon16k
Brazil
h.mon16k wrote:

bam-readcount.

ADD COMMENTlink written 11 months ago by h.mon16k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2085 users visited in the last hour