openproblems-bio / openproblems-v2

Formalizing and benchmarking open problems in single-cell genomics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to share code across components within a task

scottgigante-immunai opened this issue · comments

scvi_scarches_xgboost and xgboost aren't variants of the same method, but they do share a good chunk of code. In v1 we only have to implement this once. Is there a way to share code across distinct components in v2?

I'm not a big fan of sharing code between individual components across tasks, to not have any interdependencies between tasks.

However it's definitely possible to store helper functions in separate resource files as shown here and include these in multiple components.