Mercurial > repos > jdv > porechop
view porechop_summarize.pl @ 5:64fcb9c72e47 draft
planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/porechop commit 2a0c81f39a2d50819a327cb889f336b136612d60-dirty
author | jdv |
---|---|
date | Sat, 14 Oct 2017 23:08:38 -0400 |
parents | 80408ff0c1f5 |
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;