diff --git a/subworkflows/local/align_cellrangermulti.nf b/subworkflows/local/align_cellrangermulti.nf index f853c001..977bf478 100644 --- a/subworkflows/local/align_cellrangermulti.nf +++ b/subworkflows/local/align_cellrangermulti.nf @@ -43,7 +43,11 @@ workflow CELLRANGER_MULTI_ALIGN { vdj: meta.feature_type == "vdj" return [ meta, fastq ] ab: meta.feature_type == "ab" - return [ meta, fastq ] + if (params.fb_reference){ + return [ meta, fastq ] + } else { + error ("Antibody reference was not specified. Please provide a reference file for feature barcoding (e.g. antibody measurements).\nPlease refer to https://www.10xgenomics.com/support/software/cell-ranger/latest/analysis/inputs/cr-feature-ref-csv for more details.") + } beam: meta.feature_type == "beam" return [ meta, fastq ] crispr: meta.feature_type == "crispr"