Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build KG2.10.1 #408

Closed
22 tasks done
ecwood opened this issue Sep 2, 2024 · 2 comments
Closed
22 tasks done

Build KG2.10.1 #408

ecwood opened this issue Sep 2, 2024 · 2 comments
Assignees

Comments

@ecwood
Copy link
Collaborator

ecwood commented Sep 2, 2024

1. Build and load KG2:
  • (if necessary) Clear the instance using bash -x instance_management/clear-instance.sh
  • Clone the RTX repo from Github git clone https://github.com/RTXteam/RTX-KG2.git
  • Checkout the branch that will be used for the build
  • Setup the KG2 build system bash -x RTX-KG2/setup/setup-kg2-build.sh
  • Check ~/kg2-build/setup-kg2-build.log to ensure setup completed successfully
  • Run a dry build using bash -x ~/kg2-code/build/build-kg2-snakemake.sh all -F -n
  • Check ~/kg2-build/build-kg2-snakemake-n.log to ensure all rules are included
  • Run touch ~/kg2-build/minor-release for a minor release or touch ~/kg2-build/major-release for a major release. If you don't want to change the version number, ignore this step.
  • Initiate a screen session screen -S buildkg2
  • Start the build bash -x ~/kg2-code/build/build-kg2-snakemake.sh all -F
  • Verify build completed by checking ~/kg2-build/build-kg2-snakemake.log
  • Check the build version number in ~/kg2-build/kg2-version.txt
  • Check report file kg2-simplified-report.json; compare against previous kg2-simplified-report.json to identify any major changes
  • Find an available kg2endpoint by checking rtx.ai under Networking on Lightsail
  • install the new KG2 TSV files into Neo4j on the kg2endpoint
  • Update code on kg2endpoint, then run setup-kg2-neo4j.sh if necessary
  • Load KG2 into Neo4J RTX-KG2/tsv-to-neo4j.sh > ~/kg2-build/tsv-to-neo4j.log 2>&1
  • Update kg2-versions.md
  • create a new DNS CNAME record with CNAME kg2endpoint-kg2-10-1.rtx.ai pointing to the hostname for the Neo4j endpoint (which might be something like kg2endpoint3.rtx.ai).
  • Update version numbers of upstream knowledge sources, for the new version of KG2 in kg2-versions.md (see Cypher command below).
  • (if necessary) Merge working branch into master
  • Create a new release for the build on GitHub

Example Cypher to get versions of many of the knowledge sources in a specific build of KG2pre:

match (n:`biolink:RetrievalSource`) where not n.id =~ 'umls_.*' and not n.id =~ 'OBO:.*' return n.id, n.name order by n.id;
@ecwood ecwood self-assigned this Sep 2, 2024
ecwood added a commit that referenced this issue Sep 2, 2024
ecwood added a commit that referenced this issue Sep 2, 2024
ecwood added a commit that referenced this issue Sep 2, 2024
ecwood added a commit that referenced this issue Sep 2, 2024
ecwood added a commit that referenced this issue Sep 3, 2024
ecwood added a commit that referenced this issue Sep 4, 2024
ecwood added a commit that referenced this issue Sep 8, 2024
@ecwood
Copy link
Collaborator Author

ecwood commented Sep 8, 2024

Build problems:

  • KG2 report compare no longer works with the new versioning system
  • Due to failed cURL commands, several sources are now downloading from the S3 bucket. This hard coded fix should be backed out and converted into Pull File from S3 Bucket when cURL Fails #409 at some point

@ecwood
Copy link
Collaborator Author

ecwood commented Sep 9, 2024

Build is complete, closing

@ecwood ecwood closed this as completed Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant