From 9867b6d03ec084e54c6aaffb6212820c3c075d8a Mon Sep 17 00:00:00 2001 From: lindaxiang Date: Mon, 16 Mar 2020 16:18:37 -0400 Subject: [PATCH] add analysis_id as prefix for analysis json file --- process/song_get_analysis.nf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/process/song_get_analysis.nf b/process/song_get_analysis.nf index f3b5d80..213eca6 100644 --- a/process/song_get_analysis.nf +++ b/process/song_get_analysis.nf @@ -27,7 +27,7 @@ process songGetAnalysis { val analysis_id output: - path 'analysis.json', emit: json + path '*.analysis.json', emit: json """ @@ -35,6 +35,6 @@ process songGetAnalysis { export CLIENT_ACCESS_TOKEN=${params.api_token} export CLIENT_STUDY_ID=${study_id} - curl -X GET "${params.song_url}/studies/$study_id/analysis/$analysis_id" -H "accept: */*" > analysis.json + curl -X GET "${params.song_url}/studies/$study_id/analysis/$analysis_id" -H "accept: */*" > ${analysis_id}.analysis.json """ }