Skip to content

Commit db70187

Browse files
committed
allow to generate the payload for oxog metrics file only
1 parent 3a0ab60 commit db70187

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

tools/payload-gen-dna-seq-qc/payload-gen-dna-seq-qc.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424

2525
nextflow.enable.dsl=2
26-
version = '0.5.2.0'
26+
version = '0.5.3.0'
2727

2828
params.seq_experiment_analysis = ""
2929
params.qc_files = []

tools/payload-gen-dna-seq-qc/payload-gen-dna-seq-qc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ def calculate_md5(file_path):
5050

5151
def get_aligned_seq_basename(qc_files):
5252
# get aligned bam/cram basename from '*.wgs.grch38.(cram|bam).qc_metrics.tgz'
53+
# or '*.wgs.grch38.(cram|bam).oxog_metrics.tgz'
5354
for f in qc_files:
54-
m = re.match(r'(.+?\.(cram|bam))\.qc_metrics\.tgz$', f)
55+
m = re.match(r'(.+?\.(cram|bam))\.(qc_metrics|oxog_metrics)\.tgz$', f)
5556
if m: return(m.group(1))
5657

57-
sys.exit('Error: missing DNA alignment QC metrics file with patten: *.{bam,cram}.qc_metrics.tgz')
58+
sys.exit('Error: missing DNA alignment QC metrics or oxog metrics file with patten: *.{bam,cram}.{qc_metrics, oxog_metrics}.tgz')
5859

5960

6061
def insert_filename_friendly_rg_id(metadata):
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"seq_experiment_analysis": "data/89176bbc-ffca-4d73-984a-4a92ed931a98.sequencing_experiment.4.analysis.json",
3+
"qc_files": [
4+
"data/SA610149.3.20200214.wgs.grch38.cram.oxog_metrics.tgz"
5+
],
6+
"publish_dir": "output",
7+
"cpus": 1,
8+
"mem": 0.5
9+
}

0 commit comments

Comments
 (0)