Entering edit mode
                    7.5 years ago
        elisheva
        
    
        ▴
    
    120
    Hi everyone!
I have bed files of damage rates that I'd like to display graphically. 
For example, I have these 2 files where column number 8 is the normalized damage rate: 
File A:                               
chr1    1090351 1093351 1   0   -   11  0.00366667
chr1    1093351 1096351 1   0   +   15  0.005
chr1    1437425 1440425 1   0   -   8   0.00266667
chr1    1440425 1443425 1   0   +   13  0.00433333
chr1    1837483 1840483 1   0   -   13  0.00433333
chr1    1840483 1843483 1   0   +   11  0.00366667
File B:
chr1    1090351 1093351 1   0   -   13  0.00433333
chr1    1093351 1096351 1   0   +   16  0.00533333
chr1    1437425 1440425 1   0   -   19  0.00633333
chr1    1440425 1443425 1   0   +   7   0.00233333
chr1    1837483 1840483 1   0   -   13  0.00433333
chr1    1840483 1843483 1   0   +   15  0.005
I want to generate an average profile where x axis represents the genomic location and y axis the damage rate. 
I did something like this before with "seqPattern" library for dinucleotides frequencies. 
Like this profile: 
TSS profile
Does anyone have any suggestion for generating the kind of profile for the damage rates?
Hi,
Short answer to this question is deepTools. You can explore more example here from deeptools
This tool requires bigWig file.
How can I generate such file, if I have only the bed files? And how can I enter the damage level into it?
I tried to use bedGraphToBigWig command, But I get this error: "Overlapping regions in bedGraph line 17 of tmp_sorted.bedgraph" Although my 'tmp_sorted.bedgraph's line 17 doesn't overlap any regions: (line 17 is the line before the last line)
If you notice your file carefully, till line number 17 it covers continuous chromosomal positions. The chromosomal region from
8106290to8104835is missing in the file.bedGraphToBigWigcommand require continuous chromosomal regions, (which i guess from error you mentioned). You can fix your .bdg file using bedtools genomecov. Generate your .bdg file usingbedtools genomecovwith options-bga -split. Hopefully it will be fixed.