Skip to content

Commit

Permalink
Finish updating other mapping databases
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Apr 30, 2024
1 parent 32662ba commit 8592f25
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/semra/landscape/diseases.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
priority_pickle_path=MODULE.join(name="priority.pkl"),
priority_sssom_path=MODULE.join(name="priority.sssom.tsv"),
configuration_path=MODULE.join(name="configuration.json"),
zenodo_record=11091885,
)


Expand All @@ -94,6 +95,7 @@ def main():
"""Build the mapping database for disease terms."""
# Takes about 2 hours
CONFIGURATION.get_mappings(refresh_raw=True, refresh_processed=True)
CONFIGURATION.upload_zenodo()

Check warning on line 98 in src/semra/landscape/diseases.py

View check run for this annotation

Codecov / codecov/patch

src/semra/landscape/diseases.py#L98

Added line #L98 was not covered by tests


if __name__ == "__main__":
Expand Down
14 changes: 8 additions & 6 deletions src/semra/landscape/genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,25 @@
Mutation(source="umls", confidence=0.8),
Mutation(source="ncit", confidence=0.8),
],
raw_pickle_path=MODULE.join(name="raw.pkl"),
raw_sssom_path=MODULE.join(name="raw.sssom.tsv"),
raw_pickle_path=MODULE.join(name="raw.pkl.gz"),
raw_sssom_path=MODULE.join(name="raw.sssom.tsv.gz"),
# raw_neo4j_path=MODULE.join("neo4j_raw"),
processed_pickle_path=MODULE.join(name="processed.pkl"),
processed_sssom_path=MODULE.join(name="processed.sssom.tsv"),
processed_pickle_path=MODULE.join(name="processed.pkl.gz"),
processed_sssom_path=MODULE.join(name="processed.sssom.tsv.gz"),
processed_neo4j_path=MODULE.join("neo4j"),
processed_neo4j_name="semra-gene",
priority_pickle_path=MODULE.join(name="priority.pkl"),
priority_sssom_path=MODULE.join(name="priority.sssom.tsv"),
priority_pickle_path=MODULE.join(name="priority.pkl.gz"),
priority_sssom_path=MODULE.join(name="priority.sssom.tsv.gz"),
configuration_path=MODULE.join(name="configuration.json"),
zenodo_record=11092012,
)


@click.command()
def main():
"""Build the mapping database for gene terms."""
CONFIGURATION.get_mappings(refresh_raw=True, refresh_processed=True)
CONFIGURATION.upload_zenodo()

Check warning on line 80 in src/semra/landscape/genes.py

View check run for this annotation

Codecov / codecov/patch

src/semra/landscape/genes.py#L80

Added line #L80 was not covered by tests


if __name__ == "__main__":
Expand Down

0 comments on commit 8592f25

Please sign in to comment.