Write a function reconstruction that takes three arguments: i) an integer $$k$$ ($$k \geq 2$$), ii) the location of a FASTA file containing a collection of $$k$$-mers $$C_\text{DNA}$$ and iii) another file location. The function must write a DNA string with $$k$$-mer composition equal to $$C_\text{DNA}$$ to the FASTA file whose location is passed as the third argument. If multiple such DNA strings exist, the function may generate any one of these.
In the following interactive session, we assume the FASTA files data01.fna1 and output01.fna2 to be located in the current directory.
>>> reconstruction(4, 'data01.fna', 'output01.fna') >>> print(open('output01.fna').read().rstrip()) >seq01 GGCTTACCA