Open lisa-sousa opened 5 months ago
Additional improvement: parallelize the computation of oligo attributes for a database object.
Would be good to have a connection to the oligo database such that we don'z have to always instantiate the OligoAttributes class and then call it, e.g. maybe in the same way we get oligo attribute values, e.g. calculate_oligo_attributes(attribute_name, region_ids)? And then check if this oligo attribute can be computed. MAybe the same way as we do the sequence type checks?
I would have two classes here:
OligoAttributesCalculator
(with the private functions) andOligoDatabaseAttributes
which apply the functions to the database. The second one can have a common_apply_calculation(self, calc_function, **kwargs)
function which iterates over the oligos and assigns attributes (with dynamic checks). The functions can also be static there_Originally posted by @IsraMekki0 in https://github.com/HelmholtzAI-Consultants-Munich/oligo-designer-toolsuite/pull/51#discussion_r1555735735_