Question: how to convert nucleotide strand from BioMart (1, -1) to strands compatible to Galaxy (+, -)
gravatar for mtjmar002
2.9 years ago by
mtjmar0020 wrote:

I cannot figure out how to convert strands coordinates downloaded from BioMart (-1, 1) to strands coordinates compatible with Galaxy (-, +) in the c4 column of a BED file. There is a paper saying to compute the expression:

c4==1 and "-" or (c4==1 and "+" or "")

I've tried this and other small variations of this expression but none seems to work.

Can anyone help me pease? It should be the same as in Python...

ADD COMMENTlink modified 2.9 years ago by Jennifer Hillman Jackson24k • written 2.9 years ago by mtjmar0020
gravatar for Jennifer Hillman Jackson
2.9 years ago by
United States
Jennifer Hillman Jackson24k wrote:



This can be done in two steps:

  1. Using the tool "Compute an expression on every row", use the term:
  2. From here, in interval format (the dataset you describe is not really BED format. BED format has strand in the 6th column), one can reassign strand as the 5th column and use the dataset from there with many tools without issue.
  3. Or, using the tool "Cut", pull out just the columns for a 'clean' final interval dataset:
  4. (Optional) History menu (gear icon): Extract workflow! Edit/label as desired. 

Improved solution via Dan Blankenburg, Galaxy team

Best, Jen, Galaxy team

ADD COMMENTlink modified 2.9 years ago • written 2.9 years ago by Jennifer Hillman Jackson24k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 149 users visited in the last hour