KlugerLab / ALRA

Imputation method for scRNA-seq based on low-rank approximation
MIT License
73 stars 19 forks source link

Update alra.R #28

Open Biomiha opened 11 months ago

Biomiha commented 11 months ago

Hi @linqiaozhi

The alra.low.memory function has a line checking whether the input A_norm is of class matrix but the output of class(A_norm) is actually a vector with multiple elements e.g. ("matrix" and "array") and therefore this check throws an error. By changing the if statement to if "matrix" is found in class(A_norm) any other classes are ignored. Hope this makes sense.

Thanks, Miha