Open Vincent-Maladiere opened 1 year ago
Currently, adding concept sets is quite hacky:
from eds_scikit.biology import ConceptsSet protein_blood = ConceptsSet("Protein_Blood_Quantitative") protein_urine = ConceptsSet("Protein_Urine_Quantitative") protein = ConceptsSet( name="Protein_Quantitative", concept_codes=protein_blood.concept_codes + protein_urine.concept_codes, )
It would be handier to have the following:
protein = protein_blood + protein_urine
The concept_name could be generic like "addition_1" since it doesn't seem to be used except in the bioclean table.
concept_name
"addition_1"
bioclean
We would need to add to ConceptSet:
ConceptSet
__add__
__sub__
__eq__
Yep good idea !
Description
Currently, adding concept sets is quite hacky:
It would be handier to have the following:
The
concept_name
could be generic like"addition_1"
since it doesn't seem to be used except in thebioclean
table.We would need to add to
ConceptSet
:__add__
__sub__
__eq__