Skip to content

Commit 39e220a

Browse files
committed
add release step to copy to ftp
move pipelines to new folder
1 parent dde91b8 commit 39e220a

15 files changed

+41
-4
lines changed

cwl/test/workflows/workflow_tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Genome scanner
55
- doc: Functional tests for genome scanner
66
job: genome_scanner/test.yml
7-
tool: ../../workflows/genome_scanner.cwl
7+
tool: ../../release/genome_scanner.cwl
88
should_fail: false
99
output:
1010
cmsearch_matches:

cwl/wrapper_scripts/process_dir.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
current_dir = os.path.dirname(__file__)
3535

36-
WORKFLOW_PATH = os.path.realpath(os.path.join(current_dir, os.pardir, 'workflows', 'nc_rna_workflow.cwl'))
36+
WORKFLOW_PATH = os.path.realpath(os.path.join(current_dir, os.pardir, 'release', 'nc_rna_workflow.cwl'))
3737

3838
REFERENCE_CM_DB = os.path.realpath(os.path.join(current_dir, os.pardir, 'db', REFERENCE_DB_NAME))
3939

File renamed without changes.
File renamed without changes.
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
nextflow.enable.dsl=2
2+
3+
process generate_seed_files {
4+
memory '10GB'
5+
6+
output:
7+
val('done)')
8+
9+
"""
10+
rm -rf ${params.release_ftp}/seed/
11+
mkdir -p ${params.release_ftp}/seed/
12+
python ${params.rfamprod}/scripts/export/generate_ftp_files.py --acc all --seed --dest-dir "${params.release_ftp}/seed"
13+
"""
14+
15+
}
16+
17+
workflow copy_to_release_ftp {
18+
emit:
19+
done
20+
main:
21+
copy_seed_files \
22+
copy_cm_files \
23+
copy_genome_browser \
24+
copy_fasta \
25+
copy_tree \
26+
copy_files \
27+
28+
| set { done }
29+
}
30+
31+
workflow {
32+
copy_to_release_ftp()
33+
}
File renamed without changes.

scripts/release/workflows/release_pipeline.nf pipelines/release/release_pipeline.nf

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
nextflow.enable.dsl = 2
44

55
include { generate_annotated_files } from './annotated_files'
6-
include { mapping_and_updates } from 'pdb_mapping/pdb_mapping'
6+
include { mapping_and_updates } from 'pdb/pdb_mapping'
77
include { view_process } from './view_process'
88
include { clan_competition } from './clan_competition'
99
include { prepare_rfam_live } from './prepare_rfam_live'
1010
include { generate_ftp_files } from './generate_ftp_files'
1111
include { generate_rfam2go } from './rfam2go'
1212
include { stage_rfam_live } from './stage_rfam_live'
1313
include { text_search } from './update_text_search_dev'
14+
include { copy_to_release_ftp } from './copy_to_release_ftp'
15+
1416

1517

1618
workflow {
@@ -30,5 +32,7 @@ workflow {
3032
| ifEmpty('no rfam2go') \
3133
| stage_rfam_live \
3234
| ifEmpty('no stage rfam_live') \
33-
| text_search
35+
| text_search \
36+
| ifEmpty('no stage text_search') \
37+
| copy_to_release_ftp
3438
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)