diff --git a/_SRAtoFastqgz/1.1.3FastqgzNamed_selectAll_notGlob.wdl b/_SRAtoFastqgz/1.1.3FastqgzNamed_selectAll_notGlob.wdl new file mode 100644 index 00000000..08c5579c --- /dev/null +++ b/_SRAtoFastqgz/1.1.3FastqgzNamed_selectAll_notGlob.wdl @@ -0,0 +1,68 @@ +version 1.0 + +task rename_fastq_files_based_on_size { + input { + Array[File] fastq_file_paths + String sample_name + String disk_space = "150 GB" + Int cpu = 1 + } + + command <<< + python3 <>> + + output { + String sample_name_out = sample_name + File r1 = "${sample_name}_S1_L001_R1_001.fastq.gz" + File r2 = "${sample_name}_S1_L001_R2_001.fastq.gz" + File? i1 = "${sample_name}_S1_L001_I1_001.fastq.gz" + # 如果有时候没有I1数据,就在命令中不处理或生成空文件,让其存在但不影响结果 + Array[File] renamed_fastq_files = select_all([i1, r1, r2]) + } + + runtime { + docker: "registry-vpc.miracle.ac.cn/gznl/ooaahhdocker/python_pigz:1.0" + cpu: cpu + disk: disk_space + } +} +