cover all use cases

This commit is contained in:
MaxUlysse 2022-06-03 15:37:10 +02:00
parent f1a5cc07db
commit f9ac4e28e9

View file

@ -26,11 +26,7 @@ process TIDDIT_SV {
def prefix = task.ext.prefix ?: "${meta.id}" def prefix = task.ext.prefix ?: "${meta.id}"
def reference = fasta ? "--ref $fasta" : "" def reference = fasta ? "--ref $fasta" : ""
""" """
for i in `ls ${bwa_index}` [[ -d $bwa_index ]] && for i in `ls $bwa_index`; do [[ -f $fasta && ! "\$i" =~ .*"$fasta".* ]] && ln -s $bwa_index/\$i ${fasta}.\${i##*.} || ln -s $bwa_index/\$i \$i; done
do
ln -s ${bwa_index}/\$i ${fasta}.\${i##*.}
done
tiddit \\ tiddit \\
--sv \\ --sv \\