Skip to content

Commit 5dec0de

Browse files
authored
Merge pull request #148 from icgc-argo-workflows/json-parser@0.2.0
[release]
2 parents 337a550 + ecb2cad commit 5dec0de

6 files changed

Lines changed: 190 additions & 4 deletions

json-parser/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
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 = '0.1.0' // package version
27+
version = '0.2.0'
2828

2929
container = [
3030
'ghcr.io': 'ghcr.io/icgc-argo-workflows/data-processing-utility-tools.json-parser'

json-parser/pkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-parser",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "tool to parse JSON metadata",
55
"main": "main.nf",
66
"deprecated": false,

json-parser/tests/checker.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/* this block is auto-generated based on info from pkg.json where */
3030
/* changes can be made if needed, do NOT modify this block manually */
3131
nextflow.enable.dsl = 2
32-
version = '0.1.0' // package version
32+
version = '0.2.0'
3333

3434
container = [
3535
'ghcr.io': 'ghcr.io/icgc-argo-workflows/data-processing-utility-tools.json-parser'

json-parser/tests/data

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"analysisId": "40054341-119d-492e-8543-41119dc92ea1",
3+
"studyId": "TEST-PRO",
4+
"info": {
5+
"origin": "ICGC_25K"
6+
},
7+
"analysisState": "UNPUBLISHED",
8+
"samples": [
9+
{
10+
"sampleId": "SAbc064f25adab65a4c75a539e5e2b8d48",
11+
"specimenId": "SPea740f45bacdf68583eeb9183e8bb57a",
12+
"submitterSampleId": "HCC1143_BAM_INPUT",
13+
"matchedNormalSubmitterSampleId": null,
14+
"sampleType": "Total DNA",
15+
"specimen": {
16+
"specimenId": "SPea740f45bacdf68583eeb9183e8bb57a",
17+
"donorId": "DO1d5c9010f8ddcc4b7be855ddaa9cdd3c",
18+
"submitterSpecimenId": "TEST_EXP",
19+
"tumourNormalDesignation": "Tumour"
20+
},
21+
"donor": {
22+
"donorId": "DO1d5c9010f8ddcc4b7be855ddaa9cdd3c",
23+
"studyId": "TEST-PRO",
24+
"gender": "Female",
25+
"submitterDonorId": "internal_donor_123456789-00"
26+
}
27+
}
28+
],
29+
"files": [
30+
{
31+
"objectId": "69c0148d-68a0-5acb-8925-14e7eb4a1725",
32+
"studyId": "TEST-PRO",
33+
"analysisId": "40054341-119d-492e-8543-41119dc92ea1",
34+
"fileName": "test_rg_3.bam",
35+
"fileSize": 14911,
36+
"fileType": "BAM",
37+
"fileMd5sum": "178f97f7b1ca8bfc28fd5586bdd56799",
38+
"fileAccess": "controlled",
39+
"dataType": "UnalignedReads"
40+
}
41+
],
42+
"analysisType": {
43+
"name": "sequencing_experiment",
44+
"version": 4
45+
},
46+
"experiment": {
47+
"platform": "ILLUMINA",
48+
"platform_model": "HiSeq 2000",
49+
"sequencing_date": "2014-12-12",
50+
"library_strategy": "WGS",
51+
"sequencing_center": "EXT",
52+
"submitter_sequencing_experiment_id": "TEST_EXP",
53+
"library_strandedness": "FIRST_READ_SENSE_STRAND"
54+
},
55+
"read_groups": [
56+
{
57+
"file_r1": "test_rg_3.bam",
58+
"file_r2": "test_rg_3.bam",
59+
"insert_size": 298,
60+
"library_name": "Pond-147580",
61+
"is_paired_end": true,
62+
"platform_unit": "74_8a",
63+
"read_length_r1": 150,
64+
"read_length_r2": 150,
65+
"sample_barcode": null,
66+
"submitter_read_group_id": "C0HVY.2"
67+
},
68+
{
69+
"file_r1": "test_rg_3.bam",
70+
"file_r2": "test_rg_3.bam",
71+
"insert_size": 298,
72+
"library_name": "Pond-147580",
73+
"is_paired_end": true,
74+
"platform_unit": "74_8b",
75+
"read_length_r1": 150,
76+
"read_length_r2": 150,
77+
"sample_barcode": null,
78+
"submitter_read_group_id": "D0RE2.1"
79+
},
80+
{
81+
"file_r1": "test_rg_3.bam",
82+
"file_r2": "test_rg_3.bam",
83+
"insert_size": 298,
84+
"library_name": "Pond-147580",
85+
"is_paired_end": true,
86+
"platform_unit": "74_8c",
87+
"read_length_r1": 150,
88+
"read_length_r2": 150,
89+
"sample_barcode": null,
90+
"submitter_read_group_id": "D0RH0.2"
91+
}
92+
],
93+
"read_group_count": 3
94+
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"analysisId": "40054341-119d-492e-8543-41119dc92ea1",
3+
"studyId": "TEST-PRO",
4+
"analysisState": "UNPUBLISHED",
5+
"samples": [
6+
{
7+
"sampleId": "SAbc064f25adab65a4c75a539e5e2b8d48",
8+
"specimenId": "SPea740f45bacdf68583eeb9183e8bb57a",
9+
"submitterSampleId": "HCC1143_BAM_INPUT",
10+
"matchedNormalSubmitterSampleId": null,
11+
"sampleType": "Total DNA",
12+
"specimen": {
13+
"specimenId": "SPea740f45bacdf68583eeb9183e8bb57a",
14+
"donorId": "DO1d5c9010f8ddcc4b7be855ddaa9cdd3c",
15+
"submitterSpecimenId": "TEST_EXP",
16+
"tumourNormalDesignation": "Tumour"
17+
},
18+
"donor": {
19+
"donorId": "DO1d5c9010f8ddcc4b7be855ddaa9cdd3c",
20+
"studyId": "TEST-PRO",
21+
"gender": "Female",
22+
"submitterDonorId": "internal_donor_123456789-00"
23+
}
24+
}
25+
],
26+
"files": [
27+
{
28+
"objectId": "69c0148d-68a0-5acb-8925-14e7eb4a1725",
29+
"studyId": "TEST-PRO",
30+
"analysisId": "40054341-119d-492e-8543-41119dc92ea1",
31+
"fileName": "test_rg_3.bam",
32+
"fileSize": 14911,
33+
"fileType": "BAM",
34+
"fileMd5sum": "178f97f7b1ca8bfc28fd5586bdd56799",
35+
"fileAccess": "controlled",
36+
"dataType": "UnalignedReads"
37+
}
38+
],
39+
"analysisType": {
40+
"name": "sequencing_experiment",
41+
"version": 4
42+
},
43+
"experiment": {
44+
"platform": "ILLUMINA",
45+
"platform_model": "HiSeq 2000",
46+
"sequencing_date": "2014-12-12",
47+
"library_strategy": "WGS",
48+
"sequencing_center": "EXT",
49+
"submitter_sequencing_experiment_id": "TEST_EXP"
50+
},
51+
"read_groups": [
52+
{
53+
"file_r1": "test_rg_3.bam",
54+
"file_r2": "test_rg_3.bam",
55+
"insert_size": 298,
56+
"library_name": "Pond-147580",
57+
"is_paired_end": true,
58+
"platform_unit": "74_8a",
59+
"read_length_r1": 150,
60+
"read_length_r2": 150,
61+
"sample_barcode": null,
62+
"read_group_id_in_bam": "C0HVY.2",
63+
"submitter_read_group_id": "C0HVY:2"
64+
},
65+
{
66+
"file_r1": "test_rg_3.bam",
67+
"file_r2": "test_rg_3.bam",
68+
"insert_size": 298,
69+
"library_name": "Pond-147580",
70+
"is_paired_end": true,
71+
"platform_unit": "74_8b",
72+
"read_length_r1": 150,
73+
"read_length_r2": 150,
74+
"sample_barcode": null,
75+
"read_group_id_in_bam": "D0RE2.1",
76+
"submitter_read_group_id": "C0HVY_2"
77+
},
78+
{
79+
"file_r1": "test_rg_3.bam",
80+
"file_r2": "test_rg_3.bam",
81+
"insert_size": 298,
82+
"library_name": "Pond-147580",
83+
"is_paired_end": false,
84+
"platform_unit": "74_8c",
85+
"read_length_r1": 150,
86+
"read_length_r2": 150,
87+
"sample_barcode": null,
88+
"read_group_id_in_bam": "D0RH0.2",
89+
"submitter_read_group_id": "C0HVY_2_1"
90+
}
91+
],
92+
"read_group_count": 3
93+
}

0 commit comments

Comments
 (0)