Mercurial > repos > jdv > porechop
view porechop_summarize.pl @ 6:15e64c5938e6 draft
planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/porechop commit 083a08f96c17f3116dce1dc1573192860f41ed70-dirty
author | jdv |
---|---|
date | Sun, 15 Oct 2017 12:30:20 -0400 |
parents | 64fcb9c72e47 |
children |
line wrap: on
line source
#!/usr/bin/env perl use strict; use warnings; use 5.012; my $flag = 0; my $table; while (my $line = <STDIN>) { print STDERR $line; if ($line =~ /Barcode\s+Reads\s+Bases\s+File/) { $flag = 1; } next if (! $flag); $table .= $line; } $table =~ s/(^\s+|\e\[\d+m)//gms; pos($table) = 0; $table =~ s/[ \t]+/\t/gms; say $table; exit;