Examples of PedEntry


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

      {
        char allele1 = strTokenizer.nextToken().charAt(0);
        char allele2 = strTokenizer.nextToken().charAt(0);
        bialleles.add(Biallele.create(allele1, allele2));
      }
      return new PedEntry(family, individual, father, mother, sex, phenotype, bialleles);
    }
    catch (NoSuchElementException e)
    {
      throw new IOException("error in line: " + line, e);
    }
View Full Code Here

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

    {
      PedFileWriter fileWriter = null;
      try
      {
        fileWriter = new PedFileWriter(file0);
        fileWriter.write(new PedEntry("1", "1", "0", "0", (byte) 1, 1.0, Arrays.asList(new Biallele('A', 'A'),
            new Biallele('G', 'T'))));
      }
      finally
      {
        IOUtils.closeQuietly(fileWriter);
View Full Code Here

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

  @Test
  public void writeIterablePedEntry() throws IOException
  {
    List<PedEntry> entryList = new ArrayList<PedEntry>();
    entryList.add(new PedEntry("1", "1", "0", "0", (byte) 1, 1.0, Arrays.asList(new Biallele('A', 'A'),
        new Biallele('G', 'T'))));
    entryList.add(new PedEntry("2", "1", "0", "0", (byte) 1, 1.0, Arrays.asList(new Biallele('A', 'C'),
        new Biallele('T', 'G'))));

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