Trying to evaluate values in columns 1 and 2. If value in column 2 is larger than value in column 1 then column 3 should be +. else if value is larger in column 1 it should be -.
Then a second round where values in column 1 and 2 are swapped if column 3 is -.
Dont understand the syntax in the custom table operation. Need some help.
Anyone have some tips on how to do this?
The tutorial below covers a bunch of data manipulation examples. Some include the Datamash tool plus other tool are covered. Often, similar manipulations can be done with different tools, so use these examples as a starting place.
Your query will probably use more than one tool β or the same tool a few times β but those could be grouped into a workflow for reuse. And, if you βbookmarkβ that workflow on your Workflow listing, it will show up in your tool panel view.
If the same value is present in c1 and c2, the output gets β-β
If you are after intervals in BED format, make sure the start coordinate uses zero offset, and the is one based.