I have fastq files with paired reads and also reads whose member of the pair is absent.
Eg:
R1.fq
@HWI:xxxxxxxxxxxxx/1
@HWI:xxxxxxxxxxxxy
Eg:
@HWI:xxxxxxxxxxxxx/2
@HWI:xxxxxxxxxxxyx
When tried to align using bwa, it throws an error saying member of the mate pair absent
How do I align these fastq files? Note that these fastq files were created from a previously aligned bams using picard tools.
Thanks, The tool created a merged R1_R2 paired file and another file with orphan reads. Is there any other script that you have written that splits the merged file into R1 and R2 respectively as that would be necessary for alignment. There needs to be two different files [R1 and R2] during alignment.
The
pairfq makepairs
command creates separate files that are in order, thepairfq joinpairs
command will interleave the pairs. The command you want for splitting the pairs from an interleaved file ispairfq splitpairs
(see the wiki for that command for more info). Just for reference, you can typepairfq
and it will list all the commands, and a description of the basic usage can be found on the wiki home page. Feel free to ask me questions, or post them online under the "issues" tab.Thanks, The singles are combined or are they printed out in different files as well?
If you are referring to the
pairfq makepairs
command, the singleton reads from each pair are written to separate files (explained here).I tried the script. I got the pairs separate but I could not get them in order.
R1.fq
haswhile
R2.fq
hasIs there a way that this program sorts them?