How to extract few files from output channel which names match a string? #2011
Replies: 3 comments 2 replies
-
Hi, If you want to keep all files, you could split them into separate channels using the
|
Beta Was this translation helpful? Give feedback.
-
Thanks @phue . The following code works for me. |
Beta Was this translation helpful? Give feedback.
-
Needing some extra guidance on filtering an entire tuple based on one value. I used this discussion to get part-way. I have a channel of tuples (reads_ch):
I am trying to filter this for any sample that did not 'fail'. I've gotten as far as clearing it[3] but haven't figured out how to remove that sample. while keeping the structure of the remaining samples (S1,S2) Goal:
Attempt:
|
Beta Was this translation helpful? Give feedback.
-
Hi, I have a process that generates multiple output. I need few files in one of the subsequent processes.
from qc1_chr I need some files which names match a string (say, qc1_chr has 200 files, and only 22 file names have a string 'step10').
I tried with 'filter' operator but failed.
qc1_chr.filter(~/*step10*/) into qc2
But it does not work.How could I extract those files into a new channel? Thanks in advance. Best, Zillur
Beta Was this translation helpful? Give feedback.
All reactions