Skip to content

Commit

Permalink
reduced size of command
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung committed May 21, 2024
1 parent 738cb1d commit c2a7217
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/local/fastani.nf
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ process fastani {
shell:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def ref = genomes.join(",")
def ends = genomes.collect { it.Name[-6..-1] }.flatten().unique().join(' *')
"""
mkdir -p fastani logs/${task.process}
log_file=logs/${task.process}/${prefix}.${workflow.sessionId}.log
echo ${ref} | tr "," "\\n" | sort > reference_list.txt
ls *${ends} | grep -v ${contigs} | sort > reference_list.txt
fastANI ${args} \
--threads ${task.cpus} \
Expand Down

0 comments on commit c2a7217

Please sign in to comment.