Hi all,
I am trying to find common data in two files based on AlphaMarkerName column. Could you please help me how to get this and see those rows?
> genie = read.table(gzfile("EGFR_T1D_ALL_MIN_May2022.z_score.txt.gz"),sep="", header= TRUE)
> winker = read.table(gzfile("winker.updated.z_score.txt.gz"),sep="", header = TRUE)
> head(winker, 10) [,1:5]
AlphaMarkerName rsid Allele1 Allele2 Freq1.dm
1 10:10000018:A:G rs6602381 A G 0.59
2 10:100000625:A:G rs7899632 A G 0.56
3 10:100000645:A:C rs61875309 A C 0.81
4 10:100003242:G:T rs12258651 T G 0.84
5 10:100003304:A:G rs72828461 A G 0.96
6 10:100003785:C:T rs1359508 T C 0.61
7 10:100004360:A:G rs1048754 A G 0.19
8 10:100004441:C:G rs1048757 C G 0.59
9 10:100004906:A:C rs3750595 A C 0.43
10 10:100004996:A:G rs2025625 A G 0.39
> head(genie, 10) [,12:17]
HetISq HetChiSq HetDf HetPVal all_total AlphaMarkerName
1 47.7 1.911 1 0.1669 1768 1:748878:G:T
2 0.0 0.571 2 0.7515 2189 1:749963:T:TAA
3 0.0 1.101 2 0.5766 2189 1:751343:A:T
4 0.0 0.894 2 0.6397 2189 1:751488:G:GA
5 0.0 1.090 2 0.5799 2189 1:751756:C:T
6 0.0 1.068 2 0.5863 2189 1:752566:A:G
7 0.0 1.571 2 0.4559 2189 1:752721:A:G
8 0.0 0.915 2 0.6330 2189 1:752894:C:T
9 0.0 1.129 2 0.5687 2189 1:753405:A:C
10 0.0 1.176 2 0.5553 2189 1:753425:C:T
> common <- intersect(genie$AlphaMarkerName, winker$AlphaMarkerName)
Many thanks,