From da3319a94647f9d0df9aadaf6d0e3f9786de97d3 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Thu, 10 Dec 2009 14:58:04 +0000 Subject: [PATCH] fixed bug in uploader git-svn-id: http://biopieces.googlecode.com/svn/trunk@801 74ccb610-7750-0410-82ae-013aeee3265d --- bp_bin/upload_to_bbrowser | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bp_bin/upload_to_bbrowser b/bp_bin/upload_to_bbrowser index 43853c1..916ffa8 100755 --- a/bp_bin/upload_to_bbrowser +++ b/bp_bin/upload_to_bbrowser @@ -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' }" ); -- 2.39.5