Intersect between bedGraph and bed file
0
0
Entering edit mode
22 days ago
daffodil ▴ 10

Hi , I have sorted BAM files and would like to generate a bedGraph file that includes normalized counts of reads. I used Bedtools for this purpose. Then, I wanted to extract read counts based on a BED file of TSS regions. However, the intervals in the bedGraph file differ from the intervals in the TSS file. I used the -d option in Bedtools to measure the counts at each position and then intersect between bedGraph and bed file. Is this approach correct? bedtools genomecov -ibam "${sorted_bam}" -d -scale "${scale_factor}" > "${output_dir}/${sample}.scaled_combined_strands.bedGraph"

count bedtools bedGraph Matrix • 133 views
ADD COMMENT

Login before adding your answer.

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