Skip to content

Commit

Permalink
Made functionality in CTD accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Korn committed Aug 27, 2024
1 parent e7d2857 commit 8b1bf0c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions parsers/CTD/src/loadCTD.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ def parse_data(self) -> dict:

# process chemical to gene (expanded)
curated_files_archive_path = os.path.join(self.data_path, self.hand_curated_data_archive)
self.chemical_to_gene_exp(curated_files_archive_path,
self.hand_curated_chemical_to_gene_file)
#self.chemical_to_gene_exp(curated_files_archive_path,
# self.hand_curated_chemical_to_gene_file)

# process disease to exposure
exposures_file_path = os.path.join(self.data_path, self.ctd_exposure_events_file)
self.disease_to_exposure(exposures_file_path)
#self.disease_to_exposure(exposures_file_path)

# disease to chemical
disease_to_chemical_file_path = os.path.join(self.data_path, self.ctd_chemical_to_disease_file)
Expand Down Expand Up @@ -556,8 +556,11 @@ def get_chemical_label_id(self,
:param marker_count:
:return:
"""
if(mimic_koza and therapeutic_count>0):
return self.therapeutic_predicate
if mimic_koza:
if therapeutic_count>0:
return self.therapeutic_predicate
else:
return None

# if this is not a good amount of evidence
if therapeutic_count == marker_count and therapeutic_count < 3:
Expand Down

0 comments on commit 8b1bf0c

Please sign in to comment.