Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from caufieldjh/patch-1
Browse files Browse the repository at this point in the history
Update Jenkinsfile for download and upload
  • Loading branch information
bsantan authored Feb 21, 2024
2 parents 12ec00c + 0c1aa43 commit 8b4983e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
12 changes: 5 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ pipeline {
BUILDSTARTDATE = sh(script: "echo `date +%Y%m%d`", returnStdout: true).trim()
S3PROJECTDIR = '' // no trailing slash

RESNIK_THRESHOLD = '4.0' // value for min-ancestor-information-content parameter

// Distribution ID for the AWS CloudFront for this bucket
// used solely for invalidations
AWS_CLOUDFRONT_DISTRIBUTION_ID = 'EUVSWXZQBXCFP'
Expand Down Expand Up @@ -63,7 +61,7 @@ pipeline {
}
}

stage('Run similarity ') {
stage('Run downloader') {
steps {
dir('./working') {
sh '. venv/bin/activate && rm data/raw/uniprot_empty_organism.tsv'
Expand All @@ -74,7 +72,7 @@ pipeline {

// Harry to help here
stage('Upload result') {
// Store similarity results at s3://kg-hub-public-data/monarch/
// Store similarity results at s3://kg-hub-public-data/frozen_incoming_data/uniprot
steps {
dir('./working') {
script {
Expand All @@ -86,10 +84,10 @@ pipeline {


// upload to remote
sh 'tar -czvf HP_vs_MP_semsimian.tsv.tar.gz HP_vs_MP_semsimian.tsv'
sh '. venv/bin/activate && s3cmd -c $S3CMD_CFG put -pr --acl-public --cf-invalidate HP_vs_MP_semsimian.tsv.tar.gz s3://kg-hub-public-data/monarch/'
sh 'tar -czvf uniprot_proteomes.tar.gz ./data/raw/s3'
sh '. venv/bin/activate && s3cmd -c $S3CMD_CFG put -pr --acl-public --cf-invalidate uniprot_proteomes.tar.gz s3://kg-hub-public-data/frozen_incoming_data/uniprot/'
// Should now appear at:
// https://kg-hub.berkeleybop.io/monarch/
// https://kg-hub.berkeleybop.io/frozen_incoming_data/uniprot
}

}
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ all: exclusion-branches uniprot-download

exclusion-branches:

wget "https://raw.githubusercontent.com/Knowledge-Graph-Hub/kg-microbe/master/data/raw/exclusion_branches.tsv" -O data/raw/exclusion_branches.tsv
wget "https://kg-hub.berkeleybop.io/kg-microbe/current/raw/exclusion_branches.tsv" -O data/raw/exclusion_branches.tsv

ncbi_removed_subset:

#Will download from s3 bucket which will be put there by jenkins while running kg-microbe pipeline. Need to ask Harry for assistance.

wget "https://kg-hub.berkeleybop.io/kg-microbe/current/raw/ncbitaxon_removed_subset.json" -O data/raw/ncbitaxon_removed_subset.json

uniprot-download:

Expand Down

0 comments on commit 8b4983e

Please sign in to comment.