Skip to content

Commit

Permalink
remove Subroutine that are now in Utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Juke34 committed Apr 27, 2020
1 parent f46aaf7 commit b4697bf
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 84 deletions.
17 changes: 0 additions & 17 deletions annotation/tools/comparative_genomic/gaas_orthomcl_analyzeOG.pl
Original file line number Diff line number Diff line change
Expand Up @@ -496,23 +496,6 @@ sub removeValueFromList{
splice(@$array, $index, 1);
}

sub sizedPrint{
my ($term,$size) = @_;
my $result; my $sizeTerm=length($term);
if ($sizeTerm > $size ){
$result=substr($term, 0,$size);
return $result;
}
else{
my $nbBlanc=$size-$sizeTerm;
$result=$term;
for (my $i = 0; $i < $nbBlanc; $i++){
$result.=" ";
}
return $result;
}
}

sub sortOGforFlatDisplay{
my ($hashOGref)=@_;
my %hashOGidSentence;
Expand Down
25 changes: 0 additions & 25 deletions annotation/tools/fasta/gaas_fasta_get_longestORF.pl
Original file line number Diff line number Diff line change
Expand Up @@ -162,31 +162,6 @@
my $end_run = time();
my $run_time = $end_run - $start_run;
print "Job done in $run_time seconds\n";
#######################################################################################################################
####################
# METHODS #
################
##############
############
##########
########
######
####
##

#check if reference exists in hash. Deep infinite : hash{a} or hash{a}{b} or hash{a}{b}{c}, etc.
# usage example: exists_keys($hash_omniscient,('level3','cds',$level2_ID)
sub exists_keys {
my ($hash, $key, @keys) = @_;

if (ref $hash eq 'HASH' && exists $hash->{$key}) {
if (@keys) {
return exists_keys($hash->{$key}, @keys);
}
return 1;
}
return '';
}

__END__
Expand Down
25 changes: 0 additions & 25 deletions bin/gaas_fasta_get_longestORF.pl
Original file line number Diff line number Diff line change
Expand Up @@ -162,31 +162,6 @@
my $end_run = time();
my $run_time = $end_run - $start_run;
print "Job done in $run_time seconds\n";
#######################################################################################################################
####################
# METHODS #
################
##############
############
##########
########
######
####
##

#check if reference exists in hash. Deep infinite : hash{a} or hash{a}{b} or hash{a}{b}{c}, etc.
# usage example: exists_keys($hash_omniscient,('level3','cds',$level2_ID)
sub exists_keys {
my ($hash, $key, @keys) = @_;

if (ref $hash eq 'HASH' && exists $hash->{$key}) {
if (@keys) {
return exists_keys($hash->{$key}, @keys);
}
return 1;
}
return '';
}

__END__
Expand Down
17 changes: 0 additions & 17 deletions bin/gaas_orthomcl_analyzeOG.pl
Original file line number Diff line number Diff line change
Expand Up @@ -496,23 +496,6 @@ sub removeValueFromList{
splice(@$array, $index, 1);
}

sub sizedPrint{
my ($term,$size) = @_;
my $result; my $sizeTerm=length($term);
if ($sizeTerm > $size ){
$result=substr($term, 0,$size);
return $result;
}
else{
my $nbBlanc=$size-$sizeTerm;
$result=$term;
for (my $i = 0; $i < $nbBlanc; $i++){
$result.=" ";
}
return $result;
}
}

sub sortOGforFlatDisplay{
my ($hashOGref)=@_;
my %hashOGidSentence;
Expand Down

0 comments on commit b4697bf

Please sign in to comment.