Entering edit mode
5.0 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
Could you rephrase your question please ? and define how Variable_A and _B are overlap ? and also what are the values in the dataframe ?
I think "PDD3 70-90" is already covered by "50-100", so it drops off.
Might be a job for GenomicRanges::reduce().