forked from monarch-initiative/monarch-ingest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
64 lines (64 loc) · 3.22 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
pipeline {
agent any
environment {
HOME = "${env.WORKSPACE}"
RELEASE = sh(script: "echo `date +%Y-%m-%d`", returnStdout: true).trim()
}
stages {
stage('setup') {
agent { dockerfile true }
steps {
sh '''
pwd
ls
poetry install
'''
}
}
stage('download') {
agent { dockerfile true }
steps {
sh 'mkdir data || true'
sh 'gsutil -m cp -r gs://monarch-ingest/data-cache/* data/'
sh 'ls -la'
sh 'ls -la data'
}
}
stage('transform') {
agent { dockerfile true }
steps {
sh '''
poetry run koza transform --source monarch_ingest/alliance/gene.yaml
poetry run koza transform --source monarch_ingest/alliance/gene_to_phenotype.yaml
poetry run koza transform --source monarch_ingest/alliance/publication.yaml
poetry run koza transform --source monarch_ingest/ctd/chemical_to_disease.yaml
poetry run koza transform --source monarch_ingest/flybase/publication_to_gene.yaml
poetry run koza transform --source monarch_ingest/goa/go_annotation.yaml
poetry run koza transform --source monarch_ingest/hgnc/gene.yaml
poetry run koza transform --source monarch_ingest/hpoa/disease_phenotype.yaml
poetry run koza transform --source monarch_ingest/mgi/publication_to_gene.yaml
poetry run koza transform --source monarch_ingest/omim/gene_to_disease.yaml
poetry run koza transform --source monarch_ingest/panther/ref_genome_orthologs.yaml
poetry run koza transform --source monarch_ingest/pombase/gene.yaml
poetry run koza transform --source monarch_ingest/pombase/gene_to_phenotype.yaml
poetry run koza transform --source monarch_ingest/reactome/chemical_to_pathway.yaml
poetry run koza transform --source monarch_ingest/reactome/gene_to_pathway.yaml
poetry run koza transform --source monarch_ingest/rgd/publication_to_gene.yaml
poetry run koza transform --source monarch_ingest/sgd/publication_to_gene.yaml
poetry run koza transform --source monarch_ingest/string/protein_links.yaml
poetry run koza transform --source monarch_ingest/xenbase/gene.yaml
poetry run koza transform --source monarch_ingest/xenbase/gene_to_phenotype.yaml
poetry run koza transform --source monarch_ingest/xenbase/publication_to_gene.yaml
poetry run koza transform --source monarch_ingest/zfin/gene_to_phenotype.yaml
poetry run koza transform --source monarch_ingest/zfin/publication_to_gene.yaml
'''
}
}
stage('upload kgx files') {
agent { dockerfile true }
steps {
sh 'gsutil -m cp -r output/*.tsv gs://monarch-ingest/${RELEASE}/output/'
}
}
}
}