scFeatures Wrapper Function Does Not Propagate Parameters to Individual Worker Functions
DarioS opened this issue · 2 comments
DarioS commented
For example, not possible to specify num_top_gene
to scFeatures
and have it passed into run_gene_mean_celltype
. Needs ...
nick-robo commented
This is not trivial, since different downstream functions have different additional arguments. It would likely have to be a nested named list based on the feature types requested.
Something like this:
additionalArgs <- list("proportion_raw" = list(logit = FALSE))
scFeatures(data,
celltype = celltype, sample = sample, type = "scrna",
feature_types = "proportion_raw", additionalArgs = additionalArgs
)
Do you know of a better approach (@DarioS)?
DarioS commented
That seems like a good approach, like extraParams
list in ClassifyR.