Mercurial > repos > devteam > emboss_5
annotate emboss_multiple_outputfile_wrapper.pl @ 10:d49956b87f7e draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
author | iuc |
---|---|
date | Wed, 08 Feb 2017 12:42:22 -0500 |
parents | |
children |
rev | line source |
---|---|
10
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
1 #! /usr/bin/perl -w |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
2 use strict; |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
3 |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
4 my $cmd_string = join (" ",@ARGV); |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
5 my $results = `$cmd_string`; |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
6 my @files = split("\n",$results); |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
7 foreach my $thisLine (@files) |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
8 { |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
9 if ($thisLine =~ /Created /) |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
10 { |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
11 $thisLine =~ /[\w|\.]+$/; |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
12 $thisLine =$&; |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
13 print "outfile: $thisLine\n"; |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
14 } |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
15 else |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
16 { |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
17 print $thisLine,"\n"; |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
18 } |
d49956b87f7e
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 2bfbb5ae6b801e43355fdc3f964a5111fe3fe3a1
iuc
parents:
diff
changeset
|
19 } |