Help for this page

Select Code to Download


  1. 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;
    
  2. or download this
    #### Per line ####
    my $ptt_file="/g/Viruses/prophage_data/prophage_region.ptt1";
    ...
      }    
    }
    close ($fh);
    
  3. 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;
    
  4. or download this
    ## write out saved data
    open ($fh, '>', $outfile);
    print $fh $saved_lines;
    close ($fh);