Skip to content

Commit

Permalink
Add a flag to control FTP export
Browse files Browse the repository at this point in the history
If true, it runs. Used to disable a full ftp export for the weekly pipeline
  • Loading branch information
afg1 committed Oct 10, 2023
1 parent d303d7e commit bf0ad06
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
2 changes: 1 addition & 1 deletion config/export.config
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ params {
}

ftp {
run= true
publish = "${baseDir}/ftp"
id_mapping {
run = true
Expand Down Expand Up @@ -84,4 +85,3 @@ params {
}
}
}

34 changes: 18 additions & 16 deletions workflows/export/ftp.nf
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,24 @@ process gpi {
workflow ftp {
take: _flag
main:
Channel.fromPath('files/ftp-export/md5/md5.sql') | set { md5_query }
Channel.fromPath('files/ftp-export/md5/readme.txt') | set { md5_template }
md5(md5_query, md5_template)

Channel.fromPath('files/ftp-export/release_note.txt') | release_note
Channel.fromPath('files/ftp-export/go_annotations/rnacentral_rfam_annotations.sql') | rfam_go_matches

Channel.fromPath('files/ftp-export/rfam/rfam-annotations.sql') | set { rfam_annotation_query }
Channel.fromPath('files/ftp-export/rfam/readme.txt') | set { rfam_readme }
rfam_annotations(rfam_annotation_query, rfam_readme)

gpi()
id_mapping()
export_coordinates()
ensembl_export()
fasta_export()
if (params.export.ftp.run) {
Channel.fromPath('files/ftp-export/md5/md5.sql') | set { md5_query }
Channel.fromPath('files/ftp-export/md5/readme.txt') | set { md5_template }
md5(md5_query, md5_template)

Channel.fromPath('files/ftp-export/release_note.txt') | release_note
Channel.fromPath('files/ftp-export/go_annotations/rnacentral_rfam_annotations.sql') | rfam_go_matches

Channel.fromPath('files/ftp-export/rfam/rfam-annotations.sql') | set { rfam_annotation_query }
Channel.fromPath('files/ftp-export/rfam/readme.txt') | set { rfam_readme }
rfam_annotations(rfam_annotation_query, rfam_readme)

gpi()
id_mapping()
export_coordinates()
ensembl_export()
fasta_export()
}
}

workflow {
Expand Down

0 comments on commit bf0ad06

Please sign in to comment.