Skip to content

opentargets/platform-output-support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Targets: Platform-output-support overview

Platform Output Support (POS) is the third component in the back-end data and infrastructure generation pipeline. POS is part of the Open Targets Platform release process, being responsible for:

  • Creation of machine images for the data backend, based on Clickhouse and Elastic Search
  • Publishing datasets in different services (Google Cloud and EBI FTP)
  • Data validation (not implemented yet)

Requirements

*) Terraform
*) Jq

How to run the different steps

Simply run the following command:

make

The output shows the possible action to run

Usage:
  help             show help message
  credentials      Create a credentials file for Google Cloud
  set_profile      Set an active configuration profile, e.g. "make set_profile profile='development'" (see folder 'profiles')
  image            Create Google cloud Clickhouse image and ElasticSearch image.
  clean_image_infrastructure  Clean the infrastructure used for creating the data images
  clean_all_image_infrastructure  Clean all the infrastructures used for creating data images
  clean_tmp        Clean the temporary directory
  clean            Clean the temporary directory and the infrastructure used for creating data images
  bigquerydev      Big Query Dev
  bigqueryprod     Big Query Production
  sync             Sync data to EBI FTP service
  syncgs           Copy data from pre-release to production

Every single variables is stored in the config.

The current POS steps are: make set_profile profile='<profile>' it sets the configuration profile to be used for the rest of the commands

make image it creates the ES and CH images using the ETL output using the information from the active configuration profile

make bigquerydev it generates a bigquery dataset in eu-dev

make bigqueryprod it generates a bigquery dataset in production

make sync Sync the data from the Google Storage to EBI FTP (internal use, run from a login node within EBI infrastructure)

make syncgs Sync the data from the google storage pre-release to production (internal use)

make clean_image_infrastructure This step cleans up the infrastructure used for creating the data backend machine images

Housekeeping

The last step, clean_image_infrastructure, will clean up, at infrastructure level, all the resources used for creating the data backend machine images but, if further clean up is needed, e.g. for previous runs of POS that were not properly cleaned up, the following command can be used:

make clean_all_image_infrastructure

Running a data Sync to EBI FTP service

You need to have access to the SLURM cluster and your user be a member of the relevant internal groups, able to schedule jobs in the cluster and access the filesystem locations.

Copyright

Copyright 2018-2021 Open Targets

Bristol Myers Squibb
European Bioinformatics Institute - EMBL-EBI
GSK
Sanofi
Wellcome Sanger Institute

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.

You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

https://github.com/opentargets/platform-output-support.git

About

POS is an automatic and unified place to perform a release of OT Platform to the public

Resources

License

Stars

Watchers

Forks

Packages

No packages published