Skip to content

Commit

Permalink
Fix problem with bwt index path in ciriquant
Browse files Browse the repository at this point in the history
  • Loading branch information
nictru committed Sep 26, 2023
1 parent 2fb0e50 commit 5b29652
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/local/ciriquant/yml/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ process CIRIQUANT_YML {
task.ext.when == null || task.ext.when

script:
bwa_prefix = fasta.toString() == 'genome.fa' ? fasta.toString() : fasta.toString() - ~/.(fa|fasta)$/
hisat2_prefix = fasta.toString() - ~/.(fa|fasta)$/
fasta_path = fasta.toRealPath()
gtf_path = gtf.toRealPath()
Expand All @@ -31,7 +30,11 @@ process CIRIQUANT_YML {
STRINGTIE=`which stringtie`
SAMTOOLS=`which samtools`
# Get first file in bwa index directory
BWA_FILE=`ls ${bwa_path}/*.bwt`
BWA_FILE=`basename \$BWA_FILE .bwt`
touch travis.yml
printf "name: ciriquant\ntools:\n bwa: \$BWA\n hisat2: \$HISAT2\n stringtie: \$STRINGTIE\n samtools: \$SAMTOOLS\n\nreference:\n fasta: ${fasta_path}\n gtf: ${gtf_path}\n bwa_index: ${bwa_path}/${bwa_prefix}\n hisat_index: ${hisat2_path}/${hisat2_prefix}" >> travis.yml
printf "name: ciriquant\ntools:\n bwa: \$BWA\n hisat2: \$HISAT2\n stringtie: \$STRINGTIE\n samtools: \$SAMTOOLS\n\nreference:\n fasta: ${fasta_path}\n gtf: ${gtf_path}\n bwa_index: ${bwa_path}/\$BWA_FILE\n hisat_index: ${hisat2_path}/${hisat2_prefix}" >> travis.yml
"""
}

0 comments on commit 5b29652

Please sign in to comment.