Comparing bed files for shifts and enlargements
I was wondering how I can analyze the changes in two different bed files such as:
- Shifts (if start-end shifted from, for example, 10-20 to 15-25
- Enlargements (if start-end shifted from, for example, 10-20 to 5-25) 2.a and in which direction (did it enlarge both directions or only single)
- Shrinkage (if start-end shifted from, for example, 10-20 to 12-18)
Any help would be very appreciated. Thank you so much!
• 1,505 views
•
link
1 answer
If you're aiming to visualize differences, you could throw datasets into a HiGlass viewer and lock two tracks (one "control", the other "treatment"). Then browse your regions of interest.
Otherwise, you could pipe bedmap to awk to measure offsets, percentage or fold differences between elements between tracks. Spit the values out to to a text file and then feed that into R to summarize and visualize statistics.
• 0 views
•
link
Log in to answer this question.
id assume you want to visualize them?
Do you want to compare the first entry of the first file with the first entry in the second file, the second with the second, and so on?
I want to compare all the entries to each other (more like a double for loop)