Mercurial > repos > jdv > porechop
view porechop_summarize.pl @ 10:0cb1ba651e9e draft default tip
planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/porechop commit 83364d7d78ca5524a08065daef995bfcd54a379d-dirty
author | jdv |
---|---|
date | Fri, 01 Dec 2017 21:36:54 -0500 |
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;