annotate tools/emboss_5/emboss_banana.pl @ 2:c2a356708570

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:42 -0500
parents 9071e359b9a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 #! /usr/bin/perl -w
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 use strict;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 my $cmd_string = join (" ",@ARGV);
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 #my $cmd_string = "/home/djb396/temp/emboss/bin/banana -sequence /home/djb396/universe-prototype/test.fasta -outfile result.txt -graph png -goutfile results -auto";
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 my $results = `$cmd_string`;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 my @files = split("\n",$results);
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 foreach my $thisLine (@files)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 {
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 if ($thisLine =~ /Created /i)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 {
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 $thisLine =~ /[\w|\.]+$/;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 $thisLine =$&;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 print "outfile: $thisLine\n";
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 }
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 }