Closed bschilder closed 2 years ago
Manually importing the cov file does indeed show that there are 10 genes duplicated across rows:
cov <- data.table::fread("/var/folders/zq/h7mtybc533b1qzkys_ttgpth0000gn/T//Rtmpp6c79a/file103501c90b350")
sum(duplicated(cov$entrez))
# [1] 10
~~This might be a bug introduced in one of the more recent versions of MAGMA. Might need to correct this by first checking a rewriting covar files. It seems the only way to report bugs in MAGMA is to email the authors.~~
The covar file is actually written by MAGMA.Celltyping
, meaning we can easily fix it!
create_gene_covar_file
Confirmed using the reprex above; removing duplicate genes from the covar file ensures everything runs smoothly.
1. Bug description
ERROR - reading gene covariate file: duplicate gene entry
Console output
Expected behaviour
Returns enrichment results.
2. Reproducible example
From the full_workflow vignette:
Code
3. Session info