Skip to content

Commit

Permalink
Fixed linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Jan 11, 2024
1 parent ed20eae commit fc2856b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions modules/local/samplesheet_check/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// MIT: https://github.com/nf-core/rnaseq/blob/master/LICENSE
//
// Changes:
// Added channel permissible_target_assemblies
// Added channel permissible_target_assemblies

process SAMPLESHEET_CHECK {
tag "$samplesheet"
Expand Down Expand Up @@ -37,4 +37,4 @@ process SAMPLESHEET_CHECK {
python: \$(python --version | sed 's/Python //g')
END_VERSIONS
"""
}
}
10 changes: 5 additions & 5 deletions modules/local/validate_params.nf
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
def validateParams(params) {
validateFastaTags(params)

if (!params['repeat_annotator']) {
error "Error: repeat_annotator must be either 'repeatmodeler' or 'edta'"
}

if ( !(params['repeat_annotator'] in ['repeatmodeler', 'edta']) ) {
error "Error: repeat_annotator must be either 'repeatmodeler' or 'edta'"
}

validateTETags(params)
validateTEFastaCorrespondence(params)

Expand Down Expand Up @@ -67,7 +67,7 @@ def validateTEFastaCorrespondence(params) {
if(!params["te_libraries"]) {
return
}

def listOfTETuples = params["te_libraries"]
def listOfFastaTuples = params["target_assemblies"]

Expand All @@ -84,7 +84,7 @@ def validateTEFastaCorrespondence(params) {
def validateRiboDBManifest(params) {
if (params.remove_ribo_rna) {
file_ribo_db = file(params.ribo_database_manifest, checkIfExists: true)

if (file_ribo_db.isEmpty()) {exit 1, "File provided with --ribo_database_manifest is empty: ${file_ribo_db.getName()}!"}
}
}
Expand All @@ -101,4 +101,4 @@ def validateLiftoffXrefs(params) {

def isNotListOfLists(thisOne, subListSize) {
return (!(thisOne instanceof List) || thisOne.isEmpty() || thisOne.any { !(it instanceof List) || it.size() != subListSize })
}
}

0 comments on commit fc2856b

Please sign in to comment.