Hi all,

I have two files I need to merge but first I need to reformat one of
them...it looks like this:

GENE1
snp001
snp002
snp003
snp004

END
GENE2
snp005
snp006
snp007
snp008

END

GENE3
snp009
snp010
snp011
snp012

END

It's pretty much a set file from Plink. What I'd like to do is to have the
file looking like this:

GENE1  snp001
GENE1  snp002
GENE1  snp003
GENE1  snp004
GENE2  snp005
GENE2  snp006
GENE2  snp007
GENE2  snp008
GENE3  snp009
GENE3  snp010
...

The second file looks pretty much a file with most of the same SNPs for the
most part but with additional data…so I pretty much want to do something
like can be done on Microsoft Access merging the two files using the common
unique identifier…the snps.

 SNP
Pval Fst  snp001 0.0005 0.25  snp002 0.0003 0.75  snp003 0.0001 0.65  snp004
0.00001 0.3  snp005 0.00006 0.5  snp006 0.0004 0.1  snp007 0.00003 0.6
snp008 0.0002 0.75

Any help with this in R will be greatly appreciated.

Thanks.

Avoks

	[[alternative HTML version deleted]]

