Skip to content

Commit

Permalink
Remove unused umls mapper for loading variant_gene_df method
Browse files Browse the repository at this point in the history
  • Loading branch information
nanglo123 committed Dec 12, 2023
1 parent 3fb36e2 commit 23d09a4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/indra_cogex/sources/disgenet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,19 +248,6 @@ def load_disgenet_variant_gene(
read_csv_kwargs=dict(dtype={"geneId": str, "snpId": str}),
force=force,
)
mapper_path = SUBMODULE.join(name="umls_mapper.pkl")
if mapper_path.is_file():
click.echo("loading UMLS mapper")
umls_mapper = pickle.loads(mapper_path.read_bytes())
click.echo("done loading UMLS mapper")
else:
click.echo("loading UMLS mapper")
umls_mapper = UmlsMapper()
click.echo("writing UMLS mapper")
mapper_path.write_bytes(
pickle.dumps(umls_mapper, protocol=pickle.HIGHEST_PROTOCOL)
)
click.echo("done writing UMLS mapper")

click.echo("mapping HGNC")
df["hgnc_id"] = df["geneId"].map(
Expand Down

0 comments on commit 23d09a4

Please sign in to comment.