TDT2locus: A R program for two-locus TDT analysis
The
program has two functions. The function
readin()
is for reading in data from a file and processing data into a format that can be used by the analysis program,
TDT2L()
. It will be called by
TDT2L()
. The main analysis program is
TDT2L()
.
The input data file should have
one title line and three columns: family ID, gene 1 geneotype, gene 2 genotype. Genotypes should be coded as 0, 1, 2. Missing data should be denoted as a dot. The families should be sorted so that family members are clustered together, with the first two members as the parents and the other members as the offspring. A sample data file looks like this:
family G1 G2
100501 1 1
100501 0 1
100501 0 1
100501 1 1
100701 0 2
100701 1 1
100701 1 .
100701 0 1
200601 0 1
200601 0 1
200601 0 1
1001201 . 1
1001201 . 2
1001201 . 1
1001201 . 2
1001501 1 0
1001501 1 0
1001501 1 0
1001801 1 0
1001801 0 2
1001801 1 1
1001801 1 1