alun.genio
Class LinkagePedigreeData

java.lang.Object
  extended by alun.genio.LinkagePedigreeData

public class LinkagePedigreeData
extends java.lang.Object

A structure representing the data from a linkage .ped file.


Constructor Summary
LinkagePedigreeData()
           
LinkagePedigreeData(java.util.Collection<LinkageIndividual> v)
           
LinkagePedigreeData(LinkageFormatter b, LinkageParameterData par)
           
LinkagePedigreeData(LinkageFormatter b, LinkageParameterData par, boolean premake)
          Creates a new data structure by reading pedigree and phenotype data from the given input formatter.
LinkagePedigreeData(LinkageFormatter b, LinkageParameterData par, int format)
           
LinkagePedigreeData(LinkagePedigreeData p, int[] x)
           
 
Method Summary
 LinkageIndividual[] getIndividuals()
          Returns the array of individual data structures.
 Pedigree getPedigree()
          Creates a checked Pedigree structure from the list of individuals.
 LinkageIndividual ma(LinkageIndividual x)
           
static void main(java.lang.String[] args)
          Main reads in a linkage parameter file and a linkage pedigree file which is in short form and output the linkage pedigree file in long form.
 int nIndividuals()
           
 LinkageIndividual pa(LinkageIndividual x)
           
 int pedid()
           
 void set(java.util.Collection<LinkageIndividual> v)
           
 LinkagePedigreeData[] splitByPedigree()
           
 java.lang.String toString()
          Returns a string representing the data for the given pedigrees in the same format as it was read in from the linkage .ped file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkagePedigreeData

public LinkagePedigreeData()

LinkagePedigreeData

public LinkagePedigreeData(LinkageFormatter b,
                           LinkageParameterData par)
                    throws java.io.IOException
Throws:
java.io.IOException

LinkagePedigreeData

public LinkagePedigreeData(LinkagePedigreeData p,
                           int[] x)

LinkagePedigreeData

public LinkagePedigreeData(LinkageFormatter b,
                           LinkageParameterData par,
                           boolean premake)
                    throws java.io.IOException
Creates a new data structure by reading pedigree and phenotype data from the given input formatter. The data is checked for consistency with the parameters in the given parameter data structure.

Throws:
java.io.IOException

LinkagePedigreeData

public LinkagePedigreeData(LinkageFormatter b,
                           LinkageParameterData par,
                           int format)
                    throws java.io.IOException
Throws:
java.io.IOException

LinkagePedigreeData

public LinkagePedigreeData(java.util.Collection<LinkageIndividual> v)
Method Detail

set

public void set(java.util.Collection<LinkageIndividual> v)

pa

public LinkageIndividual pa(LinkageIndividual x)

ma

public LinkageIndividual ma(LinkageIndividual x)

getIndividuals

public LinkageIndividual[] getIndividuals()
Returns the array of individual data structures.


nIndividuals

public int nIndividuals()

pedid

public int pedid()

toString

public java.lang.String toString()
Returns a string representing the data for the given pedigrees in the same format as it was read in from the linkage .ped file.

Overrides:
toString in class java.lang.Object

getPedigree

public Pedigree getPedigree()
Creates a checked Pedigree structure from the list of individuals.


splitByPedigree

public LinkagePedigreeData[] splitByPedigree()

main

public static void main(java.lang.String[] args)
Main reads in a linkage parameter file and a linkage pedigree file which is in short form and output the linkage pedigree file in long form.