Examples of BimEntry


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

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

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

    {
      BimFileWriter fileWriter = null;
      try
      {
        fileWriter = new BimFileWriter(file0);
        fileWriter.write(new BimEntry("1", "snp1", 0.0, 1, new Biallele('A', 'C')));
      }
      finally
      {
        IOUtils.closeQuietly(fileWriter);
      }
View Full Code Here

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

  @Test
  public void writeIterableBimEntry() throws IOException
  {
    List<BimEntry> entryList = new ArrayList<BimEntry>();
    entryList.add(new BimEntry("1", "snp1", 0.0, 1, new Biallele('A', 'C')));
    entryList.add(new BimEntry("2", "snp2", 1.2, 1, new Biallele('C', 'A')));

    File file0 = File.createTempFile("BimFileWriterTest_file0", null);
    try
    {
      BimFileWriter fileWriter = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.