Skip to content

Commit f0e555d

Browse files
authored
Merge pull request #145 from icgc-argo-workflows/helper-functions@1.0.2
[release]
2 parents a05032d + c04cdb2 commit f0e555d

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

helper-functions/main.nf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@
2424
/* this block is auto-generated based on info from pkg.json where */
2525
/* changes can be made if needed, do NOT modify this block manually */
2626
nextflow.enable.dsl = 2
27-
version = '1.0.1.1'
27+
version = '1.0.2'
2828
/********************************************************************/
2929

30+
import groovy.json.JsonSlurper
31+
32+
def parseJsonFile(json_file){
33+
records = new JsonSlurper().parse(json_file)
34+
return records
35+
}
3036

3137
// this is kind of like CWL's secondary files
3238
def getSecondaryFiles(main_file, exts){
@@ -53,3 +59,5 @@ def getSecondaryFiles(main_file, exts){
5359
def getBwaSecondaryFiles(main_file){
5460
return getSecondaryFiles(main_file, ['fai', 'sa', 'bwt', 'ann', 'amb', 'pac', 'alt'])
5561
}
62+
63+

helper-functions/pkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "helper-functions",
3-
"version": "1.0.1.1",
3+
"version": "1.0.2",
44
"description": "A collection of helper functions",
55
"main": "main.nf",
66
"deprecated": false,

0 commit comments

Comments
 (0)