I have exon ranges, for example:
Chr_exon start - exon end
1_3774167-1_3774281
1_3775281-1_3775430
1_3782281-1_3782564
1_3784537-1_3784617
1_3786168-1_3786339
1_3789035-1_3789136
1_3800070-1_3800305
And also, I have, Coverage values for all positions,for example,
chr_position coverage value
1_3774167 175.6
1_3774168 175.6
1_3774169 175.6
1_3774170 175.6
1_3774171 175.6
1_3774172 175.6
1_3774173 175.6
1_3774174 175.6
Is it possible to aggregate them exon wise? For example, query by exon range (start-end), and find mean for all values in that exon/ range using unix functions or maybe python ? Thanks a lot in advance. I am a beginner, and sorry if question is stupid.
Since I am a bioinformatician from 90s, I would write a script in R that would do it for me! It could be 20 lines of code. But I am sure there are tools for that.
Thank you for your response. I am not that familiar with R, but will try to code it then in Python.