-
Notifications
You must be signed in to change notification settings - Fork 10
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
Trouble with IMC spillover R script` #1
Comments
Hi! The issue underlying this is that CATALYST changed quite a bit since this repository was created. This broke a lot of functionality and is causing the error you are seeing. I now added a branch with instructions how to install an R environment with an old CATALYST version: Pull request: #2 Installing the Conda environment should allow you to use this scripts - could you give this a try? Best, Vito |
Ah! That helped progress past line 125, but I am now getting a different error at line 148:
|
Hi! Unfortunately these need to be manually added to the CATALYST isotope list as they are otherwise not supported :/ I guess this could be also fixed via running this at the Beginning of the script
(Not entirely sure, let me know if that worked). |
Yes, the .csv files are the spillover matrix. The question is usually rather what channels were selected during acquisitions and are in the files. Could well be that instead of Eu153 you acquired BCKG=153 or something like this :/ |
Thank you for all your help in this, I really appreciate it. I crossreferenced these with CATALYST::isotope_list and the only one that was missing was BCKG190Di so I added that to isotope_list as you suggested: `isotope_list <- c(CATALYST::isotope_list, list(BCKG=190)) for (i in seq_along(sms)){ However, I still get the same error message as above - supplied spillover matrix seems to be invalid. all isotopes should appear in isotope_list |
Solved this with the line p = CATALYST::plotSpillmat(ss_ms,sms[[i]], isotope_list = isotope_list) I'm now attempting to apply this spillover matrix to my images using the imc_comp_txt_example script, and I'm having the same issue at Error in check_sm(input_sm, isotope_list) : The supplied spillover matrix seems to be invalid. All isotopes should appear in |
Trying to track down this issue, when I run If I run I confirmed that all the metal_names from my |
Hi, Somehow the 'isotope_list` argument is only accepted in the compCytof function if sm is a matrix (as opposed to e.g. a data.frame). I updated the example code in the |
That worked for me! Thank you! |
Hey, I, too, ran into the same issue due to differences in CATALYST version: I tried to install the conda environment from the
Any idea what could be causing this? Thanks, |
Hi, I'm also experiencing the same problem `ResolvePackageNotFound:
I would really appreciate your help on this, as I would love to try out your IMC spillover script! |
Hi @laufre and @saisomesh2594 https://bodenmillergroup.github.io/IMCDataAnalysis/spillover-correction.html @HelenaLC and @votti are you fine with me porting the scripts to the new repo where they are continuously checked? |
I've collected IMC images of dotted metal conjugated antibodies and am attempting to use the imc_generatespillmat_long.Rmd script to calculate spillover between channels but am having trouble getting it to run. I am able to load all the packages and data and run the script up to line 125, but when calculating the CATALYST based compensation I get the following error.
Error in CATALYST::assignPrelim(x = ff, y = ss_ms) : unused argument (y = ss_ms) 4. re_from_dat(x, ss_ms = x[!is.na(mass), unique(mass)], minevents = 40, correct_bc = T) 3. FUN(X[[i]], ...) 2. lapply(dats_agg, function(x) re_from_dat(x, ss_ms = x[!is.na(mass), unique(mass)], minevents = 40, correct_bc = T)) 1. lapply(dats_agg, function(x) re_from_dat(x, ss_ms = x[!is.na(mass), unique(mass)], minevents = 40, correct_bc = T))
The text was updated successfully, but these errors were encountered: