Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow cat_cat to retain double file extensions for .gz files (nf-core…
…#4230) * Retain double file extensions for .gz files - Adds logic to capture file extensions that preceed `.gz`, e.g. `.fasta.gz` and use this double extension as the suffix for the output file. - Updates tests accordingly. * Re-add cat/cat entry to pytest_modules.yml * Simplify code to extract double .gz file extensions Instead of a conditional check using a regex capture group and a nested lastIndexOf() extraction for double extensions `.xxxxx.gz`, this update searches for a regex match and directly adds it as a suffix if there is a match, and uses the existing lastIndexOf() method to capture a single file extension otherwise. Co-authored-by: Matthias Hörtenhuber <[email protected]> * [automated] Fix linting with Prettier * Moved the function outside of the process block * bugfix: missing closing bracket * Reordered the lines to make the diff shorter * Changed the tests to regular snapshots so that we can see and check the output file name --------- Co-authored-by: Matthias Hörtenhuber <[email protected]> Co-authored-by: nf-core-bot <[email protected]> Co-authored-by: Matthieu Muffato <[email protected]>
- Loading branch information