Question: Help with intersect -BedTools, WindowBed
0
gravatar for kon.klaourakis
19 months ago by
kon.klaourakis0 wrote:

Hello,

I have uses WindowBed in order to find the overlapping peaks of two bed files. Although the output is the expected one, some peaks are written multiple times ( image) http://postimg.org/image/oriw1zm07/. Is there a way to eliminate this and only produce the original peaks of file A or B??

Thank you very much for your replies, Konstantinos Klaourakis

ADD COMMENTlink modified 19 months ago by Jennifer Hillman Jackson23k • written 19 months ago by kon.klaourakis0
3
gravatar for Jennifer Hillman Jackson
19 months ago by
United States
Jennifer Hillman Jackson23k wrote:

Hello,

The tool Text Manipulation > Unique occurrences of each record will perform a "sort -u" on the existing data. There is no provenance about which original input file donated each row. However, the tool Join, Subtract and Group > Compare two Datasets to find common or distinct rows could be used after to divide the result into two files (compare against the original files). From there you could Add column to an existing dataset for each then merge it all back together again with Concatenate.

There are other possibilities to sort or group the data (replace above or do additional manipulations after sorting uniquely). See these tool groups for options:

  • Text Manipulation
  • Datamash
  • Filter and Sort
  • Join, Subtract and Group

Hopefully this helps, Jen, Galaxy team

ADD COMMENTlink modified 19 months ago • written 19 months ago by Jennifer Hillman Jackson23k

You are the real MVP, thank you very much for your help!!

ADD REPLYlink written 19 months ago by kon.klaourakis0

Thank you! If you have time, please accept the answer (if/when it works out, it did with my small test dataset) so that others on this site can easily find the solution should they need to do the same manipulations. Do this by hovering over the left side of the reply and clicking on the checkmark.

ADD REPLYlink written 19 months ago by Jennifer Hillman Jackson23k
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 16.09
Traffic: 85 users visited in the last hour