Skip to content

Commit eab7410

Browse files
committed
Pushing final changes after reviewed by janet
1 parent 598fdac commit eab7410

8 files changed

+14318
-14267
lines changed

IHT/Mendel_IHT_tutorial.html

+84-77
Large diffs are not rendered by default.

IHT/Mendel_IHT_tutorial.ipynb

+84-78
Large diffs are not rendered by default.

Kinship/KinshipTutorial.html

+25-14
Original file line numberDiff line numberDiff line change
@@ -11751,7 +11751,7 @@
1175111751
</div>
1175211752
<div class="inner_cell">
1175311753
<div class="text_cell_render border-box-sizing rendered_html">
11754-
<h1 id="Tutorial-of-MendelKinship">Tutorial of MendelKinship<a class="anchor-link" href="#Tutorial-of-MendelKinship">&#182;</a></h1><h3 id="last-update:-2/5/2019">last update: 2/5/2019<a class="anchor-link" href="#last-update:-2/5/2019">&#182;</a></h3>
11754+
<h1 id="Tutorial-of-MendelKinship">Tutorial of MendelKinship<a class="anchor-link" href="#Tutorial-of-MendelKinship">&#182;</a></h1><h3 id="last-update:-2/7/2019">last update: 2/7/2019<a class="anchor-link" href="#last-update:-2/7/2019">&#182;</a></h3>
1175511755
</div>
1175611756
</div>
1175711757
</div>
@@ -11760,7 +11760,16 @@ <h1 id="Tutorial-of-MendelKinship">Tutorial of MendelKinship<a class="anchor-lin
1176011760
</div>
1176111761
<div class="inner_cell">
1176211762
<div class="text_cell_render border-box-sizing rendered_html">
11763-
<h2 id="Julia-version">Julia version<a class="anchor-link" href="#Julia-version">&#182;</a></h2><p>Current code supports Julia version 1.0 and 0.7. For reproducibility, listing the machine information below:</p>
11763+
<h2 id="Installation-instructions">Installation instructions<a class="anchor-link" href="#Installation-instructions">&#182;</a></h2><p><code>MendelKinship</code> currently supports Julia version 1.0 and 1.1, but it is currently an unregistered package. To install, press <code>]</code> to invoke the package manager mode and install these packages by typing:</p>
11764+
11765+
<pre><code>add https://github.com/OpenMendel/SnpArrays.jl/
11766+
add https://github.com/OpenMendel/MendelSearch.jl
11767+
add https://github.com/OpenMendel/MendelBase.jl
11768+
add https://github.com/biona001/MendelKinship.jl</code></pre>
11769+
<p>You will also need a few registered packages. Add them by typing:</p>
11770+
11771+
<pre><code>add PlotlyJS Statistics StatsBase CSV ORCA DataFrames</code></pre>
11772+
<p>For reproducibility, listing the machine information below:</p>
1176411773

1176511774
</div>
1176611775
</div>
@@ -11815,7 +11824,7 @@ <h2 id="When-to-use-MendelKinship">When to use MendelKinship<a class="anchor-lin
1181511824
</div>
1181611825
<div class="inner_cell">
1181711826
<div class="text_cell_render border-box-sizing rendered_html">
11818-
<h2 id="Data-used-in-Examples">Data used in Examples<a class="anchor-link" href="#Data-used-in-Examples">&#182;</a></h2><p>The input for all examples in this tutorial can be obtained from the free application <a href="http://www.genetics.ucla.edu/software/mendel">Mendel v16</a> option 29a. These data were obtained from the 1000 genome project, containing 85 people and 253141 SNPs, half of which have $maf < 0.05$. Using these founders' genotype, we simulated 127 extra people, resulting in 27 pedigrees and 212 people. Although the 85 individuals are treated as founders, they were actually somewhat related, and this is reflected in the kinship comparison in the 2nd example below. For more information on this dataset, please see Mendel's documentation example 29.4.</p>
11827+
<h2 id="Data-used-in-Examples">Data used in Examples<a class="anchor-link" href="#Data-used-in-Examples">&#182;</a></h2><p>The input for all examples in this tutorial can be obtained from the free application <a href="http://software.genetics.ucla.edu/download?package=1">Mendel v16</a> option 29a. These data were obtained from the 1000 genome project, containing 85 people and 253141 SNPs, half of which have maf$< 0.05$. Using these founders' genotype, we simulated 127 extra people, resulting in 27 pedigrees and 212 people. Although the 85 individuals are treated as founders, they were actually somewhat related, and this is reflected in the kinship comparison in the 2nd example below. For more information on this dataset, please see Mendel's documentation example 29.4.</p>
1181911828

1182011829
</div>
1182111830
</div>
@@ -11827,7 +11836,7 @@ <h2 id="Data-used-in-Examples">Data used in Examples<a class="anchor-link" href=
1182711836
<div class="text_cell_render border-box-sizing rendered_html">
1182811837
<h2 id="Using-PLINK-compressed-file-as-input">Using PLINK compressed file as input<a class="anchor-link" href="#Using-PLINK-compressed-file-as-input">&#182;</a></h2><p>MendelKinship additionally accepts <a href="https://www.cog-genomics.org/plink2/formats#bed">PLINK binary format</a> as input, in which case the triplets (<code>data.bim</code>, <code>data.bed</code>, <code>data.fam</code>) must all be present. In this tutorial, there are no examples that uses these to import pedigree and SNP information. But if available, one can import the data by specifying the following in the control file:</p>
1182911838
<p><code>plink_input_basename = data</code></p>
11830-
<p>However, sometimes the .fam file contains non-unique person id (2nd column of .fam file) across different pedigrees, which is currently <strong>not</strong> permitted. A person's id cannot be repeated in other pedigrees, even if it is contextually clear that they are different persons. This will be fixed in the near future.</p>
11839+
<p>However, sometimes the .fam file contains non-unique person id (2nd column of .fam file) across different pedigrees, which is currently <strong>not</strong> permitted in MendelKinship. A person's id cannot be repeated in other pedigrees, even if it is contextually clear that they are different persons. This will be fixed in the near future.</p>
1183111840

1183211841
</div>
1183311842
</div>
@@ -12032,14 +12041,6 @@ <h3 id="Step-3:-Run-the-analysis-in-Julia-REPL-or-directly-in-notebook">Step 3:
1203212041
<div class="output">
1203312042

1203412043

12035-
<div class="output_area"><div class="prompt"></div>
12036-
<div class="output_subarea output_stream output_stderr output_text">
12037-
<pre>┌ Info: Recompiling stale cache file /Users/biona001/.julia/compiled/v1.0/MendelKinship/jENRZ.ji for MendelKinship [57586ee1-7d7e-549d-a2d8-59dc17d6b397]
12038-
└ @ Base loading.jl:1190
12039-
</pre>
12040-
</div>
12041-
</div>
12042-
1204312044
<div class="output_area"><div class="prompt"></div>
1204412045

1204512046
<div class="output_html rendered_html output_subarea ">
@@ -12099,7 +12100,7 @@ <h3 id="Step-3:-Run-the-analysis-in-Julia-REPL-or-directly-in-notebook">Step 3:
1209912100

1210012101
Reading the data.
1210112102

12102-
The current working directory is &#34;/Users/biona001/.julia/dev/MendelKinship/test/kinship_tutorial&#34;.
12103+
The current working directory is &#34;/Users/biona001/Benjamin_Folder/UCLA/research/open mendel related/Tutorials/Kinship&#34;.
1210312104

1210412105
Keywords modified by the user:
1210512106

@@ -12298,7 +12299,7 @@ <h3 id="Step-3:-Running-the-analysis">Step 3: Running the analysis<a class="anch
1229812299

1229912300
Reading the data.
1230012301

12301-
The current working directory is &#34;/Users/biona001/.julia/dev/MendelKinship/test/kinship_tutorial&#34;.
12302+
The current working directory is &#34;/Users/biona001/Benjamin_Folder/UCLA/research/open mendel related/Tutorials/Kinship&#34;.
1230212303

1230312304
Keywords modified by the user:
1230412305

@@ -12581,6 +12582,16 @@ <h3 id="Compute-skewness-and-excess-kurtosis">Compute skewness and excess kurtos
1258112582
</div>
1258212583
</div>
1258312584

12585+
</div>
12586+
<div class="cell border-box-sizing text_cell rendered">
12587+
<div class="prompt input_prompt">
12588+
</div>
12589+
<div class="inner_cell">
12590+
<div class="text_cell_render border-box-sizing rendered_html">
12591+
<h2 id="Conclusions">Conclusions<a class="anchor-link" href="#Conclusions">&#182;</a></h2><p>MendelKinship provides a rapid way to calculate the theoretical kinship, which requires accurate pedigrees, and the empirical kinships, which requires genotypes at multiple markers. Further, it can compare these kinships when both the pedigrees and markers are available.</p>
12592+
12593+
</div>
12594+
</div>
1258412595
</div>
1258512596
</div>
1258612597
</div>

Kinship/KinshipTutorial.ipynb

100755100644
+25-28
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"metadata": {},
66
"source": [
77
"# Tutorial of MendelKinship \n",
8-
"### last update: 2/5/2019"
8+
"### last update: 2/7/2019"
99
]
1010
},
1111
{
@@ -14,23 +14,21 @@
1414
"source": [
1515
"## Installation instructions\n",
1616
"\n",
17-
"`MendelKinship` currently supports Julia version 1.0, but it an unregistered package. To install, press `]` to enter the package manager mode and install the following packages:\n",
17+
"`MendelKinship` currently supports Julia version 1.0 and 1.1, but it is currently an unregistered package. To install, press `]` to invoke the package manager mode and install these packages by typing:\n",
1818
"\n",
1919
"```\n",
20-
"(v1.0) pkg> add https://github.com/OpenMendel/SnpArrays.jl/\n",
21-
"(v1.0) pkg> add https://github.com/OpenMendel/MendelSearch.jl\n",
22-
"(v1.0) pkg> add https://github.com/OpenMendel/MendelBase.jl\n",
23-
"(v1.0) pkg> add https://github.com/biona001/MendelKinship.jl\n",
24-
"```"
25-
]
26-
},
27-
{
28-
"cell_type": "markdown",
29-
"metadata": {},
30-
"source": [
31-
"## Julia version\n",
20+
"add https://github.com/OpenMendel/SnpArrays.jl/\n",
21+
"add https://github.com/OpenMendel/MendelSearch.jl\n",
22+
"add https://github.com/OpenMendel/MendelBase.jl\n",
23+
"add https://github.com/biona001/MendelKinship.jl\n",
24+
"```\n",
25+
"\n",
26+
"You will also need a few registered packages. Add them by typing:\n",
3227
"\n",
33-
"Current code supports Julia version 1.0 and 0.7. For reproducibility, below lists the machine information:"
28+
"```\n",
29+
"add PlotlyJS Statistics StatsBase CSV ORCA DataFrames\n",
30+
"```\n",
31+
"For reproducibility, listing the machine information below:"
3432
]
3533
},
3634
{
@@ -64,7 +62,6 @@
6462
"cell_type": "markdown",
6563
"metadata": {},
6664
"source": [
67-
"\n",
6865
"## When to use MendelKinship\n",
6966
"\n",
7067
"`MendelKinship.jl` is capable of calculating the theoretical kinship coefficient $\\Phi_{ij}$ as long as a [valid pedigree structure](https://openmendel.github.io/MendelBase.jl/#pedigree-file) is provided. When SNP markers are available, `MendelKinship.jl` can also calculate empirical kinship coefficients using GRM, robust GRM, or Method of Moments methods (see [this paper](https://onlinelibrary.wiley.com/doi/abs/10.1002/gepi.20584) and [this paper](https://academic.oup.com/bioinformatics/article/26/22/2867/228512) for details). Here we recommend the Robust GRM or MoM (default) method because their estimates are more robust in the presence of rare alleles. \n",
@@ -78,7 +75,7 @@
7875
"source": [
7976
"## Data used in Examples\n",
8077
"\n",
81-
"The input for all examples in this tutorial can be obtained from the free application [Mendel v16](http://www.genetics.ucla.edu/software/mendel) option 29a. These data were obtained from the 1000 genome project, containing 85 people and 253141 SNPs, half of which have $maf < 0.05$. Using these founders' genotype, we simulated 127 extra people, resulting in 27 pedigrees and 212 people. Although the 85 individuals are treated as founders, they were actually somewhat related, and this is reflected in the kinship comparison in the 2nd example below. For more information on this dataset, please see Mendel's documentation example 29.4. "
78+
"The input for all examples in this tutorial can be obtained from the free application [Mendel v16](http://software.genetics.ucla.edu/download?package=1) option 29a. These data were obtained from the 1000 genome project, containing 85 people and 253141 SNPs, half of which have maf$< 0.05$. Using these founders' genotype, we simulated 127 extra people, resulting in 27 pedigrees and 212 people. Although the 85 individuals are treated as founders, they were actually somewhat related, and this is reflected in the kinship comparison in the 2nd example below. For more information on this dataset, please see Mendel's documentation example 29.4. "
8279
]
8380
},
8481
{
@@ -91,7 +88,7 @@
9188
"\n",
9289
"`plink_input_basename = data` \n",
9390
"\n",
94-
"However, sometimes the .fam file contains non-unique person id (2nd column of .fam file) across different pedigrees, which is currently **not** permitted. A person's id cannot be repeated in other pedigrees, even if it is contextually clear that they are different persons. This will be fixed in the near future."
91+
"However, sometimes the .fam file contains non-unique person id (2nd column of .fam file) across different pedigrees, which is currently **not** permitted in MendelKinship. A person's id cannot be repeated in other pedigrees, even if it is contextually clear that they are different persons. This will be fixed in the near future."
9592
]
9693
},
9794
{
@@ -209,14 +206,6 @@
209206
"collapsed": false
210207
},
211208
"outputs": [
212-
{
213-
"name": "stderr",
214-
"output_type": "stream",
215-
"text": [
216-
"┌ Info: Recompiling stale cache file /Users/biona001/.julia/compiled/v1.0/MendelKinship/jENRZ.ji for MendelKinship [57586ee1-7d7e-549d-a2d8-59dc17d6b397]\n",
217-
"└ @ Base loading.jl:1190\n"
218-
]
219-
},
220209
{
221210
"data": {
222211
"text/html": [
@@ -292,7 +281,7 @@
292281
" \n",
293282
"Reading the data.\n",
294283
"\n",
295-
"The current working directory is \"/Users/biona001/.julia/dev/MendelKinship/test/kinship_tutorial\".\n",
284+
"The current working directory is \"/Users/biona001/Benjamin_Folder/UCLA/research/open mendel related/Tutorials/Kinship\".\n",
296285
"\n",
297286
"Keywords modified by the user:\n",
298287
"\n",
@@ -534,7 +523,7 @@
534523
" \n",
535524
"Reading the data.\n",
536525
"\n",
537-
"The current working directory is \"/Users/biona001/.julia/dev/MendelKinship/test/kinship_tutorial\".\n",
526+
"The current working directory is \"/Users/biona001/Benjamin_Folder/UCLA/research/open mendel related/Tutorials/Kinship\".\n",
538527
"\n",
539528
"Keywords modified by the user:\n",
540529
"\n",
@@ -113837,6 +113826,14 @@
113837113826
"source": [
113838113827
"skewness(my_zscore), kurtosis(my_zscore)"
113839113828
]
113829+
},
113830+
{
113831+
"cell_type": "markdown",
113832+
"metadata": {},
113833+
"source": [
113834+
"## Conclusions\n",
113835+
"MendelKinship provides a rapid way to calculate the theoretical kinship, which requires accurate pedigrees, and the empirical kinships, which requires genotypes at multiple markers. Further, it can compare these kinships when both the pedigrees and markers are available. "
113836+
]
113840113837
}
113841113838
],
113842113839
"metadata": {

Kinship/Mendel_Output.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)