]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/list_biopieces
refactoring of assemble_pairs
[biopieces.git] / bp_bin / list_biopieces
index fdf5bd287f78613d2aea83bb9b15f855cad57e77..1223bd6cb134acfadfb1e48851c48bc873ba35d5 100755 (executable)
@@ -1,6 +1,79 @@
 #!/usr/bin/env perl
 
+# Copyright (C) 2007-2009 Martin A. Hansen.
+
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# http://www.gnu.org/copyleft/gpl.html
+
+
+# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> DESCRIPTION <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+
+# Print summary for all Biopices.
+
+# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+
+
 use warnings;
 use strict;
+use Maasha::Common;
+use Maasha::Biopieces;
+use Maasha::Gwiki;
+
+
+# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+
+
+my ( $options, @files, $file, $wiki, $program, $summary );
+
+$options = Maasha::Biopieces::parse_options();
+
+@files = Maasha::Filesys::ls_files( "$ENV{ 'BP_DIR' }/bp_usage" );
+
+foreach $file ( sort @files )
+{
+    if ( $file =~ /\/([BGa-z0-9_]+)\.wiki$/ )
+    {
+        $program = $1;
+
+        $wiki = Maasha::Gwiki::gwiki_read( $file );
+
+        $summary = $wiki->[ 0 ]->[ 0 ]->{ 'TEXT' };
+        $summary =~ s/^#summary\s+//;
+
+        printf( "%-30s%s\n", $program, $summary );
+    }
+}
+
+
+# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+
+
+BEGIN
+{
+    Maasha::Biopieces::status_set();
+}
+
+
+END
+{
+    Maasha::Biopieces::status_log();
+}
+
+
+# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+
 
-use Maasha::BioRun;
+__END__