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

possible bug? #252

Open
marwa38 opened this issue Sep 9, 2023 · 1 comment
Open

possible bug? #252

marwa38 opened this issue Sep 9, 2023 · 1 comment

Comments

@marwa38
Copy link

marwa38 commented Sep 9, 2023

Hi team
I think something weird is happening.
I have checked my input Excel file (attached) to find the total is different for some variables.

Check for example stimulus.up and stimulus.down (same for all others) in both the figure and table, one number higher in the figure than the Excel for each.
degs_matrix_human.xlsx
image
Is that a bug?

Side note, can't show the set size of the first from the down element, decreasing the size of the text is not working.
image

my codes

degs_matrix <- read_excel("degs_matrix_human.xlsx")
degs_matrix <- degs_matrix[1:6]
gene.list <- as.list(degs_matrix)
tiff("UpSet_woPyloric.tiff", width = 13, height = 7, units = "in", res = 600)  # Open the TIFF device
upset(fromList(gene.list), order.by = "freq", nsets = 6, nintersects = NA, text.scale = 2.8,
      set_size.show = T, set_size.numbers_size = 6)
dev.off()

Thanks in advance

@Ax3man
Copy link

Ax3man commented Oct 10, 2023

NAs are being included in the count. If you use lapply(gene.list, na.omit) your set sizes shrink by one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants