- or download this
## open the file and read in data
my $list_file = '/g/Viruses/prophage_data/emptySeqList_aa.txt';
...
$geneids_to_remove->{$1} = 1; # store geneids in a hash
})
//gx;
- or download this
#### Per line ####
my $ptt_file="/g/Viruses/prophage_data/prophage_region.ptt1";
...
}
}
close ($fh);
- or download this
#### One big regex ####
## don't do this and the previous
...
## don't want to destroy the string as you search
$text =~ s/$rx_rm_lines//g;
- or download this
## write out saved data
open ($fh, '>', $outfile);
print $fh $saved_lines;
close ($fh);