Merging mapping results
1
0
Entering edit mode
9.2 years ago
bpz ▴ 60

Hello

I think this is a silly question, nonetheless I need help with this issue :p

I have several bam files that I have obtained from some mapping procedures I have done with bwa, and I have retrieved the fastq sequences from these files.

So, I need to put all the fastq sequences in one file, but without repetitions. (If one read was a hit in all mappings I need to have it only once in the final file; if another appeared in just two mappings; again, I need it only once... you get the picture).

Thanks in advance.

Mapping Assembly • 1.4k views
ADD COMMENT
0
Entering edit mode

grep read names from fastq_file_1 into file_list, then grep read names from fastq_file_2 and add them to the same file_list... do it for all your samples, remove duplicates, and extract the reads with seqtk.

ADD REPLY
0
Entering edit mode
9.2 years ago

Just put them all in one file and filter out duplicates, see this thread:

How To Remove The Same Sequences In The Fasta Files?

ADD COMMENT

Login before adding your answer.

Traffic: 1584 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6