How to solve the problem when I get error message "column 1 is not a genotype object" in LDheatmap in R?

3

I created the files similar to en example given in 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


LDheatmap

• 5.3k views

updated 9 hours ago by

0

written 6.8 years ago by

&utrif;

20



Source link