Login and get coding
You have received a list of DNA sequences for a specific gene in the FASTA file format (see Bite 298).
Your job is to collapse this FASTA file to a new FASTA file which contains only unique gene sequences and the headers for each entry are changed accordingly.
To make things more interesting the function not only accepts FASTA files but also gzipped FASTA files.
Watch out for edge cases as specified in the tests.
24 out of 27 users completed this Bite.
Will you be Pythonista #25 to crack this Bite?
Resolution time: ~107 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 8.0 on a 1-10 difficulty scale.
» Up for a challenge? 💪