Skip to content

Commit 0723238

Browse files
committed
Allow no fasta during param checks
1 parent c4a416d commit 0723238

File tree

1 file changed

+8
-2
lines changed
  • subworkflows/local/utils_nfcore_rnaseq_pipeline

1 file changed

+8
-2
lines changed

subworkflows/local/utils_nfcore_rnaseq_pipeline/main.nf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,14 @@ def validateInputParameters() {
180180

181181
genomeExistsError()
182182

183-
if (!params.fasta) {
184-
error("Genome fasta file not specified with e.g. '--fasta genome.fa' or via a detectable config file.")
183+
if (
184+
!params.fasta &&
185+
(
186+
! params.skip_alignment || // Alignment needs fasta
187+
! params.transcript_fasta // Dynamically making a transcript fasta needs the fasta
188+
)
189+
) {
190+
error("Genome fasta file not specified with e.g. '--fasta genome.fa' or via a detectable config file. You must supply a genome FASTA file or use --skip_alignment and provide your own transcript fasta using --transcript_fasta for use in quantification.")
185191
}
186192

187193
if (!params.gtf && !params.gff) {

0 commit comments

Comments
 (0)