Jim Downie
10/27/2025, 9:42 AM@PG, @SQ) lines, as these would also be something we might want to use. What would be the best approach to modify the module? Options to me seem to be either a) we just add these features as extra outputs to the module, keeping the name for backwards compatibility, or b) we deprecate the module and replace it with something called like SAMTOOLS_SPLITHEADER, which has the same functionality plus a bit more.
Tagging @Matthias De Smet as you're listed as the maintainer in the meta.yml !Jim Downie
10/27/2025, 9:42 AMsamtools \\
view \\
-H \\
$args \\
$input \\
| tee \\
>( grep '^@RG' > readgroups.txt ) \
>( grep '^@PG' > programs.txt ) \
>( grep '^@SQ' > sequences.txt ) \
> /dev/nullMatthias De Smet
10/27/2025, 9:44 AMJim Downie
10/27/2025, 9:47 AMSimon Pearce
10/27/2025, 10:45 AMSimon Pearce
10/27/2025, 10:46 AMArthur
10/28/2025, 12:08 AMoutput:
tuple val(meta), path('*.txt'), emit: tag_files
| tee \\
>( grep '^@RG' > readgroups.txt ) \
>( grep '^@PG' > programs.txt ) \
>( grep '^@SQ' > sequences.txt ) \
${args2} \
> /dev/null
Where args2 can be e.g. >( grep '^@TT' > tt.txt