I created the files similar to en example given in http://cran.r-project.org/web/packages/LDheatmap/vignettes/LDheatmap.pdf. Which are CEUDist (only one column of distance) and CEUSNP (genotypic data, with the markers name). However, I obtained the error saying "column 1 is not a genotype object"
CEUSNP
snp1 snp2 snp3 snp4 snp5 snp6
G/G A/A C/C G/G G/G G/G
A/A G/G C/C G/G A/A G/G
G/G G/G C/C G/G G/G G/G
G/G G/G C/C G/G A/A G/G
G/G G/G C/C T/T A/A G/G
G/G G/G A/A T/T G/G G/G
G/G G/G A/A G/G G/G G/G
A/A G/G C/C T/T A/A G/G
A/A G/G C/C G/G G/G G/G
A/A G/G <NA> G/G A/A G/G
A/A G/G A/A G/G A/A G/G
G/G G/G A/A G/G G/G G/G
G/G G/G C/C G/G A/A G/G
and
CEUDist
123456
123524
123457
123525
123458
123526
Could you tell me what I did wrong in this case?
Also, can I use CC
instead of C/C
and NA
instead of <NA>
in the genotypic file?
It will be great if any of you can share an example files with me.
Thank you in advance.
Jane
how can one create a data.frame which looks like the CEUSNP from a vcf file?.