Package org.molgenis.util.plink.datatypes

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


      {
        char allele1 = strTokenizer.nextToken().charAt(0);
        char allele2 = strTokenizer.nextToken().charAt(0);
        bialleles.add(Biallele.create(allele1, allele2));
      }
      return new TpedEntry(chromosome, snp, cM, bpPos, bialleles);
    }
    catch (NoSuchElementException e)
    {
      throw new IOException("error in line: " + line, e);
    }
View Full Code Here


        Biallele b2 = new Biallele('A', 'C');
        Biallele b3 = new Biallele('C', 'C');
        Biallele b4 = new Biallele('A', 'C');
        Biallele b5 = new Biallele('C', 'C');
        Biallele b6 = new Biallele('C', 'C');
        fileWriter.write(new TpedEntry("1", "snp1", 0.0, 5000650, Arrays.asList(b1, b2, b3, b4, b5, b6)));
      }
      finally
      {
        IOUtils.closeQuietly(fileWriter);
      }
View Full Code Here

    Biallele b0_2 = new Biallele('A', 'C');
    Biallele b0_3 = new Biallele('C', 'C');
    Biallele b0_4 = new Biallele('A', 'C');
    Biallele b0_5 = new Biallele('C', 'C');
    Biallele b0_6 = new Biallele('C', 'C');
    entryList.add(new TpedEntry("1", "snp1", 0.0, 5000650, Arrays.asList(b0_1, b0_2, b0_3, b0_4, b0_5, b0_6)));
    Biallele b1_1 = new Biallele('G', 'T');
    Biallele b1_2 = new Biallele('G', 'T');
    Biallele b1_3 = new Biallele('G', 'G');
    Biallele b1_4 = new Biallele('T', 'T');
    Biallele b1_5 = new Biallele('G', 'T');
    Biallele b1_6 = new Biallele('T', 'T');
    entryList.add(new TpedEntry("1", "snp2", 0.0, 5000830, Arrays.asList(b1_1, b1_2, b1_3, b1_4, b1_5, b1_6)));

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

TOP

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

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.