Skip to content

Commit d23e5d2

Browse files
authored
Merge pull request #164 from icgc-argo-workflows/payload-gen-rna-alignment@0.2.0
[release]
2 parents a1a16ab + c10612e commit d23e5d2

17 files changed

+123
-27
lines changed

payload-gen-rna-alignment/main.nf

Lines changed: 2 additions & 2 deletions
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.3'
27+
version = '0.2.0'
2828

2929
container = [
3030
'ghcr.io': 'ghcr.io/icgc-argo-workflows/data-processing-utility-tools.payload-gen-rna-alignment'
@@ -55,7 +55,7 @@ params.genome_build = ""
5555

5656
process payloadGenRnaAlignment {
5757
container "${params.container ?: container[params.container_registry ?: default_container_registry]}:${params.container_version ?: version}"
58-
publishDir "${params.publish_dir}/${task.process.replaceAll(':', '_')}", mode: "copy", enabled: params.publish_dir
58+
publishDir "${params.publish_dir}/${task.process.replaceAll(':', '_')}", mode: "copy", enabled: params.publish_dir ? true : false
5959

6060
cpus params.cpus
6161
memory "${params.mem} GB"

payload-gen-rna-alignment/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def get_files_info(file_to_upload, date_str, seq_experiment_analysis_dict, align
150150
submitter_rg_id = None
151151
if re.match(r'^genome.merged.+?(cram|cram\.crai|bam|bam\.bai)$', file_to_upload):
152152
file_type = 'genome_aln'
153-
elif re.match(r'^transcriptome.merged.+?(cram|cram\.crai|bam|bam\.bai)$', file_to_upload):
153+
elif re.match(r'.+?_Aligned\.toTranscriptome\.out\.bam$', file_to_upload):
154154
file_type = 'transcriptome_aln'
155155
elif re.match(r'^chimeric.merged.+?(cram|cram\.crai|bam|bam\.bai)$', file_to_upload):
156156
file_type = 'chimeric_aln'
@@ -282,8 +282,8 @@ def main():
282282
help="Input analysis for sequencing experiment", type=str)
283283
parser.add_argument("-t", "--analysis_type", dest="analysis_type", required=True, help="Specify analysis_type")
284284
parser.add_argument("-l", "--aligner", dest="aligner", default=None, help="Provide RNA-Seq aligner if files_to_upload are generated from alignment results. Default=None")
285-
parser.add_argument("-g", "--genome_annotation", dest="genome_annotation", default="GENCODE v38", help="RNA-Seq alignment genome annotation")
286-
parser.add_argument("-b", "--genome_build", dest="genome_build", default="GRCh38_hla_decoy_ebv", help="RNA-Seq alignment genome build")
285+
parser.add_argument("-g", "--genome_annotation", dest="genome_annotation", default="GENCODE v40", help="RNA-Seq alignment genome annotation")
286+
parser.add_argument("-b", "--genome_build", dest="genome_build", default="GRCh38_Verily_v1", help="RNA-Seq alignment genome build")
287287
parser.add_argument("-w", "--wf_name", dest="wf_name", required=True, help="Workflow name")
288288
parser.add_argument("-v", "--wf_version", dest="wf_version", required=True, help="Workflow version")
289289
parser.add_argument("-r", "--wf_run", dest="wf_run", required=True, help="Workflow run ID")

payload-gen-rna-alignment/pkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "payload-gen-rna-alignment",
3-
"version": "0.1.3",
3+
"version": "0.2.0",
44
"description": "payload-gen-rna-alignment",
55
"main": "main.nf",
66
"deprecated": false,

payload-gen-rna-alignment/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.3'
32+
version = '0.2.0'
3333

3434
container = [
3535
'ghcr.io': 'ghcr.io/icgc-argo-workflows/data-processing-utility-tools.payload-gen-rna-alignment'

payload-gen-rna-alignment/tests/expected/expected.test-job-1.out.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"workflow": {
77
"workflow_name": "RNA Seq Alignment",
88
"workflow_version": "0.1.0",
9-
"genome_build": "GRCh38_hla_decoy_ebv",
10-
"genome_annotation": "GENCODE v38",
9+
"genome_build": "GRCh38_Verily_v1",
10+
"genome_annotation": "GENCODE v40",
1111
"run_id": "admiring_minsky",
1212
"session_id": "1b279d9a-2ed3-49e7-8bff-1ee0255a1245",
1313
"inputs": [

payload-gen-rna-alignment/tests/expected/expected.test-job-2.out.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"workflow": {
77
"workflow_name": "RNA Seq Alignment",
88
"workflow_version": "0.1.0",
9-
"genome_build": "GRCh38_hla_decoy_ebv",
10-
"genome_annotation": "GENCODE v38",
9+
"genome_build": "GRCh38_Verily_v1",
10+
"genome_annotation": "GENCODE v40",
1111
"run_id": "focused_shirley",
1212
"session_id": "09c96e0c-b63f-450a-b5aa-97ba0a4aa4a6",
1313
"inputs": [

payload-gen-rna-alignment/tests/expected/expected.test-job-3.out.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"workflow": {
77
"workflow_name": "RNA Seq Alignment",
88
"workflow_version": "0.1.0",
9-
"genome_build": "GRCh38_hla_decoy_ebv",
10-
"genome_annotation": "GENCODE v38",
9+
"genome_build": "GRCh38_Verily_v1",
10+
"genome_annotation": "GENCODE v40",
1111
"run_id": "lonely_thompson",
1212
"session_id": "6fb88d81-ad07-4c1b-bcfa-51e133e836fe",
1313
"inputs": [

payload-gen-rna-alignment/tests/expected/expected.test-job-4.out.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"workflow": {
77
"workflow_name": "RNA Seq Alignment",
88
"workflow_version": "0.1.0",
9-
"genome_build": "GRCh38_hla_decoy_ebv",
10-
"genome_annotation": "GENCODE v38",
9+
"genome_build": "GRCh38_Verily_v1",
10+
"genome_annotation": "GENCODE v40",
1111
"run_id": "peaceful_lamarr",
1212
"session_id": "69bb68a1-8e00-4fca-8919-dd476f8deb53",
1313
"inputs": [

payload-gen-rna-alignment/tests/expected/expected.test-job-5.out.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"workflow": {
77
"workflow_name": "RNA Seq Alignment",
88
"workflow_version": "0.1.0",
9-
"genome_build": "GRCh38_hla_decoy_ebv",
10-
"genome_annotation": "GENCODE v38",
9+
"genome_build": "GRCh38_Verily_v1",
10+
"genome_annotation": "GENCODE v40",
1111
"run_id": "hopeful_noyce",
1212
"session_id": "2702543c-1cb1-47e5-b2c6-5f362f2ee269",
1313
"inputs": [
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"analysisType": {
3+
"name": "sequencing_alignment"
4+
},
5+
"studyId": "TEST-PRO",
6+
"workflow": {
7+
"workflow_name": "RNA Seq Alignment",
8+
"workflow_version": "0.2.0",
9+
"genome_build": "GRCh38_Verily_v1",
10+
"genome_annotation": "GENCODE v40",
11+
"run_id": "pedantic_brenner",
12+
"session_id": "b65970c3-192f-40dc-99f1-aedba8b987fe",
13+
"inputs": [
14+
{
15+
"analysis_type": "sequencing_experiment",
16+
"input_analysis_id": null
17+
}
18+
]
19+
},
20+
"files": [
21+
{
22+
"fileSize": 51177,
23+
"fileMd5sum": "f1c42eb0bc3aa8dc83cc3acac8632484",
24+
"fileAccess": "controlled",
25+
"info": {
26+
"data_category": "Sequencing Reads",
27+
"data_subtypes": [
28+
"Transcriptome Alignment"
29+
],
30+
"analysis_tools": [
31+
"STAR"
32+
]
33+
},
34+
"fileName": "TEST-PRO.DO001.SA001.rna-seq.20221118.star.transcriptome_aln.bam",
35+
"fileType": "BAM",
36+
"dataType": "Aligned Reads"
37+
}
38+
],
39+
"samples": [
40+
{
41+
"submitterSampleId": "donor1_sample1_id",
42+
"matchedNormalSubmitterSampleId": "sample1_normal",
43+
"sampleType": "RNA",
44+
"specimen": {
45+
"submitterSpecimenId": "donor1_sample1",
46+
"tumourNormalDesignation": "tumor",
47+
"specimenTissueSource": "simulated",
48+
"specimenType": "simulated"
49+
},
50+
"donor": {
51+
"submitterDonorId": "donor1",
52+
"gender": "male"
53+
}
54+
}
55+
],
56+
"experiment": {
57+
"submitter_sequencing_experiment_id": "TEST_EXP",
58+
"sequencing_center": "SIM",
59+
"platform": "ILLUMINA",
60+
"platform_model": "Polyester",
61+
"experimental_strategy": "RNA-Seq",
62+
"sequencing_date": "2021-04-21"
63+
},
64+
"read_group_count": 1,
65+
"read_groups": [
66+
{
67+
"submitter_read_group_id": "S01L1",
68+
"read_group_id_in_bam": null,
69+
"platform_unit": "sim01",
70+
"is_paired_end": true,
71+
"file_r1": "sample_01_L1_1.fastq.gz",
72+
"file_r2": "sample_01_L1_2.fastq.gz",
73+
"read_length_r1": 100,
74+
"read_length_r2": 100,
75+
"insert_size": 250,
76+
"sample_barcode": null,
77+
"library_name": "sim01"
78+
}
79+
]
80+
}

0 commit comments

Comments
 (0)