Skip to content
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

Ordering by intersection sizes and degree #185

Open
evesilk opened this issue Sep 18, 2023 · 1 comment
Open

Ordering by intersection sizes and degree #185

evesilk opened this issue Sep 18, 2023 · 1 comment
Labels
help-request User requested help with the package

Comments

@evesilk
Copy link

evesilk commented Sep 18, 2023

Objective
I am trying to order an upset plot both by intersection size (in decreasing order), and by degree (by increasing order) but am not finding a way forward with my code.

Code

upset(
  dat, dat2,
  sort_intersections_by = c('degree', 'cardinality'),
  sort_intersections = 'descending', 
   base_annotations=list('Intersection size'=intersection_size(counts=FALSE)))

However with this code, I get the following:

image

But what I am trying to get to is this (found online from a different data set).

Screenshot
Screenshot 2023-09-18 at 21 12 05

I'd be grateful for any advice on this.

ComplexUpset version: 1.3.5

@evesilk evesilk added the help-request User requested help with the package label Sep 18, 2023
@jenellewallace
Copy link

jenellewallace commented Jun 13, 2024

I have the same problem and am also unable to figure it out with ComplexUpset - let me know if anyone has a solution! I was able to do it with UpSetR:
UpSetR::upset(fromList(genes_sign_40), sets = celltypes, keep.order = TRUE, order.by = 'degree', group.by = 'degree', decreasing = FALSE, show.numbers = FALSE, nintersects = NA)
image
[cutting off labels since this is work in progress]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-request User requested help with the package
Projects
None yet
Development

No branches or pull requests

2 participants