ImmunoSEQ v4b geneUsageAnalysis Error
🐛 Bug
Good Afternoon,
I received the following error while using your gene usage function.
> imm_gu_cor = geneUsageAnalysis(imm_gu, .method = "cor", .verbose = F)
Error: Assigned data `.laplace` must be compatible with existing data.
i Error occurred for column `Names`.
x Can't convert <double> to <character>.
Run `rlang::last_error()` to see where the error occurred.
It looks like "/" in the variable gene "Names" column trips everything up.
"TRBV12-3/12-4 "
I replaced "/" with "-" and the error was resolved.
Hi @tdfy
Thank you, we will fix that! And I hope we will be able to rewrite the geneUsageAnalysis function completely soon...
I am having the same problem. Have you fixed this? Thank you.
Hi there,
You may use the other software (not mixcr) to generate the CDR3s. First, it is a probabilistic inference, so we get the best two or more segments. I use command like to split the segment and choose the first one, since the first one get the highest score. If you did not use mixcr. I can share you some command lines to split. as bellow. if your separator is "/", please change "," to "/", if you wanna get the second one, please change "1" to "2", and so on. execute the command in R, and use your "repLoaded" data. not in linux for(i in names(imm.data$data)){ imm.data$data[[i]]$V.name <- strsplit(imm.data$data[[i]]$V.name, ",") imm.data$data[[i]]$V.name <- sapply(imm.data$data[[i]]$V.name, "[", 1) } it may take some time long.
Cheers
Decen
Thank you. I will try this.
Closing this issue for now. The next version of Immunarch will most likely check the correctness of columns. More details on the next version of Immunarch are here: https://b-t.cr/t/immunarch-will-significantly-evolve-but-it-will-break-things-and-we-need-your-help/1123