Overlap two variable
0
1
Entering edit mode
4.4 years ago
skjobs ▴ 190

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
sequence assembly R • 730 views
ADD COMMENT
0
Entering edit mode

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 REPLY
1
Entering edit mode

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

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

ADD REPLY

Login before adding your answer.

Traffic: 2955 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6