Skip to content

Commit 8a1c9cf

Browse files
committed
add support for star transcriptome_aln
1 parent 183433a commit 8a1c9cf

5 files changed

Lines changed: 100 additions & 4 deletions

File tree

payload-gen-rna-alignment/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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")
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+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"seq_experiment_analysis": "input/s3.881fe6cf-8c80-4c7b-9f4d-b8dac9601d01.sequencing_experiment.payload.json",
3+
"files_to_upload": [
4+
"input/SA001_Aligned.toTranscriptome.out.bam"
5+
],
6+
"expected_output": "expected/expected.test-job-6.out.json",
7+
"aligner": "star",
8+
"analysis_type": "sequencing_alignment",
9+
"genome_annotation": "GENCODE v40",
10+
"genome_build": "GRCh38_Verily_v1",
11+
"wf_name": "rna-seq-alignment",
12+
"wf_version": "0.2.0",
13+
"publish_dir": "outdir",
14+
"cpus": 1,
15+
"mem": 0.5
16+
}
50 KB
Binary file not shown.

0 commit comments

Comments
 (0)