How To Separat The Samples As Carrier And Non-Carrier For A Genotype In Gwas ?
1
0
Entering edit mode
12.6 years ago
geetha.r.v ▴ 30

Hi,

I am working on a GWA dataset and I want to separate the samples based on a genotype i.e, as carriers and non-carriers for a particular genotype. Could anyone tell me how this can be done?

Thank you

gwas genotyping • 1.9k views
ADD COMMENT
0
Entering edit mode

What software do you want to use?

ADD REPLY
0
Entering edit mode
12.6 years ago
ff.cc.cc ★ 1.3k

...supposing you work with R and your colums represent snp data and rows represent samples you could run something like this:

AAcarrier_idx = which(datasetname$markerid == 0)
AAcarrier = datsetname[AAcarrier_idx,]
ABcarrier_idx = which(datasetname$markerid == 1)
ABcarrier = datsetname[ABcarrier_idx,]
BBcarrier_idx = which(datasetname$markerid == 2)
BBcarrier = datsetname[BBcarrier_idx,]

but, please tell us more about data coding and tools you intend to adopt in the analysis...

ADD COMMENT

Login before adding your answer.

Traffic: 1571 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6