PDA

View Full Version : New version of K15 PCA (bullseye plot)



Lucas
10-26-2021, 10:32 AM
Automated K15 PCA (unlike origjnal you don't have to draw position by yourself in graphic program). I don't know if it was posted here before.
https://unofficial-gedmatch.netlify.app/bullseye-plot/

https://i.imgur.com/zb346u7.png

J. Ketch
10-26-2021, 10:39 AM
Man, that crappy old MS paint job with inaccurate averages won't die, will it.

MandM
10-26-2021, 10:59 AM
Me
https://i.ibb.co/Qrb99CC/Screenshot-20211026-124610-Chrome.jpg (https://ibb.co/3Br11MM)


Sister
https://i.ibb.co/ZNb8s1N/sistermap.png (https://ibb.co/1b4qVJb)

Mitryejd
10-26-2021, 11:05 AM
110597:fear::stop

Lucas
10-26-2021, 11:14 AM
Man, that crappy old MS paint job with inaccurate averages won't die, will it.

It is good for people with no ability to make own PCA, come one:)

Jana
10-26-2021, 11:14 AM
I am exactly between Austrian and Hungarian

https://i.imgur.com/rltPMoa.png

Grace O'Malley
10-26-2021, 12:21 PM
Thank you. It's cool. :thumb001:

https://i.imgur.com/LFqRaBn.png

noricum
10-26-2021, 12:38 PM
I am exactly between Austrian and Hungarian

https://i.postimg.cc/J0JFGnxg/FJI2.jpg (https://postimages.org/)

Erronkari
10-27-2021, 01:45 AM
Very cool!! :thumb001:

https://i.imgur.com/tysJmSV.jpg


https://i.imgur.com/JfMOKW8.jpg

El_Jibaro
10-27-2021, 01:51 AM
Very cool!! :thumb001:

https://i.imgur.com/tysJmSV.jpg


Ethnicity: A̶f̶g̶h̶a̶n̶/̶T̶a̶j̶i̶k̶ Espańol

Erronkari
10-27-2021, 01:54 AM
Edited.

Erronkari
10-27-2021, 01:55 AM
Better said impossible, bro! :biggrin:

Coastal Elite
10-27-2021, 02:24 AM
https://i.imgur.com/AY60km2.png

Mom

https://i.imgur.com/P4koPoV.jpg

Peterski
10-27-2021, 12:56 PM
https://www.reddit.com/r/gedmatch/comments/q76oov/rework_of_jerome_hamons_eurogenes_k15_plotter/

Dušan
10-27-2021, 01:05 PM
https://i.imgur.com/w7HLKqq.png

alexmegas777
10-28-2021, 06:40 AM
wtf am I
https://i.ibb.co/SBL7jHG/Untitled.png

JamesBond007
10-28-2021, 06:59 AM
https://i.postimg.cc/Fsy8LzCP/k15.jpg

Rafael Passoni
10-28-2021, 08:30 AM
https://i.imgur.com/GoxF5ld.png

Dunai
10-28-2021, 10:06 AM
I'd wish the map would use the updated averages since this is quite old and almost outdated. For example the real Hungarian average would be a little bit North-West to the current Croat dot, not so close to the current Austrian one. And I bet the updated Croat, Austrian but any national average would be somewhere else on that map.

Luke35
10-28-2021, 12:17 PM
I'd wish the map would use the updated averages since this is quite old and almost outdated. For example the real Hungarian average would be a little bit North-West to the current Croat dot, not so close to the current Austrian one. And I bet the updated Croat, Austrian but any national average would be somewhere else on that map.

Look no further than this excellent K15 PCA made by Creoda, this one uses the updated spreadsheet. I see that you are on there, post #141:

https://www.theapricity.com/forum/showthread.php?336687-Using-Eurogenes-K15-to-compare-to-other-TA-members-II/page15

Komintasavalta
10-28-2021, 01:04 PM
The plots posted in this thread don't take FST into account, so many north Caucasisans plot further right on PC1 than Chuvashes. But if you multiply the matrix of admixture percentages with an MDS matrix of the FST matrix, then Chuvashes plot much further east on PC1:

https://i.ibb.co/QjZ4p9c/2.png

Or here's K15 updated along with some of my new averages:

https://i.ibb.co/fkYdwx5/1.png


library(tidyverse)
library(ggforce)

t=read.csv("https://pastebin.com/raw/hDBUcTL8",row.names=1,check.names=F) # K13 original

A=function(x)unlist(strsplit(x," "))
pick=A("Adygei Ashkenazi Austrian Balkar Belorussian Bulgarian Central_Greek Chechen Chuvash Croatian Danish East_Finnish East_German East_Sicilian Erzya Estonian Estonian_Polish Finnish French French_Basque Greek Greek_Thessaly Hungarian Irish Italian_Abruzzo Italian_Jewish Kabardin Kargopol_Russian Kumyk Lezgin Lithuanian Mari Moldavian Nogay North_Dutch North_German North_Italian North_Ossetian North_Swedish Norwegian Orcadian Ossetian Polish Portuguese Romanian Russian_Smolensk Sardinian Serbian South_Dutch South_Italian South_Polish Southeast_English Southwest_English Southwest_Finnish Southwest_French Southwest_Russian Spanish_Andalucia Spanish_Aragon Spanish_Cantabria Spanish_Castilla_La_Mancha Spanish_Castilla_Y_Leon Spanish_Cataluna Spanish_Extremadura Spanish_Galicia Spanish_Murcia Spanish_Valencia Swedish Tabassaran Tatar Tuscan Ukrainian Ukrainian_Belgorod Ukrainian_Lviv West_German West_Norwegian West_Scottish West_Sicilian")
t=t[pick,]

fst=as.matrix(as.dist(read.csv(text=",,,,,,,,,,,,,,
0.015,,,,,,,,,,,,,,
0.02,0.022,,,,,,,,,,,,,
0.02,0.022,0.024,,,,,,,,,,,,
0.029,0.028,0.037,0.038,,,,,,,,,,,
0.027,0.026,0.033,0.031,0.035,,,,,,,,,,
0.026,0.024,0.034,0.032,0.027,0.019,,,,,,,,,
0.053,0.05,0.059,0.058,0.051,0.046,0.038,,,,,,,,
0.06,0.062,0.064,0.056,0.075,0.053,0.055,0.078,,,, ,,,
0.112,0.114,0.115,0.102,0.123,0.109,0.11,0.127,0.0 75,,,,,,
0.111,0.113,0.114,0.1,0.125,0.11,0.112,0.13,0.083, 0.056,,,,,
0.138,0.141,0.141,0.128,0.156,0.14,0.143,0.161,0.1 2,0.113,0.107,,,,
0.178,0.179,0.181,0.173,0.188,0.176,0.174,0.19,0.1 45,0.166,0.178,0.217,,,
0.109,0.108,0.114,0.108,0.112,0.103,0.094,0.106,0. 102,0.137,0.144,0.178,0.195,,
0.144,0.144,0.148,0.142,0.149,0.139,0.132,0.139,0. 131,0.164,0.171,0.204,0.219,0.042,",head=F)))/1000

t2=as.matrix(t)%*%cmdscale(fst,ncol(fst)-1)

p0=prcomp(t2)
pct=paste0(colnames(p0$x)," (",sprintf("%.1f",100*p0$sdev/sum(p0$sdev)),"%)")
p=as.data.frame(p0$x)

p[,1]=-p[,1]
p=p/sd(p[,1])

p$pop=as.factor(cutree(hclust(dist(t2)),16))

set.seed(1)
hue=seq(0,360,length.out=nlevels(p$pop)+1)%>%head(-1)%>%sample()
pal1=hcl(hue,100,55)

i=1

xpc=sym(paste0("PC",i))
ypc=sym(paste0("PC",i+1))
seg=lapply(1:3,function(j)apply(as.matrix(dist(t)) ,1,function(x)unlist(p[names(sort(x)[j]),c(i,i+1)],use.names=F))%>%t%>%cbind(p[,c(i,i+1)]))%>%do.call(rbind,.)%>%setNames(paste0("V",1:4))

ggplot(p,aes(!!xpc,!!ypc))+
geom_segment(data=seg,aes(x=V1,y=V2,xend=V3,yend=V 4),color="gray50",size=.1)+
ggforce::geom_mark_hull(aes(group=pop),color=pal1[p$pop],fill=pal1[p$pop],concavity=100,radius=unit(.15,"cm"),expand=unit(.15,"cm"),alpha=.2,size=.15)+
geom_point(aes(x=!!xpc,y=!!ypc),color=pal1[p$pop],size=.3)+
geom_text(aes(x=!!xpc,y=!!ypc,label=rownames(p)),c olor=pal1[p$pop],size=2,vjust=-.6)+
labs(x=pct[i],y=pct[i+1])+
scale_x_continuous(breaks=seq(-10,10,.5),expand=expansion(.06))+
scale_y_continuous(breaks=seq(-10,10,.5),expand=expansion(.03))+
theme(
axis.ticks=element_blank(),
axis.ticks.length=unit(0,"pt"),
axis.text.y=element_text(angle=90,vjust=1,hjust=.5 ),
axis.text=element_text(color="black",size=6),
axis.title=element_text(color="black",size=8),
legend.position="none",
panel.background=element_rect(fill="white"),
plot.background=element_rect(fill="white",color=NA),
panel.border=element_rect(color="gray80",fill=NA,size=.4),
panel.grid.minor=element_blank(),
panel.grid.major=element_line(color="gray90",size=.2)
)

ggsave(paste0(i,".png"),width=7,height=7)

Gergő Marosvári
10-28-2021, 01:19 PM
Me

https://i.postimg.cc/qqkYJgzF/Gerg-K15.jpg

My grandmother

https://i.postimg.cc/sDGPBs7H/Mama-K15.png

My mother, her's is really a BULLSEYE! :)

https://i.postimg.cc/JzWXGJ1t/Anya-K15.jpg

noricum
10-28-2021, 05:49 PM
Me

https://i.postimg.cc/658YM36y/noricum.jpg (https://postimages.org/)

Единокровный брат

https://i.postimg.cc/7ZN4Sytw/noricum-halfbro.jpg (https://postimages.org/)

Schwägerin

https://i.postimg.cc/Pr4V4rH3/noricum-sisinlaw.jpg (https://postimages.org/)

celticdragongod
10-31-2021, 04:01 PM
110668

calxpal
11-01-2021, 05:09 AM
Me
https://i.ibb.co/7X51q29/k15pca.jpg

Dad

https://i.ibb.co/hC1sknr/dadk15.jpg

Mom

https://i.ibb.co/ncH5ppS/k15mom.jpg

Grandma

https://i.ibb.co/txsbJTV/grandmak15.jpg

Xavier727
12-10-2023, 02:00 PM
Ancestry
125111

23andme
125112

Kiel
12-10-2023, 02:26 PM
https://i.ibb.co/CHkNTZ0/IMG-0020.png

Beowulf
12-10-2023, 02:36 PM
https://i.postimg.cc/1X1cK0pq/Screenshot-2023-12-10-16-34-10.png (https://postimages.org/)



The results are quite weird :confused3::confused3::confused3:

Kenshiro
12-10-2023, 05:50 PM
125118
From North Apulia (South Italy)

Eurafricanid
12-10-2023, 06:50 PM
https://i.imgur.com/HpH3382.png

MandM
12-10-2023, 07:30 PM
Myheritage
https://i.ibb.co/Vpm59cY/Screenshot-20231210-212612-Chrome.jpg (https://ibb.co/6JBLw70)

Ancestry
https://i.ibb.co/GVJnhKv/Screenshot-20231210-204259-Chrome.jpg (https://ibb.co/cNvkmGc)

Boudin
12-11-2023, 12:06 AM
https://www.theapricity.com/forum/attachment.php?attachmentid=125134&stc=1