Skip to content
Snippets Groups Projects
Commit 07d4d0de authored by tjc's avatar tjc
Browse files

fix for mutiple wiggle data reads in a file

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@11364 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 273b47ef
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/plot/UserDataAlgorithm.java,v 1.10 2009-07-15 12:20:30 tjc Exp $
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/plot/UserDataAlgorithm.java,v 1.11 2009-07-16 14:14:32 tjc Exp $
*/
package uk.ac.sanger.artemis.plot;
......@@ -42,7 +42,7 @@ import java.util.regex.Pattern;
* set in the constructor.
*
* @author Kim Rutherford <kmr@sanger.ac.uk>
* @version $Id: UserDataAlgorithm.java,v 1.10 2009-07-15 12:20:30 tjc Exp $
* @version $Id: UserDataAlgorithm.java,v 1.11 2009-07-16 14:14:32 tjc Exp $
**/
public class UserDataAlgorithm extends BaseAlgorithm
......@@ -296,7 +296,14 @@ public class UserDataAlgorithm extends BaseAlgorithm
if (value < data_min)
data_min = value;
Float valueArray[] = new Float[number_of_values];
final Float valueArray[] = new Float[number_of_values];;
if(dataMap.containsKey(base))
{
Float oldValues[] = dataMap.get(base);
for(int i=0; i<oldValues.length; i++)
valueArray[i] = oldValues[i];
}
valueArray[number_of_values-1] = value;
dataMap.put(base, valueArray);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment