Skip to content

Commit

Permalink
Fix DRAM counter bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mberacochea committed Aug 8, 2024
1 parent 4f13041 commit 095e71f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/local/dram/distill.nf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ process DRAM_DISTILL {
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def VERSION = '1.3.5' // WARN: dram has no option to print the tool version. This is the container version

"""
if [[ "${in_type}" == "community" ]]; then
echo ",fasta,scaffold,gene_position,start_position,end_position,strandedness,rank,kegg_id,kegg_hit,pfam_hits,cazy_hits,bin_taxonomy" | sed 's/,/\t/g' > dram_input.tsv
Expand All @@ -59,7 +58,7 @@ process DRAM_DISTILL {
counter=0
# Loop through each product_*.html files #
for productfile in dram_out/product*.html; do
mv "\$productfile" "${prefix}_${tool}_${in_type}_${counter}_dram.html"
mv "\$productfile" "${prefix}_${tool}_${in_type}_\$counter_dram.html"
counter=\$((counter + 1))
done
Expand Down

0 comments on commit 095e71f

Please sign in to comment.