</span>(gdat)
}


<span class="co">#convert to snpMatrix - EUR</span>
gdat_eur &lt;-<span class="st"> </span><span class="kw">convertToNumeric</span>(eur_snpMat)

<span class="co">#load the snp_id_dist.csv, which contains the SNPs id and distance</span>
info &lt;-<span class="st"> </span><span class="kw">read.csv</span>(<span class="st">"snp_id_dist.csv"</span>)
snpNames &lt;-<span class="st"> </span>info<span class="op">$</span>id
<span class="kw">colnames</span>(gdat_eur) &lt;-<span class="st"> </span>snp