Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use more portable /usr/bin/env perl for scripts #25

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cd-hit-2d-para.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!/usr/bin/env perl
# =============================================================================
# CD-HIT
# http://cd-hit.org/
Expand All @@ -11,6 +11,7 @@
# Email liwz@sdsc.edu
# =============================================================================

use warnings;
use strict;
no strict "refs";

Expand Down
2 changes: 1 addition & 1 deletion cd-hit-auxtools/cd-hit-dup-PE-out.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

my $script_name = $0;
my $script_dir = $0;
Expand Down
2 changes: 1 addition & 1 deletion cd-hit-div.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

#not like cd-hit-div, this script do not sort input
#or throw away seq
Expand Down
3 changes: 2 additions & 1 deletion cd-hit-para.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!/usr/bin/env perl
# =============================================================================
# CD-HIT
# http://cd-hit.org/
Expand All @@ -11,6 +11,7 @@
# Email liwz@sdsc.edu
# =============================================================================

use warnings;
use strict;
no strict "refs";

Expand Down
2 changes: 1 addition & 1 deletion clstr2tree.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

$clstr = shift;
$fr = shift; # for nr80.clstr $fr = 0.8
Expand Down
2 changes: 1 addition & 1 deletion clstr2txt.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

my $no = 0;
my $clstr_no = "";
Expand Down
2 changes: 1 addition & 1 deletion clstr2xml.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

#usage: clstr_xml.pl [-len|-size] level1.clstr [level2.clstr level3.clstr ...]
#purpose: to create xml file from cd-hit or hierarchical cd-hit(h-cd-hit) results
Expand Down
2 changes: 1 addition & 1 deletion clstr_cut.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

#keep only top $no proteins in cluster

Expand Down
2 changes: 1 addition & 1 deletion clstr_merge.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

# the order of clusters need to be identical
my ($master_clstr, @clstr) = @ARGV;
Expand Down
2 changes: 1 addition & 1 deletion clstr_merge_noorder.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

# order of clusters don't need to be the same
# but then I have to read everything into memory
Expand Down
2 changes: 1 addition & 1 deletion clstr_quality_eval.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

## calculate the sensitivity and specificity of clusters
## if the input fasta file has pre-defined classification term
Expand Down
2 changes: 1 addition & 1 deletion clstr_quality_eval_by_link.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

## calculate the sensitivity and specificity of clusters
## if the input fasta file has pre-defined classification term
Expand Down
2 changes: 1 addition & 1 deletion clstr_reduce.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl


$file90 = shift;
Expand Down
2 changes: 1 addition & 1 deletion clstr_renumber.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
$no = 0;
while($ll=<>){
if ($ll =~ /^>Cluster (\d+)/) {
Expand Down
2 changes: 1 addition & 1 deletion clstr_rep.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

$rep = "";
$no = 0;
Expand Down
2 changes: 1 addition & 1 deletion clstr_reps_faa_rev.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
# output single fasta file
# for each cluster output at least $cutoff seqs

Expand Down
2 changes: 1 addition & 1 deletion clstr_rev.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
# if nr90 from nr100 and
# nr80 from nr90, so I have nr90.clstr and nr80.clstr
# but, in nr80.clstr, some gi numbers whose from nr100 are there
Expand Down
2 changes: 1 addition & 1 deletion clstr_select.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

#my $by = shift;
my $min;
Expand Down
2 changes: 1 addition & 1 deletion clstr_select_rep.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

#my $by = shift;
my $min;
Expand Down
2 changes: 1 addition & 1 deletion clstr_size_histogram.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

if(@ARGV==0){
print "Usage:\n\tclstr_size_histogram.pl [-bin N] clstr_file\n";
Expand Down
2 changes: 1 addition & 1 deletion clstr_size_stat.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

if(@ARGV==0){
print "Usage:\n\tclstr_size_stat.pl clstr_file\n";
Expand Down
2 changes: 1 addition & 1 deletion clstr_sort_by.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

my $sort_by_what = shift;
$sort_by_what = "no" unless $sort_by_what;
Expand Down
2 changes: 1 addition & 1 deletion clstr_sort_prot_by.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

my $sort_by = shift;
$sort_by = "len" unless ($sort_by);
Expand Down
2 changes: 1 addition & 1 deletion clstr_sql_tbl.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

if(@ARGV==0){
print "Usage:\n\tclstr_sql_tbl.pl clstr_file tbl_file\n";
Expand Down
2 changes: 1 addition & 1 deletion clstr_sql_tbl_sort.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

if(@ARGV==0){
print "Usage:\n\tclstr_sql_tbl_sort.pl table_file level\n";
Expand Down
2 changes: 1 addition & 1 deletion make_multi_seq.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

#note you have to use "-d 0" in the cd-hit run
#note you better to use "-g 1" in the cd-hit run
Expand Down
2 changes: 1 addition & 1 deletion plot_2d.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

use Image::Magick;

Expand Down
2 changes: 1 addition & 1 deletion plot_len1.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

$file90 = shift;
$segs = shift;
Expand Down
2 changes: 1 addition & 1 deletion psi-cd-hit/cd-hit-div.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

#not like cd-hit-div, this script do not sort input
#or throw away seq
Expand Down
2 changes: 1 addition & 1 deletion psi-cd-hit/clstr_select_rep.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

my $by = shift;
my $min;
Expand Down
2 changes: 1 addition & 1 deletion psi-cd-hit/clstr_select_seq.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

my $by = shift;
my $min;
Expand Down
2 changes: 1 addition & 1 deletion psi-cd-hit/fetch_fasta_by_ids.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

my ($gi_file, $seq_file) = @ARGV;

Expand Down
2 changes: 1 addition & 1 deletion psi-cd-hit/fetch_fasta_exclude_ids.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

my ($gi_file, $seq_file) = @ARGV;

Expand Down
2 changes: 1 addition & 1 deletion psi-cd-hit/psi-2d.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl


my $script_name = $0;
Expand Down
3 changes: 2 additions & 1 deletion psi-cd-hit/psi-cd-hit-local.pl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/perl -w
#!/usr/bin/env perl
################################################################################
######### PSI-cd-hit written by Weizhong Li at http://cd-hit.org
################################################################################
use warnings;
our $pid = $$;
our $db_in = ""; ###################
our $db_out = ""; # input / output
Expand Down
4 changes: 3 additions & 1 deletion psi-cd-hit/psi-cd-hit.pl
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/usr/bin/perl -w
#!/usr/bin/env perl
################################################################################
######### PSI-cd-hit written by Weizhong Li at http://cd-hit.org
################################################################################

use warnings;

our $script_name = $0;
our $script_dir = $0;
$script_dir =~ s/[^\/]+$//;
Expand Down