-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
6,225 additions
and
2,965 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[run] | ||
branch = True | ||
include = genipe* | ||
source = genipe | ||
|
||
[report] | ||
exclude_lines = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Getting genipe's version to build | ||
genipe_version=$1 | ||
if [ -z $genipe_version ] | ||
then | ||
echo "usage: $0 VERSION" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
# Creating a directory for the build module | ||
mkdir -p conda_dist | ||
|
||
# Creating a directory for the skeleton | ||
mkdir -p skeleton | ||
pushd skeleton | ||
|
||
# Creating the skeleton | ||
conda skeleton pypi genipe --version $genipe_version | ||
|
||
# Checking that fetching genipe was successful | ||
if [ $? -ne 0 ] | ||
then | ||
echo "Error when creating skeleton for genipe version $genipe_version" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
# The different python versions and platforms | ||
python_versions="3.4 3.5" | ||
platforms="linux-32 linux-64 osx-64" | ||
|
||
# Building | ||
for python_version in $python_versions | ||
do | ||
# Building | ||
conda build --python $python_version genipe &> log.txt | ||
|
||
# Checking the build was completed | ||
if [ $? -ne 0 ] | ||
then | ||
cat log.txt | ||
echo "Error when building genipe $genipe_version (python" \ | ||
"$python_version)" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
# Fetching the file name of the build | ||
filename=$(egrep "^# [$] anaconda upload \S+$" log.txt | cut -d " " -f 5) | ||
|
||
# Checking the file exists | ||
if [ -z $filename ]||[ ! -e $filename ] | ||
then | ||
echo "Problem fetching file $filename" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
# Converting to the different platforms | ||
for platform in $platforms | ||
do | ||
conda convert -p $platform $filename -o ../conda_dist | ||
|
||
# Checking the conversion was completed | ||
if [ $? -ne 0 ] | ||
then | ||
echo "Problem converting genipe $genipe_version (python" \ | ||
"$python_version) to $platform" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
done | ||
done | ||
|
||
popd | ||
rm -rf skeleton | ||
|
||
# Indexing | ||
pushd conda_dist | ||
conda index * | ||
popd |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
.. _stats-exec-time: | ||
|
||
Statistical Analysis Execution Time | ||
==================================== | ||
|
||
GWAS analysis of imputed markers is computationally intensive. While it is | ||
feasible to run such analyses on some simple models like linear and logistic | ||
regression, more complex models like Cox regression and mixed linear models | ||
require more computing power or specialized implementations. | ||
|
||
We have optimized the mixed linear model analysis to significantly decrease | ||
computation time. Using a two-step approach (as described by Sikorska *et al.*, | ||
2015 [doi: `10.1038/ejhg.2015.1 | ||
<http://www.nature.com/ejhg/journal/v23/n10/abs/ejhg20151a.html>`_]), the | ||
execution time is comparable to a simple linear regression. Prior to | ||
optimization, the analysis of chromosome 2 was performed in 53 hours for 33 | ||
sub-analysis with 6 threads each (which corresponds to 198 threads). | ||
|
||
The following figure shows the execution time for a typical imputation analysis | ||
of chromosome 2, imputed for 5,045 samples. Chromosome 2 was composed a total | ||
of 1,170,797 loci, where 961,019 were of sufficient quality, and 528,932 had a | ||
MAF higher than 1%. The black dashed line is the execution time for Plink. | ||
|
||
.. figure:: _static/images/execution_time.png | ||
:align: center | ||
:width: 70% | ||
:alt: Statistical analysis exection time. | ||
|
||
.. note:: | ||
|
||
On some installation, when executing the analysis with *n* threads, | ||
*OPENBLAS* automatically uses all the CPUs for each thread, such that the | ||
load quickly increases to *n* times the number of CPUs. Such high load slows | ||
down the analysis considerably. | ||
|
||
To avoid this, always export the following environment variable and specify | ||
the total number of threads using the ``--nb-process`` option. | ||
|
||
.. code-block:: bash | ||
export OPENBLAS_NUM_THREADS=1 | ||
We are planning to optimize the Cox's proportional hazard regression in the | ||
near future. |
Oops, something went wrong.