immunomind / immunarch

🧬 Immunarch: an R Package for Fast and Painless Exploration of Single-cell and Bulk T-cell/Antibody Immune Repertoires
https://immunarch.com
Apache License 2.0
312 stars 65 forks source link

seq.default error when loading custom data #331

Open HyprValent opened 1 year ago

HyprValent commented 1 year ago

I understand this is an issue already addressed in a couple of other posted issues (#44 and #281), but both of them seem to be pointing towards downloading a different version of Immunarch as the solution. This solution is unfortunately not working for me and I'm stuck.

Basically, I'm trying to load some custom data using repDiversity and keep getting the same error: Error in seq.default(.step, n, .step) : invalid '(to - from)/by'

This happens regardless whether I run it with or without extrapolation:

imm_raref_noex <- repDiversity(immdata2$data, "raref", .verbose = F, .norm = F, .col='aa', .extrapolation=0)
imm_raref_ex <- repDiversity(immdata2$data, "raref", .verbose = F, .norm = F, .col='aa')

This doesn't happen with any other datasets that I have uploaded nor with the default dataset from the package. It might be an issue with my dataset as the repertoire I am uploading have <200 clones total. But I am not entirely sure.

I would greatly appreciate the assistance! Immunarch has been serving me so perfectly up until now and maybe I'm just missing something very simple. Thank you!