SydneyBioX/scFeatures

scFeatures Wrapper Function Does Not Propagate Parameters to Individual Worker Functions

DarioS opened this issue · 2 comments

For example, not possible to specify num_top_gene to scFeatures and have it passed into run_gene_mean_celltype. Needs ...

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)?

That seems like a good approach, like extraParams list in ClassifyR.