]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed bug in uploader
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 10 Dec 2009 14:58:04 +0000 (14:58 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 10 Dec 2009 14:58:04 +0000 (14:58 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@801 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/upload_to_bbrowser

index 43853c17ad3ce4aa008b6210460ca0c9c6860fff..916ffa803bd540c2847e2506292b89a68c19aadc 100755 (executable)
@@ -28,6 +28,7 @@
 
 use warnings;
 use strict;
+use Data::Dumper;
 use Maasha::Common;
 use Maasha::KISS;
 use Maasha::Biopieces;
@@ -77,7 +78,7 @@ if ( $options->{ 'track_name' } )
     {
         if ( $entry = Maasha::KISS::biopiece2kiss( $record ) )
         {
-            $entry->{ 'S_ID' } = ( split " ", $entry->{ 'S_ID ' } )[ 0 ];
+            $entry->{ 'S_ID' } = ( split / /, $entry->{ 'S_ID' } )[ 0 ];
 
             if ( not exists $fh_hash{ $entry->{ 'S_ID' } } ) {
                 $fh_hash{ $entry->{ 'S_ID' } } = Maasha::Filesys::file_write_open( "$tmp_dir/$entry->{ 'S_ID' }" );