Skip to content

Commit

Permalink
Merge pull request #64 from icgc-argo/[email protected]
Browse files Browse the repository at this point in the history
[release]
  • Loading branch information
edsu7 authored Jan 30, 2023
2 parents f2e5939 + 121ab14 commit 54882ff
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
7 changes: 5 additions & 2 deletions download-aspera/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/* this block is auto-generated based on info from pkg.json where */
/* changes can be made if needed, do NOT modify this block manually */
nextflow.enable.dsl = 2
version = '0.1.2'
version = '0.1.3'

container = [
'ghcr.io': 'ghcr.io/icgc-argo/argo-data-submission.download-aspera'
Expand Down Expand Up @@ -60,11 +60,12 @@ process downloadAspera {

input: // input, make update as needed
val target_file
val file
val ega_file_id
val dependency

output: // output, make update as needed
path "${ega_file_id}/${regexed_file_name}", emit: output_file
path "${ega_file_id}/${file}.c4gh", emit: output_file

script:
// add and initialize variables here as needed
Expand All @@ -78,6 +79,7 @@ process downloadAspera {
-f ${target_file} \\
-o ${ega_file_id} \\
> download.log 2>&1
mv ${ega_file_id}/${target_file.replaceAll(/^.*\//,'')} ${ega_file_id}/${file}.c4gh
"""
}

Expand All @@ -86,6 +88,7 @@ process downloadAspera {
workflow {
downloadAspera(
params.target_file,
params.file,
params.ega_file_id,
true
)
Expand Down
2 changes: 1 addition & 1 deletion download-aspera/pkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "download-aspera",
"version": "0.1.2",
"version": "0.1.3",
"description": "Wrapper to utilize Aspera for EGA downloads",
"main": "main.nf",
"deprecated": false,
Expand Down
6 changes: 5 additions & 1 deletion download-aspera/tests/checker.nf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/* this block is auto-generated based on info from pkg.json where */
/* changes can be made if needed, do NOT modify this block manually */
nextflow.enable.dsl = 2
version = '0.1.2'
version = '0.1.3'

container = [
'ghcr.io': 'ghcr.io/icgc-argo/argo-data-submission.download-aspera'
Expand All @@ -44,6 +44,7 @@ params.container = ""

// tool specific parmas go here, add / change as needed
params.target_file=''
params.file=''
params.ega_file_id=''
params.ascp_scp_host=''
params.ascp_scp_user=''
Expand Down Expand Up @@ -79,12 +80,14 @@ process file_smart_diff {
workflow checker {
take:
target_file
file
ega_file_id


main:
downloadAspera(
target_file,
file,
ega_file_id,
true
)
Expand All @@ -98,6 +101,7 @@ workflow checker {
workflow {
checker(
params.target_file,
params.file,
params.ega_file_id
)
}
3 changes: 2 additions & 1 deletion download-aspera/tests/test-job-aspera.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"target_file" : "/aspera-test-dir-large/100MB",
"file":"example",
"ega_file_id" : "EGAF000001",
"ascp_scp_host" : "demo.asperasoft.com",
"ascp_scp_user" : "aspera",
"aspera_scp_pass" : "demoaspera"
}
}

0 comments on commit 54882ff

Please sign in to comment.