Mercurial > repos > jtilman > flexbar
view flexbar.pl @ 21:d62311a7bac6
Adjustment to Flexbar 2.34 release
author | jtilman |
---|---|
date | Thu, 23 May 2013 20:51:05 +0200 |
parents | 621fa3daa2a1 |
children | 12e4b3bb38c6 |
line wrap: on
line source
#!/usr/bin/env perl # Flexbar wrapper for Galaxy tool definition, version 2.34 # Author: Johannes Roehr use warnings; use strict; my ($outFile, $id, $folder, $format) = @ARGV[($#ARGV - 3) .. $#ARGV]; my $call = join " ", @ARGV[0..($#ARGV - 4)]; system $call .' --target FlexbarTargetFile > '. $outFile and exit 1; foreach(<FlexbarTargetFile*>){ my $fileType; $fileType = $1 if /\.(\w+)$/; $fileType = $format if /\.\w*fast\w$/; $fileType = 'fasta' if /\.fasta$/; $fileType = 'tabular' if $fileType eq 'lengthdist'; my $file = $_; s/_//g; my $name = "primary_". $id ."_". $_ ."_visible_". $fileType; rename $file, $name; rename $name, $folder; }