-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected (wrong?) results in terms of total length for the intersection of two sets #34
Comments
Hello again, I have extended this exercise to three sets and I am running into the same issue. The results of Why is this the case? Here is my code:
This is the result:
Here, again, I would expect the total length of regions in Plotting the 3 BED files as a Venn diagram with the R package |
@amizeranschi can you tell me what are you using as a back-end for Can you try |
@amizeranschi And also you can set either regions of A or B to output in the intervene by providing |
@asntech I think The reason I used I have also computed this manually with Note: the
I believe the BED intersection operation that you originally had in mind with |
Update: it looks like the
So, it looks like implementing a way to set |
Update2: After looking at it in more depth, things were a bit more complicated than I initially expected. However, I've managed to manually compute Intervene's UpSet diagram elements for my use case with I'd be grateful if you could add support for automating this use case in I'm including my updated code for 3 BED files below, in the hope that it will be helpful. In a nutshell, the
This yields:
|
Also, regarding:
I reran
So it looks like it is indeed using |
Hello,
I've been testing
Intervene
on two of the sample tests. I've generated an UpSet plot and saved the corresponding BED files for the intersection and set differences and then computed the total length of the features from each of the files.I would expect that the summed total lengths would equal that of the initial files, but this is not the case. Any assistance in clarifying this issue would be much appreciated, as I was planning on using Intervene on a larger number of files.
I've also manually computed the intersection and set differences using
bedops
and, this time, the summed total lengths were as I'd expect. Finally, I've plotted a Venn diagram of the intersections using the R packagebedr
and its results match those obtained withbedops
. I'm including the diagram below.Below is a minimal reproducible example for what I did:
These are the results I got:
Here, I would expect that the total length of e.g.
H3K27me3.bed
would be equal to the summed total lengths of10_H3K27me3.bed
and11_H3K27me3_H3K4me1.bed
, but this wasn't the case. However, the results produced withbedops
did match this expectation.I have used the following R code to produce a Venn diagram using the R package
bedr
:Below is the resulting Venn diagram. The total bp length values are identical to those computed above by
bedops
.The text was updated successfully, but these errors were encountered: