I have a FASTA file, how can i convert it to a FASTQ file via command line or by any online converter. The existing online converter is giving error and is unable to parse my fasta file.
The FastQ formats contains, in addition to the sequence information, also information on the quality of the sequencing read (see http://maq.sourceforge.net/fastq.shtml). In contrast, the FastA format contains only the sequence information and lacks the quality information. Therefore, you cannot produce a proper FastQ file from a FastA file.
(You could produce dummy FastQ files with the real sequence and a constant dummy quality score score for each position)
The FastQ formats contains, in addition to the sequence information, also information on the quality of the sequencing read (see http://maq.sourceforge.net/fastq.shtml). In contrast, the FastA format contains only the sequence information and lacks the quality information. Therefore, you cannot produce a proper FastQ file from a FastA file.
(You could produce dummy FastQ files with the real sequence and a constant dummy quality score score for each position)
you could use things like ART (https://www.niehs.nih.gov/research/resources/software/biostatistics/art/) and there is also a command in EMBOSS i dont remember the name. they take a fasta in and give fastq out
sorry, I wasn't clear: I converted the fasta file of the human mitochondrion into two paired fastq files. ART provides a simulated quality profile that is fed into the fastq files.
Annemarie Honegger Hi! I saw that Luigi did not get the point that fasta can't be converted to fastq to be used in any practical use except for the simulation studies. But I did not get the point how did you suggest to use BWA tool to get fastQ output from fastA input, even using a reference genome in fastA fomat.
@Abhijeet Singh, I was not suggesting to use BWA to convert fastA to fastQ, but referring to the fact that in order to align sequencing reads to a reference sequence in BWA, you import the reference sequence in fastA format and the sequencing reads in fastq format, making it unnecessary to convert the reference sequence.