UpSetR icon indicating copy to clipboard operation
UpSetR copied to clipboard

Error in start_col:end_col : argument of length 0

Open alinavodK opened this issue 5 years ago • 11 comments

Hi, I am trying to use a dataframe in R to generated a plot from this example. But I got this error Error in start_col:end_col : argument of length 0 image

alinavodK avatar Jun 22 '20 17:06 alinavodK

FYI I just came across this issue and if you convert sym_comb to a data.frame, it should resolve it. It appears UpSetR does not handle tbl_df correctly.

aaron-horowitz avatar Jul 23 '20 15:07 aaron-horowitz

I am getting the similar error for my dataset.

It is in data.frame format and all the sets have integer values. I am not able to figure out why am I getting this error. The command I used is as follows:

upset(data, nsets = 9, empty.intersections=TRUE) Error in start_col:end_col : argument of length 0

Here is a snippet of my dataset:

image

s-yadav21 avatar Feb 17 '22 21:02 s-yadav21

i found the same problem. This problem is solved by ensuring that there are only 0 and 1 in the matrix

cp-echo avatar Apr 01 '22 08:04 cp-echo

Hello, I would like to use real values insted of presence/absence in the datasets. Is this possible with UpSetR v. 1.4.0? Best,

ARW-UBT avatar Aug 16 '23 15:08 ARW-UBT

Hello, I would like to use real values insted of presence/absence in the datasets. Is this possible with UpSetR v. 1.4.0? Best,

@ARW-UBT have you got an answer?

marwa38 avatar Sep 03 '23 02:09 marwa38

@marwa38 Not yet...

ARW-UBT avatar Sep 12 '23 12:09 ARW-UBT

I have solve the same question. I found that I forgot to write the code. After add the code "upset(fromList(all_term), order.by = "freq")" first, the Plots showing figure.

ZhangRuifen avatar Sep 26 '23 11:09 ZhangRuifen

I have solved the same question. I found that I forgot to write the code. After add the code "upset(fromList(all_term), order.by = "freq")" first, the Plots showing figure.

I did the same but forgot to update. Using a list is a solution as not all columns have the same number of cells/rows.

example below for the head of the table I imported using readxl image

marwa38 avatar Sep 26 '23 11:09 marwa38

I have solved the same question. I found that I forgot to write the code. After add the code "upset(fromList(all_term), order.by = "freq")" first, the Plots showing figure.

I did the same but forgot to update. Using a list is a solution as not all columns have the same number of cells/rows.

example below for the head of the table I imported using readxl image

Maybe you'd beetter to fill them with"0".

ZhangRuifen avatar Sep 26 '23 11:09 ZhangRuifen

I tried and the same resutls One thing that I could comprehend and made an issue (didn't get a response yet) is the number of Set Size is higher by one (197 instead of 196, as below attached in stimulus for example) than the actual number of cells in each column and thus I changed it in powerpoint (I presume that the head of the column is counted). image

marwa38 avatar Sep 26 '23 11:09 marwa38

hello! i m trying the code but still the same error : Error in start_col:end_col : argument of length 0 @ZhangRuifen can you write the code properly which remove this error!Ty!

SwatiSaha28 avatar Dec 02 '23 00:12 SwatiSaha28