Niklas Schandry
09/03/2025, 8:18 AM-dump-channels with nextflow run , is there a way to capture the dumped channels to a file while keeping the standard pipeline outputs in stdout / terminal?Mahesh Binzer-Panchal
09/03/2025, 8:28 AMnextflow run ... | tee >( grep "DUMP" > dumped.output )Niklas Schandry
09/03/2025, 8:30 AMMahesh Binzer-Panchal
09/03/2025, 8:32 AMNiklas Schandry
09/03/2025, 8:32 AM-dump-channels-to-fileMahesh Binzer-Panchal
09/03/2025, 8:35 AM.nextflow.log. Why is it a problem it's to screen when you need it?Niklas Schandry
09/03/2025, 8:42 AMThomas Danhorn
09/03/2025, 6:19 PMgrep -vFe '[DUMP]' shows everything that does not contain "[DUMP]", so you could use Mahesh's idea of redirecting to a file and then filter the standard output, or even direct everything to a file and filter the output, e.g.: nextflow run ... | tee my.log | grep -vFe '[DUMP]' -- you have all of STDOUT (including dump) in the log file, while showing only the typical output on the screen. (If you want the STDERR in the log as well, you can use 2>&1.)