Question: R survival analysis SNPs loading data
0
gravatar for emily111
8 days ago by
emily1110
emily1110 wrote:

Hello!

I am trying to do a Kaplan Meier survival analysis with Cox proportional hazards in survival R package on a small number of SNPs. I have been struggling to find how/ in what form is best to load in my data. Can I load it in in a data frame with tidyverse? If so, has anyone got experience of how to code SNPs- I was thinking of coding them i.e. 1 = AA, 2 = AT, 3= TT, for instance.

Many thanks!

snp R gene • 173 views
ADD COMMENTlink modified 8 days ago • written 8 days ago by emily1110

Usual encoding is 0 for homozygous reference, 1 for heterozygous and 2 for homozygous variant. The actual nucleotide is often not important.

ADD REPLYlink written 7 days ago by WouterDeCoster20k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1472 users visited in the last hour