Convert FASTA to FASTQ with dummy quality scores I have a FASTA file which I would like to convert into FASTQ format as the tool I want to use my data in requires it in FASTQ format. So dummy quality scores are fine.

Note: I am not using any functionality of the tool that will require the quality score.
A simple Biopython solution:
from Bio import SeqIO

for r in SeqIO.parse(&quot;myfile.fa&quot;, &quot;fasta&quot;):
    r.letter_annotations[&quot;solexa_quality&quot;] = [40] * len(r)
    print(r.format(&quot;fastq&quot;), end='')

Example:
$ cat &lt;&lt; EOF &gt; myfile.fa 
&gt;1
ATG
&gt;2
ATGTAGA
EOF
$ python3 myscript.py 
@1
ATG
+
III
@2
ATGTAGA
+
IIIIIII