Closed neal-walton-suh closed 1 year ago
Hi Neal,
Thanks for your message. If you'd be willing to send snippets of your counts, sample.replicate.annotation and guide.annotation data, or a subset that replicates the error you see above, I'd definitely be able to help more comprehensively.
But aside from that, could I ask if your data has any missing values? gemini_prepare_input filters out replicates with all missing values. It looks like there's a discrepancy between the number of samples/replicates in your sample.replicate.annotation and your counts matrix resulting from filtering out NA values, but it's hard to tell without seeing the actual data.
Thanks, Sidharth
Hi Sidharth,
Of course. Here are snippets of the said data, respectively. None of the datasets have any NA
values but there are some duplicate replicates as seen in the sample.replicate.annotation
data frame; this was my other guess as to why the function may be outputting the error. The duplicate replicates columns in the counts matrix have different counts as you can see below for B16F10.RepA.
The only things that I do not have in the guide.annotation
data frame are the wells columns. Are those required?
Thanks, Neal
Hi Neal,
Aha! Yes, having duplicated column names isn't compatible with most "tidy" R programming practices. I would recommend changing the duplicated column names in the counts matrix (and the associated colname
column in the sample.replicate.annotation
) to something like B16F10.RepA.1
To your last point, no, the wells columns aren't required. That data was included in the Najm et al. 2018 supplemental data, so we also included it in our example dataset, but those columns aren't used by gemini.
Please let me know if this resolved your issue!
Best, Sidharth
Hi Sidharth,
Awesome, it worked! Thank you so much for your help, I appreciate it!
Best, Neal
Hello,
I am trying to use GEMINI's
gemini_create_input()
function with my owncounts
matrix,sample.replicate.annotation
data frame, andguide.annotation
data frame. My counts matrix is 9696 by 13, sample.replicate.annotation is 13 by 3, and guide.annotation 9696 by 7. The function goes through Merging sample annotations with colnames of counts.matrix... and Merging guide annotations with rownames()..., then it outputs this error with traceback:So far, I have only figured out that this error is occurring at the final step of
gemini_create_input()
where it uses the internal functiongemini_prepare_input()
. Could you help me with this error?Current using R version 4.2.0 (2022-04-22) and gemini_1.12.0.
Thank you, Neal