Skip to content

Commit

Permalink
[GEN-834] Disable data guide generation (#537)
Browse files Browse the repository at this point in the history
* comment out data guide generation
---------

Co-authored-by: Rixing Xu <[email protected]>
  • Loading branch information
rxu17 and Rixing Xu authored Sep 26, 2023
1 parent db442a2 commit c2ba7db
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
33 changes: 17 additions & 16 deletions bin/consortium_to_public.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,22 +204,23 @@ def main(args):
logger.info("DASHBOARD UPDATE COMPLETE")
logger.info("AUTO GENERATE DATA GUIDE")

onco_link = databaseSynIdMappingDf["Id"][
databaseSynIdMappingDf["Database"] == "oncotreeLink"
].values[0]
onco_link_ent = syn.get(onco_link)
oncotree_link = onco_link_ent.externalURL
oncotree_version = oncotree_link.split("=")[1]

data_guide_pdf = generate_data_guide(
args.genieVersion,
oncotree_version=oncotree_version,
database_mapping=databaseSynIdMappingId,
)
data_guide_ent = synapseclient.File(
data_guide_pdf, parent=folders["release_folder"]
)
syn.store(data_guide_ent)
# TODO: remove data guide code
# onco_link = databaseSynIdMappingDf["Id"][
# databaseSynIdMappingDf["Database"] == "oncotreeLink"
# ].values[0]
# onco_link_ent = syn.get(onco_link)
# oncotree_link = onco_link_ent.externalURL
# oncotree_version = oncotree_link.split("=")[1]

# data_guide_pdf = generate_data_guide(
# args.genieVersion,
# oncotree_version=oncotree_version,
# database_mapping=databaseSynIdMappingId,
# )
# data_guide_ent = synapseclient.File(
# data_guide_pdf, parent=folders["release_folder"]
# )
# syn.store(data_guide_ent)
logger.info("COMPLETED CONSORTIUM TO PUBLIC")


Expand Down
25 changes: 13 additions & 12 deletions bin/database_to_staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,18 +295,19 @@ def main(
logger.info("DASHBOARD UPDATE COMPLETE")
logger.info("AUTO GENERATE DATA GUIDE")

oncotree_version = oncotree_link.split("=")[1]
data_guide_pdf = generate_data_guide(
genie_version,
oncotree_version=oncotree_version,
database_mapping=databaseSynIdMappingId,
)
load.store_file(
syn=syn,
filepath=data_guide_pdf,
version_comment=genie_version,
parentid=folders["release_folder"],
)
# TODO: remove data guide code
# oncotree_version = oncotree_link.split("=")[1]
# data_guide_pdf = generate_data_guide(
# genie_version,
# oncotree_version=oncotree_version,
# database_mapping=databaseSynIdMappingId,
# )
# load.store_file(
# syn=syn,
# filepath=data_guide_pdf,
# version_comment=genie_version,
# parentid=folders["release_folder"],
# )
logger.info("COMPLETED DATABASE TO STAGING")


Expand Down

0 comments on commit c2ba7db

Please sign in to comment.