Program combines and converts pre-makeped LINKAGE pedigree file, phenotype file and MEGA2 format map file to MERLIN format. PedConvert is fast, it uses Red-Black Tree data structures.
Command is:
pedconvert
Pedconvert has following command line arguments:
% pedconvert
-------------------------------------------------------------------------------
Program PedConvert 1.2 - 18th of June 2004
Copyright (C) 2004 Tero Hiekkalinna, Tero.Hiekkalinna@Helsinki.FI
Program for converting genotype/phenotype data to MERLIN format
Program uses Red-Black-Tree data structures for Fast conversion
-------------------------------------------------------------------------------
Usage: pedconvert [options]
-p pedigree file
-f phenotype file
-m map file
-n number of markers in pedigree file
-t pedigree file has dicotomous trait as first phenotype and
it will be read and ignored
-s add SEX as covariate
-a Set all phenotypes in phenotype file to traits. This can be used
if multiple traits are being anayzed at same Merlin run
-only [males,females]
Example: pedconvert -p chr1.ped -f phen.dat -m map1.dat -n 78
%
Options -p, -f, -m and -n are mandatory!
Specify pedigree file name.
Specify phenotype file name.
Specify map file name.
Specify number of markers in pedigree file.
pedigree file has dicotomous trait as first phenotype and it will be read and ignored.
Add SEX as covariate.
Set all phenotypes in phenotype file to traits. This can be used if multiple traits are being anayzed at same Merlin run. By default first phenotype in phenotype file is used as TRAIT and rest of the phenotypes are set to covariates.
If you want to do sex spesific males/females analysis only, use option -only males to select MALE phenotypes and -only females to select FEMALES phenotypes.
Columns are: pedigree ID, person ID, Phenotype(s). First line includes number of phenotypes and phenotype names.
1 Phen_1
1 1 1.54
1 3 1.44
2 2 1.98
2 3 1.39
If you want to use covariates in variance component analysis, list them after first phenotype (missing value is x):
2 Phen_1 Phen_2
1 1 1.54 34
1 3 1.44 45
2 2 1.98 x
2 3 1.39 56
Pedigree and person number have to correspond to ids in pedigree file!
Pedigree files are pre-makeped format (see Pedigree file format documentation!). Pedigree file can include dicotomous trait column (as first phenotype!), but that infomation must be given to PedConvert with option -t.
Map file must be in MEGA2 format (see Map file format documentation).
Example input files:
Let's run PedConvert with following options:
pedconvert -p chr1.raw -f phen.dat -m map1.dat -n 2 -t
Output files:
Let's run PedConvert with following options, sex as covariate!:
pedconvert -p chr1.raw -f phen.dat -m map1.dat -n 2 -t -s
Let's run PedConvert with following options, only males!:
pedconvert -p chr1.raw -f phen.dat -m map1.dat -n 2 -t -only males
Unpublished work, will be published by 2004
Tero Hiekkalinna