Misa run1.pl: Difference between revisions
Jump to navigation
Jump to search
m New page: <source lang=perl> #! /usr/bin/perl -w # ************************************************************* # This Programme does the following in sequence # -> Open the misa results # -> Par... |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<source lang=perl> | <source lang=perl> | ||
#! /usr/bin/perl -w | #! /usr/bin/perl -w | ||
# ************************************************************* | # ************************************************************* | ||
# This Programme does the following in sequence | # This Programme does the following in sequence | ||
# -> | # -> Runs MISA | ||
# -> | # -> Produces 2 outfiles, one ssr and other statistics | ||
# Author: Author: Thomas Thiel ; Modified by Rajkumar (itc@rajkumar.in) | |||
# Release: JUL 2008 | |||
# Author: Rajkumar (itc@rajkumar.in) | |||
# ************************************************************* | # ************************************************************* | ||
# Libraries | # Libraries | ||
use strict; | use strict; | ||
# At the top: Time Start | |||
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); | |||
# Variables | # Variables | ||
my $path = "/home/raj/bio"; | my $path = "/home/raj/bio"; | ||
my $ssrdir = "$path/euca/ssr"; | my $ssrdir = "$path/euca/ssr/glo-gra-ssr"; | ||
my $ | my $infile = "$ssrdir/camal_grand.fa"; | ||
my $resdir = "$ssrdir/result"; | my $resdir = "$ssrdir/result"; | ||
# Running the File | |||
if (-e "$resdir") {`rm -fr $resdir`;} | |||
if (! -e "$resdir") {`mkdir $resdir`;} | |||
chdir $ssrdir; | |||
`./misa.pl $infile`; | |||
print "\n\ | # At the End: Time Calculation | ||
my ($sec_,$min_,$hour_,$mday_,$mon_,$year_,$wday_,$yday_,$isdst_) = localtime(time); | |||
my $days = $mday_-$mday; | |||
my $hours = $hour_-$hour; | |||
my $mins = $min_-$min; | |||
my $secs = $sec_-$sec; | |||
print "\n------------------------\nDuration: "; | |||
if ($days>0) { print "$days days";} | |||
if ($hours>0) { print ": $hours hours";} | |||
if ($mins>0) { print ": $mins mins";} | |||
if ($secs>0) { print ": $secs secs";} | |||
print "\n------------------------\n"; | |||
# END | # END | ||
</source> | </source> | ||
Latest revision as of 10:35, 30 December 2009
#! /usr/bin/perl -w
# *************************************************************
# This Programme does the following in sequence
# -> Runs MISA
# -> Produces 2 outfiles, one ssr and other statistics
# Author: Author: Thomas Thiel ; Modified by Rajkumar (itc@rajkumar.in)
# Release: JUL 2008
# *************************************************************
# Libraries
use strict;
# At the top: Time Start
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
# Variables
my $path = "/home/raj/bio";
my $ssrdir = "$path/euca/ssr/glo-gra-ssr";
my $infile = "$ssrdir/camal_grand.fa";
my $resdir = "$ssrdir/result";
# Running the File
if (-e "$resdir") {`rm -fr $resdir`;}
if (! -e "$resdir") {`mkdir $resdir`;}
chdir $ssrdir;
`./misa.pl $infile`;
# At the End: Time Calculation
my ($sec_,$min_,$hour_,$mday_,$mon_,$year_,$wday_,$yday_,$isdst_) = localtime(time);
my $days = $mday_-$mday;
my $hours = $hour_-$hour;
my $mins = $min_-$min;
my $secs = $sec_-$sec;
print "\n------------------------\nDuration: ";
if ($days>0) { print "$days days";}
if ($hours>0) { print ": $hours hours";}
if ($mins>0) { print ": $mins mins";}
if ($secs>0) { print ": $secs secs";}
print "\n------------------------\n";
# END