]> git.donarmstrong.com Git - biopieces.git/commitdiff
repair on plot_karyogram
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 28 Jan 2010 08:35:50 +0000 (08:35 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 28 Jan 2010 08:35:50 +0000 (08:35 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@852 74ccb610-7750-0410-82ae-013aeee3265d

code_perl/Maasha/Plot.pm

index 906b7ac8daf6660eb21d5652b92f9a18e68247aa..4ac715963e92f49e3457baeb9eae7f2789618636 100644 (file)
@@ -542,6 +542,8 @@ sub find_cent
     push @nums, $acen->[ 1 ]->[ 1 ];
     push @nums, $acen->[ 1 ]->[ 2 ];
 
+
+    @nums = grep { defined $_ } @nums;   # FIXME
     @nums = sort { $a <=> $b } @nums;
 
     $cent = ( $nums[ 1 ] + $nums[ 2 ] ) / 2;