Results 1 to 3 of 3

Thread: How can I calculate the genetic distance between ethnic groups?

  1. #1
    Registered Users
    Posts
    2
    Sex
    Location
    South Korea
    Ethnicity
    Korean
    Nationality
    Korean
    aDNA Match (1st)
    Korean
    aDNA Match (2nd)
    Naxi
    aDNA Match (3rd)
    Yi
    Y-DNA (P)
    O3
    mtDNA (M)
    F

    South Korea

    How can I calculate the genetic distance between ethnic groups?

    a.jpg
    Like this photo. Where can I find the calculator?

  2. The Following User Says Thank You to zzangwiki For This Useful Post:

     Nganasankhan (08-23-2022)

  3. #2
    Registered Users
    Posts
    210
    Sex
    Nationality
    Turkish

    Turkey

  4. The Following User Says Thank You to chum For This Useful Post:

     JMcB (08-23-2022)

  5. #3
    Registered Users
    Posts
    345
    Sex
    Ethnicity
    Finnish

    You can also use shells or R. Download scaled datasheets from here: https://eurogenes.blogspot.com/2019/...obal25_12.html. Then run:

    Code:
    $ dist()(awk -F, 'NR==FNR{for(i=2;i<=NF;i++)a[i]=$i;next}$1{s=0;for(i=2;i<=NF;i++)s+=($i-a[i])^2;print s^.5,$1}' "$2" "$1"|sort -n|awk '{$1=sprintf("%."x"f",$1)}1' "x=${3-3}"|sed s,^0,,)
    $ dist <(grep Finnish_Southwest Global25_PCA_pop_averages_scaled.txt) Global25_PCA_pop_averages_scaled.txt
    .000 Finnish_Southwest
    .022 Finnish_Central
    .025 Finnish_North
    .029 Ingrian
    .035 Russian_Kostroma
    .036 Karelian
    .038 Russian_Krasnoborsky
    .038 Polish_Kashubian
    .041 Estonian
    .041 Vepsian
    Or in R:

    Code:
    > t=as.matrix(read.csv("Global25_PCA_modern_pop_averages_scaled.txt",r=1))
    > d=head(sort(sqrt(rowSums(t(t(t)-t["Finnish_Southwest",])^2))),10)
    > writeLines(sprintf("%.3f %s",d,names(d)))
    0.000 Finnish_Southwest
    0.022 Finnish_Central
    0.025 Finnish_North
    0.029 Ingrian
    0.035 Russian_Kostroma
    0.036 Karelian
    0.038 Russian_Krasnoborsky
    0.038 Polish_Kashubian
    0.041 Estonian
    0.041 Vepsian

  6. The Following 3 Users Say Thank You to Nganasankhan For This Useful Post:

     chum (08-23-2022),  JMcB (08-23-2022),  Toguz (08-23-2022)

Similar Threads

  1. Replies: 0
    Last Post: 04-21-2022, 01:44 PM
  2. Replies: 2
    Last Post: 02-01-2022, 11:42 PM
  3. Replies: 0
    Last Post: 02-01-2022, 01:53 AM
  4. Replies: 46
    Last Post: 03-11-2015, 07:03 PM
  5. Genetic distance of Yamnaya samples to other groups
    By Piquerobi in forum Ancient (aDNA)
    Replies: 45
    Last Post: 03-08-2015, 02:08 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •