---

title: LDmatrix module


keywords: fastai
sidebar: home_sidebar

summary: "Calculate LDmatrix"
description: "Calculate LDmatrix"
nb_path: "03_LDmatrix.ipynb"
---
<!--

#################################################
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ###
#################################################
# file to edit: 03_LDmatrix.ipynb
# command to build the docs after a change: nbdev_build_docs

-->

<div class="container" id="notebook-container">
        
    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h4 id="geno_corr" class="doc_header"><code>geno_corr</code><a href="https://github.com/changebio/LDtools/tree/master/LDtools/ldmatrix.py#L6" class="source_link" style="float:right">[source]</a></h4><blockquote><p><code>geno_corr</code>(<strong><code>x</code></strong>, <strong><code>y</code></strong>=<em><code>None</code></em>, <strong><code>step</code></strong>=<em><code>100</code></em>)</p>
</blockquote>
<p>functions to calculate LD matrix</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h4 id="dask_corr" class="doc_header"><code>dask_corr</code><a href="https://github.com/changebio/LDtools/tree/master/LDtools/ldmatrix.py#L15" class="source_link" style="float:right">[source]</a></h4><blockquote><p><code>dask_corr</code>(<strong><code>genos</code></strong>, <strong><code>step</code></strong>=<em><code>100</code></em>)</p>
</blockquote>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h4 id="dict2mat" class="doc_header"><code>dict2mat</code><a href="https://github.com/changebio/LDtools/tree/master/LDtools/ldmatrix.py#L37" class="source_link" style="float:right">[source]</a></h4><blockquote><p><code>dict2mat</code>(<strong><code>dd</code></strong>)</p>
</blockquote>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h4 id="dask_corr_pair" class="doc_header"><code>dask_corr_pair</code><a href="https://github.com/changebio/LDtools/tree/master/LDtools/ldmatrix.py#L50" class="source_link" style="float:right">[source]</a></h4><blockquote><p><code>dask_corr_pair</code>(<strong><code>genos</code></strong>, <strong><code>pgenos</code></strong>, <strong><code>step</code></strong>=<em><code>100</code></em>)</p>
</blockquote>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h4 id="dict2mat_pair" class="doc_header"><code>dict2mat_pair</code><a href="https://github.com/changebio/LDtools/tree/master/LDtools/ldmatrix.py#L73" class="source_link" style="float:right">[source]</a></h4><blockquote><p><code>dict2mat_pair</code>(<strong><code>dd</code></strong>)</p>
</blockquote>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

</div>
 

