I have to combine the output of two different channels like these:
first_output = Channel.from(['H100_BDNA', 'sed'], ['H100_nova', 'rip'], ['H100_hiseq', 'bam2'])
second_output= Channel.from(['pAdna', 'H100_hiseq', '11'], ['pAsc', 'H100_BDNA', '45'], ['iMes', 'H100_BDNA', '58'], ['pAsc1', 'H100_nova', '23'])
The wanted result should be:
['pAdna', 'H100_hiseq', '11', 'bam2'],
['pAsc', 'H100_BDNA', '45', 'sed'],
['iMes', 'H100_BDNA', '58', 'sed'],
['pAsc1', 'H100_nova', '23', 'rip']
That means joining the Channels by a common key represented by the first element of the tuple in the first output and the second element in the second channel. I tried a lot of operators but no-one works. How can I do it?