Skip to content

Commit

Permalink
Explicitly define all gridss index files to be symlinked
Browse files Browse the repository at this point in the history
Accomodates users using externally created GRIDSS indexes that may contain clashing file names.
  • Loading branch information
casslitch committed Jun 5, 2024
1 parent 3913694 commit 6a26bee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/local/svprep/assemble/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ process GRIDSS_ASSEMBLE {
done
# Symlink indices next to assembly FASTA
ln -s \$(find -L ${genome_gridss_index} -type f) ./
ln -s \$(find -L ${genome_gridss_index} -regex '.*\.\(amb\|ann\|pac\|gridsscache\|sa\|bwa\|img\|alt\)') ./
# Run
gridss_svprep \\
Expand Down
2 changes: 1 addition & 1 deletion modules/local/svprep/call/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ process GRIDSS_CALL {
shadow_input_directory ${assemble_dir}
# Symlink indices next to assembly FASTA
ln -s \$(find -L ${genome_gridss_index} -type f) ./
ln -s \$(find -L ${genome_gridss_index} -regex '.*\.\(amb\|ann\|pac\|gridsscache\|sa\|bwa\|img\|alt\)') ./
# Run
gridss_svprep \\
Expand Down
2 changes: 1 addition & 1 deletion modules/local/svprep/preprocess/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ process GRIDSS_PREPROCESS {

"""
# Symlink indices next to assembly FASTA
ln -s \$(find -L ${genome_gridss_index} -type f) ./
ln -s \$(find -L ${genome_gridss_index} -regex '.*\.\(amb\|ann\|pac\|gridsscache\|sa\|bwa\|img\|alt\)') ./
gridss_svprep \\
${args} \\
Expand Down
2 changes: 1 addition & 1 deletion modules/local/virusbreakend/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ process VIRUSBREAKEND {

"""
# Symlink indices next to assembly FASTA
ln -s \$(find -L ${genome_gridss_index} -type f -name *.gridsscache -o -name *.img) ./
ln -s \$(find -L ${genome_gridss_index} -regex '.*\.\(amb\|ann\|pac\|gridsscache\|sa\|bwa\|img\|alt\)') ./
virusbreakend \\
${args} \\
Expand Down

0 comments on commit 6a26bee

Please sign in to comment.