I have two files.One file contains blast result of contigs and the next file contains the contigs that are used for blast.I want an output text file of sequences in a separate folder which gives no hits in blast result from original fasta file with all contigs. I have no idea about this.Can you please help me to create perl script for this problem.
Can you provide a short sample for each of the files?
BLAST RESULT FILE
CONTIG FILE
If the blast output is in tabular format, you can extract headers from your contig fasta file to
headers.txt
file, and simply use agrep -v -F -f headers.txt blast.tab
to extract all contigs that are not present in blast file. But, as roy.granit has pointed out, it could be helpful to provide an example of input and desired output files. If I understand well the problem, its not necessary to write a perl script, but of course it can be solved also with perl.Above mentioned are the blast result file and the contig file
contig2 and contig 3 show no blast hits so I need to extract these 2 contig sequences into a separate text file