# Giant Virus Finder, a software package to find giant viruses in metagenomes.
# Copyright (C) 2015, Csaba Kerepesi

# These files are parts of Giant Virus Finder.

# Giant Virus Finder is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details: <http://www.gnu.org/licenses/>.

# For any other inquiries send an Email to Csaba Kerepesi: kerepesi@caesar.elte.hu
# Giant Virus Finder website: http://pitgroup.org/giant-virus-finder

# $ARGV[0]: target dir
# $ARGV[1]: cutoff
# Run: perl blastx-Multi.pl Giants-in-Kutch-megablast-w16-blastn-w7 0.2

open IN,"mgm.list";
while (<IN>) {
    chomp;
    system("~/ncbi-blast-2.2.30+/bin/blastx -show_gis -query $ARGV[0]/phase2-results/reblast-$_.blast-GiantVirusFinder-$ARGV[1].fasta -db ~/ncbi-blast-2.2.30+/db/nr -out $ARGV[0]/phase2-results/reblast-$_.blast-GiantVirusFinder-$ARGV[1].fasta-blastx-GIs.blast &");
}
close IN;

