add special case for BAM files

This commit is contained in:
Björn Grüning
2025-09-25 16:05:34 +02:00
committed by mvdbeek
parent 3481880c41
commit 117a793412
@@ -55,6 +55,9 @@
#set $cleaned_name = str($count + 1) + '_' + re.sub('[^\w\-\.\s]', '_', str($file.element_identifier))
echo "[`date`] - Linking '$file' to '/home/rstudio/galaxy_inputs/${cleaned_name}.${file.ext}'" &&
ln -sf '$file' '/home/rstudio/galaxy_inputs/${cleaned_name}.${file.ext}' &&
#if $file.ext == 'bam':
ln -s '$file.metadata.bam_index' '/home/rstudio/galaxy_inputs/${cleaned_name}.bam.bai' &&
#end if
#end for
#else
echo "[`date`] - No input files provided, skipping file linking step." &&