Hello,
I have a set of elements with the following distribution of lengths:
summary(width(positivelincrnas))
Min. 1st Qu. Median Mean 3rd Qu. Max.
470 4164 9872 18940 20790 152600
and another dataset with the following distribution:
summary(width(positivegeneshg19))
Min. 1st Qu. Median Mean 3rd Qu. Max.
20 5558 20460 59880 58360 4829000
I would like to get elements from the second dataset (genes) such that they are of the same length distribution as the first set of elements (lincrnas). Both objects are GRanges objects.
Any suggestions?
Thanks a lot,
Dimitris
See also https://support.bioconductor.org/p/74583/