cellarium-ai / cellarium-ml

Distributed single-cell data analysis.
BSD 3-Clause "New" or "Revised" License
22 stars 3 forks source link

Make transforms adaptable to the input #225

Open ordabayevy opened 3 months ago

ordabayevy commented 3 months ago

Currently, transforms that rely on var_names_g (ZScore and DivideByScale) throw an error if input var_names_g doesn't match self.var_names_g. For example, if the Filter transform is used upstream then these transforms need to be instantiated with filtered __init__ arguments which makes it inconvenient to use. This issue proposes to make this transforms flexible and adapt to filtered or re-ordered inputs.

ordabayevy commented 2 months ago

Note: check for unique var_names_g.