Closed moldach closed 4 years ago
Okay I figured out the problem. When subsetting a binary matrix there can be cases where there is 0 0 0
(I don't think this will ever happen for the full dataset - in my case). Context specific, this is areas where a variant was not recognized by any of the tools which I subset (although was found by at least one of the tools in the full matrix).
I've removed them like this:
> lt <- t %>% select(Delly:Manta, Pindel:Tardis)
> head(lt)
Delly GRIDSS Lumpy Manta Pindel Tardis
1 0 1 0 1 0 0
2 0 1 0 1 0 0
3 0 1 0 0 0 0
4 1 0 1 1 0 1
5 1 0 1 1 0 1
6 0 1 0 1 0 0
> lt <- lt[as.logical(rowSums(lt != 0)), ]
I'm getting confusing results from
ComplexHeatmap
for an UpSet plot - an extra category is showing up in the figure.I've used the
SURVIVOR
package to generate a binary data frame of consensus variant calls that looks like this:I've put it into a Gist here
Typically this binary data frame is then fed-into VennDiagram; however, this only works for up to 5 sets:
In the example given in the documentation there are 7 categories in a 3 set UpSet plot:
This image looks correct, for my data why is there an extra category in my figure?
To produce the image I did the following: