michaelschaub / calcium-imaging-analysis

3 stars 1 forks source link

Feature type handler for loading #89

Closed DaminK closed 1 year ago

DaminK commented 2 years ago

Function that returns type of feature instead of:

feature = snakemake.wildcards["feature"]
feature_dict = { "mean" : Means, "raw" : Raws, "covariance" : Covariances, "autocovariance" : AutoCovariances, "moup" :Moup,"autocorrelation" : AutoCorrelations } 
feature_class = feature_dict[snakemake.wildcards["feature"].split("_")[0]] 

maybe additionally handles loading and returns loaded DecompData object