Entering edit mode
6.9 years ago
lessismore
★
1.4k
Hey all, a question about a problem in formatting. I have this table, i would like to filter it based on the genes that have matches (if they have, the matches are present in the lines below them until the next gene).
>gene1
match1
match2
match3
>gene2
>gene3
match1
match2
match3
>gene4
>gene5
>gene6
Desired output:
>gene1 match1
>gene1 match2
>gene1 match3
>gene3 match1
>gene3 match2
>gene3 match3
lessismore : Please accept (green check mark) answers for this and your past questions (you can select multiple answers) to validate them.