我有一个来自一系列患者的基因组区域范围的列表。
> head(dotoo)
GRanges with 6 ranges and 3 metadata columns:
seqnames ranges strand | Id CN Histology
<Rle> <IRanges> <Rle> | <factor> <factor> <factor>
[1] 3 [167946693, 168005541] * | 9 3 MD
[2] 3 [189907623, 189954633] * | 9 3 MD
[3] 6 [132274121, 132384438] * | 9 3 MD
[4] 11 [ 67685096, 70138399] * | 9 4 MD
[5] 12 [ 53859037, 53927595] * | 9 3 MD
[6] 15 [ 19830049, 20089383] * | 9 1 MD
当我使用
autoplot(dotoo, aes(fill=as.factor(Id), color=as.factor(Id)))
我看到许多重叠区域,见图
如何找出至少 3 名患者之间哪些区域重叠并共享CN
?
基本上,如果您查看图片,我如何找到“堆叠”的区域,以及仅共享的部分?有办法吗?