sub filter_by_Species
{
print 'New Blast File Opened
';
open(my $newalign, '<', "blast_files/$newBlastFile") or die $!;
print 'Filtering Data........Please wait
'; my @subjects; while <$newalign> { push @subjects, $_ if (/^>gi/) } print '
| Status | '; print 'Information on new hits | '; for (@subjects) { chomp; my @elements = split '\|'; if($elements[-1] =~ /$species_filter/) { print "
|---|
| Match to $species_filter"; show_Output(0, $_, @elements); } } print' |