convert.snp.ped(pedfile, mapfile, outfile, format = "premakeped", traits = 1,
strand = "u", bcast = 10000000, wslash=FALSE, mapHasHeaderLine=TRUE)
For example
1 1 0 0 1 2 A A G T ...
1 2 0 0 1 0 A G T T ...
1 3 0 0 2 1 A A T T ...
...
Would imply that persons 1, 2 and 3 are "founders" (which would be typical for a case-control study), 1 and 2 are males and 3 is female. Person 1 is homozygous for allele 1 at locus 1 and heterozygous at locus 2. Person 2 is heterozygous at both loci. Person 3 is homozygous for allele 2 at locus 1 and allele 1 at locus 2.
Only the second and the marker columns are used, thus make sure the IDs are unique!
Accepted allele codes: 1/2, A/B, A/T, A/G, A/C, T/G, T/C, G/C, A/-, T/-, G/-, C/-. Here, "-" stands of a deletion.
The map file is standard Merlin map. For example:
chrom name position
18 rs679153 2859916
18 rs9965482 2860891
Says that locus 1 is named rs679153 and located at chromosome 18 position 2859916. Locus 2 (rs9965482) is located at chromosome 18, position 2860891.
In extended map format, there should be 4th column specifying the strand
chrom name position strand
18 rs679153 2859916 -
18 rs9965482 2860891 +
Accepted strand coding: +, -, u (unknown)
Please note that by default the header line (e.g. "chrom name position") SHOULD be present in your file, though you can use 'mapHasHeaderLine' argument to modify this behavior
load.gwaa.data
,
convert.snp.illumina
,
convert.snp.mach
,
convert.snp.text
,
convert.snp.tped
#
# convert.snp.ped(ped="pedin.18",mapfile="map.18",out="genos.raw")
#
Run the code above in your browser using DataLab