Mercurial > repos > jtilman > flexbar
view flexbar.pl @ 10:f0bdf862ba39
Simplified perl wrapper.
author | jtilman |
---|---|
date | Mon, 31 Dec 2012 18:40:01 +0100 |
parents | a8399cb4972b |
children | 52c5e53aff28 |
line wrap: on
line source
#!/usr/bin/env perl # Author: Johannes T. Roehr use warnings; use strict; my $format = pop @ARGV; my $folder = pop @ARGV; my $id = pop @ARGV; my $outFile = pop @ARGV; my $call = join " ", @ARGV; system $call .' --target reads > '. $outFile and exit 1; foreach(<reads*>){ my $fileType; $fileType = $1 if /\.(\w+)$/; $fileType = $format if /\.\w+fast\w$/; $fileType = 'tabular' if $fileType eq 'lengthdist'; s/_//g; my $name = "primary_". $id ."_". $_ ."_visible_". $fileType; rename $_, $name; rename $name, $folder; }