Dear all,
I have converted a BAM file into paired fastq files with:
bamToFastq --bam {file}.bam -fq {file}_1.fq -fq2 {file}_2.fq
Now I need to obtain a fasta file from these. I can see that EMBOSS' seqret and FASTX-Toolkit's fastq_to_fasta can do that; the manual for the operation are given for instance here:
seqret -sequence reads.fastq -outseq reads.fasta
fastq_to_fasta ... -i {file}.fq -o {file}.fa
However, the syntax os for a single fastq file input. How do I apply them on paired fastq files?
Won't a loose information by doing it independently?
You are only stripping away the quality scores not touching the sequence. If your files are not in sync then you would want to use
repair.sh
first.