Package org.molgenis.util.plink.datatypes

Examples of org.molgenis.util.plink.datatypes.MapEntry


    {
      String chromosome = strTokenizer.nextToken();
      String snp = strTokenizer.nextToken();
      double cM = Double.parseDouble(strTokenizer.nextToken());
      long bpPos = Long.parseLong(strTokenizer.nextToken());
      return new MapEntry(chromosome, snp, cM, bpPos);
    }
    catch (NoSuchElementException e)
    {
      throw new IOException("error in line: " + line, e);
    }
View Full Code Here


    {
      MapFileWriter fileWriter = null;
      try
      {
        fileWriter = new MapFileWriter(file0);
        fileWriter.write(new MapEntry("1", "snp1", 0.0, 1l));
      }
      finally
      {
        IOUtils.closeQuietly(fileWriter);
      }
View Full Code Here

  @Test
  public void writeIterableMapEntry() throws IOException
  {
    List<MapEntry> entryList = new ArrayList<MapEntry>();
    entryList.add(new MapEntry("1", "snp1", 0.0, 1l));
    entryList.add(new MapEntry("1", "snp2", 0.0, 2l));

    File file0 = File.createTempFile("MapFileWriterTest_file0", null);
    try
    {
      MapFileWriter fileWriter = null;
View Full Code Here

TOP

Related Classes of org.molgenis.util.plink.datatypes.MapEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.