Examples of FamEntry


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

      String individual = strTokenizer.nextToken();
      String father = strTokenizer.nextToken();
      String mother = strTokenizer.nextToken();
      byte sex = Byte.parseByte(strTokenizer.nextToken());
      double phenotype = Double.parseDouble(strTokenizer.nextToken());
      return new FamEntry(family, individual, father, mother, sex, phenotype);
    }
    catch (NoSuchElementException e)
    {
      throw new IOException("error in line: " + line, e);
    }
View Full Code Here

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

    {
      FamFileWriter fileWriter = null;
      try
      {
        fileWriter = new FamFileWriter(file0);
        fileWriter.write(new FamEntry("1", "Oleksandr", "0", "0", (byte) 1, 1.0));
      }
      finally
      {
        IOUtils.closeQuietly(fileWriter);
      }
View Full Code Here

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

  @Test
  public void writeIterableFamEntry() throws IOException
  {
    List<FamEntry> entryList = new ArrayList<FamEntry>();
    entryList.add(new FamEntry("1", "Oleksandr", "0", "0", (byte) 1, 1.0));
    entryList.add(new FamEntry("2", "Maksym", "0", "0", (byte) 1, 1.0));

    File file0 = File.createTempFile("FamFileWriterTest_file0", null);
    try
    {
      FamFileWriter 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.