Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
luisas committed Oct 25, 2024
1 parent 91dead1 commit a22a92d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conf/modules_alphafold2.config
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ if (params.alphafold2_mode == 'split_msa_prediction') {
if(params.use_gpu) { accelerator = 1 }
ext.args = params.use_gpu ? '--use_gpu_relax=true' : '--use_gpu_relax=false'
publishDir = [
[
[
path: { "${params.outdir}/alphafold2_${params.alphafold2_mode}" },
mode: 'copy',
saveAs: { filename -> filename.equals('versions.yml') ? null : filename },
Expand Down
2 changes: 1 addition & 1 deletion conf/test_split_fasta.config
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ process {
withName: 'MMSEQS_COLABFOLDSEARCH|COLABFOLD_BATCH' {
container = 'biocontainers/gawk:5.1.0'
}
}
}
6 changes: 3 additions & 3 deletions subworkflows/local/utils_nfcore_proteinfold_pipeline/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -235,17 +235,17 @@ def cleanHeader(header) {
}

def validateFasta(fasta) {
// extract headers
// extract headers
def headers = fasta.findAll { it.startsWith('>') }
// if headers are not unique, throw an error
if (headers.size() != headers.unique().size()) {
throw new Exception("Invalid FASTA file. The headers are not unique.")
}
// check headers that are malformed
// check headers that are malformed
headers.each { header ->
if (header =~ /[ \t;,]/) {
// warn user that the header contains special characters
log.warn "The header ${header} contains special characters. They have been automatically removed."
}
}
}
}

0 comments on commit a22a92d

Please sign in to comment.