Skip to content

Commit

Permalink
chore: add logging info for data loading
Browse files Browse the repository at this point in the history
  • Loading branch information
pdmnyberg committed Oct 28, 2024
1 parent 0a5819c commit 9214336
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions search/oligo_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

@lru_cache
def load_ko_data():
logger.info("Loading KO data")
# Read gRNA excel files as table
# this file has top 3 gRNAs for each gene,
# read only until column C 'Total_score'
Expand Down Expand Up @@ -108,11 +109,13 @@ def get_ko_sequence(input_gene):
+ PbHOT_KO_Vector_List[annotation]
)

logger.info("KO data loaded")
return PbHOT_KO_Vector_List


@lru_cache
def load_tag_data():
logger.info("Loading TAG data")
# Read gRNA excel files as table

# this file has top 3 gRNAs for each gene,
Expand Down Expand Up @@ -217,6 +220,7 @@ def load_tag_data():
PbHiT_HR1_merge['Extracted_Sequence_x'].fillna('') +
PbHiT_HR1_merge['Extracted_Sequence_y']
)
logger.info("TAG data loaded")
return [PbHiT_HR1_merge]


Expand Down

0 comments on commit 9214336

Please sign in to comment.