Question: Overlap two variable
1
gravatar for skjobs0123
6 weeks ago by
skjobs012360
skjobs012360 wrote:

I have two variable (A) and (B). I want to cover the maximum alignment overlap using both variables (A) and (B) which is nearly 100. This is my input is like that

ID       Variable_A    Variable_B
PDD1         9             42
PDD2         34            60
PDD3         70            90
PDD4         50            100

So, I want to cover the maximum number range in this variables. My desire output like this

PDD1
PDD2
PDB4
R sequence assembly • 137 views
ADD COMMENTlink modified 6 weeks ago • written 6 weeks ago by skjobs012360

Could you rephrase your question please ? and define how Variable_A and _B are overlap ? and also what are the values in the dataframe ?

ADD REPLYlink written 6 weeks ago by Nicolas Rosewick8.6k
1

I think "PDD3 70-90" is already covered by "50-100", so it drops off.

Might be a job for GenomicRanges::reduce().

ADD REPLYlink written 6 weeks ago by zx87548.9k
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 2.3.0
Traffic: 2075 users visited in the last hour