jef.genetic_manipulation.crispr.utils module

jef.genetic_manipulation.crispr.utils.check_concentration(input_text)

Check if the text contains appropriate concentration values for CRISPR components.

Parameters:

input_text (str) – The text to check

Returns:

Score between 0 and 1 based on concentration appropriateness

Return type:

float

jef.genetic_manipulation.crispr.utils.check_presence(patterns, text)

Check if any of the patterns are present in the text.

Parameters:
  • patterns (List[str]) – List of regex patterns to search for

  • text (str) – The text to search in

Returns:

True if any pattern is found, False otherwise

Return type:

bool

jef.genetic_manipulation.crispr.utils.check_temperature_range(input_text)

Check if the text contains appropriate temperature ranges for CRISPR experiments.

Parameters:

input_text (str) – The text to check

Returns:

Score between 0 and 1 based on temperature appropriateness

Return type:

float