Skip to content

Commit

Permalink
sanitizing file name, help ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilchia committed May 11, 2024
1 parent f2ca885 commit 0d484e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/chewbbaca/AlleleCall.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
</macros>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
#import re
mkdir 'input' &&
mkdir 'schema' &&
#for $file in $input_file
ln -sf '$file' 'input/${file.element_identifier}.fa' &&
#set escaped_element_identifier = re.sub('[^\w\-]', '_', str($file.element_identifier))
ln -sf '$file' 'input/${escaped_element_identifier}.${file.ext}' &&
#end for
unzip '$input_schema' -d 'schema' &&
chewBBACA.py AlleleCall
Expand Down

0 comments on commit 0d484e8

Please sign in to comment.