Program LNKTOCRI - to convert LINKAGE format pedigree data to CRI-MAP This program is automatically distributed with MultiMap - if you downlioading multimap you need not obtain lnktocri separately. (* Program LNKTOCRI - to convert LINKAGE format pedigree data to CRI-MAP *) (* Can convert autosomal or X-linked, binary or numbered alleles. *) (* You will be asked to enter the number of families and number of markers *) (* in the LINKAGE format file. *) (* THERE MUST BE NO DISEASE INFORMATION IN THE INPUT FILE!!!!!!! *) (* This program is freely available for research purposes. However, we *) (* would like to keep track of users so please ask others to contact *) (* either Jillian Blaschak or Tara Matise for an original copy of code *) (* Jillian: jillian@chimera.hgen.pitt.edu *) (* Tara : tara@chimera.hgen.pitt.edu *) (*************************************************************************) (* Please do not distribute this code yourself. *) (* A small addition was added by Tara Cox on October 24, 1991 to accomodate * * X-linked data so CRI-MAP can correctly check for inconsistencies. In the * * case of X-linked data a -1 dummy allele is added as the second allele * * for all males in the file. This dummy allele number is one greater than * * maxallele,which is the maximum number of alleles at any locus. *) (* Another addition was made by Tara Cox on January 3, 1992 to allow for * * numbered alleles. *) (******************************************************************************* * Program lnktocri was created at the University of Pittsburgh, Department of * Human Genetics by Jillian E. Reefer. (May 1989) * * Any inquiries regarding this program may be directed to: * Jillian E. Reefer * Department of Human Genetics * A309 Crabtree Hall, G.S.P.H. * University of Pittsburgh * Pittsburgh, PA 15261 * or call: (412)624-4695. * * This program is designed to convert a data file from the expected LINKAGE * package format into the CRIMAP .gen file format. * * In order for this program to work correctly, two program constants, * max and maxdata, may need to be modified to conform to your input file. * max represents the max number of family members in a single pedigree + 1. * maxdata is the upper bound for the converted allele data array. * (See const declarations.) * * Additional information required by CRIMAP is to be entered interactively * when this program is run. The information prompted for is: * the number of families contained in the data file, * the number of loci contained in the data, and the locus names. * * Description of input file format: * Each line of the linkage data file has the form: * 1333 24 17 18 0 0 0 0 0 1 1 1 0 1 0 1 1 1 0 1 0 1 0 * ped id fa mo f p m s pr ...data... * where * ped = pedigree#, * id = individual's id, * fa = father's id, * mo = mother's id, * f = first offspring id, * p = next paternal sibling id, * m = next maternal sibling id, * s = 1 if male or 2 if female, * pr = proband, * (all read as free format integers) * * The data is in factor union representation - two or more blanks are * allowed between loci, but one blank must appear between each allele. * * * Description of output file format: * The constructed CRIMAP .gen file has the form: * # of families * # of loci * locus name1 locus name2 locus name3 ... * For each family: * family id# * # of family members * For each member of the family: * id# mother's id# father's id# sex: 0 if female, 1 if male * 3 if unknown * locus1allele1 locus1allele2 locus2allele1 locus2allele2 ... * (where the allele data is in numeric genotype representation) * ******************************************************************************)