Skip to content

Commit

Permalink
merge Jin's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hua-Zhou committed Sep 20, 2016
2 parents e0c5811 + b30d302 commit fbfedc4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,29 @@
[![Coverage Status](https://coveralls.io/repos/github/OpenMendel/VarianceComponentModels.jl/badge.svg?branch=master)](https://coveralls.io/github/OpenMendel/VarianceComponentModels.jl?branch=master)
[![codecov](https://codecov.io/gh/OpenMendel/VarianceComponentModels.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/OpenMendel/VarianceComponentModels.jl)

VarianceComponentModels provides computational routines for fitting and testing variance component models.
This [Julia](http://julialang.org/) package provides computational routines for fitting and testing variance component models. VarianceComponentModels is one package of the umbrella [OpenMendel](https://openmendel.github.io) project.

[![](https://img.shields.io/badge/docs-current-blue.svg)](https://openmendel.github.io/VarianceComponentModels.jl/latest/)

## Installation

Use the Julia package manager to install VarianceComponentModels.jl:
*Note: Three OpenMendel packages - [SnpArrays](https://github.com/OpenMendel/SnpArrays.jl), [Search](https://github.com/OpenMendel/Search.jl), and [MendelBase](https://github.com/OpenMendel/MendelBase.jl) must be installed before any Mendel analysis packages will run.*

Within Julia, use the package manager to install VarianceComponentModels:

Pkg.clone("git@github.com:OpenMendel/VarianceComponentModels.jl.git")
Pkg.clone("https://github.com/OpenMendel/VarianceComponentModels.jl.git")

## Documentation
This package supports Julia v0.4.

[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://OpenMendel.github.io/VarianceComponentModels.jl/latest)
## Citation

## OpenMendel
If you use this analysis package in your research, please cite the following reference in the resulting publications:

VarianceComponentModels is one component of the umbrella [OpenMendel](https://github.com/OpenMendel) project. See [cite]() if you use the code in your research.
*Lange K, Papp JC, Sinsheimer JS, Sripracha R, Zhou H, Sobel EM (2013) Mendel: The Swiss army knife of genetic analysis programs. Bioinformatics 29:1568-1570.*

<!--- ## Contributing
We welcome contributions to this Open Source project. To contribute, follow this procedure ... --->

## Acknowledgments
This project is supported through National Institutes of Health R01 HG006139.

This project is supported by the National Institutes of Health under NIGMS awards R01GM053275 and R25GM103774 and NHGRI award R01HG006139.
4 changes: 3 additions & 1 deletion src/VarianceComponentModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ immutable TwoVarCompVariateRotate{T <: AbstractFloat, YT <: AbstractVecOrMat,
eigval::Vector{T}
eigvec::Matrix{T}
logdetV2::T

# inner constructor
function TwoVarCompVariateRotate(Yrot::AbstractVecOrMat{T},
Xrot::AbstractVecOrMat{T}, eigval::Vector{T}, eigvec::Matrix{T}, logdetV2::T)
Expand All @@ -202,7 +203,7 @@ immutable TwoVarCompVariateRotate{T <: AbstractFloat, YT <: AbstractVecOrMat,
end

"""
TwoVarCompVariateRotate(Yrot, Xrot, eigval, logdetV2)
TwoVarCompVariateRotate(Yrot, Xrot, eigval, eigvec,logdetV2)
Default constructor of a [`TwoVarCompVariateRotate`](@ref) instance.
"""
Expand All @@ -213,6 +214,7 @@ function TwoVarCompVariateRotate(
eigvec::Matrix,
logdetV2::Real)

## JZ ###
TwoVarCompVariateRotate{eltype(Yrot), typeof(Yrot), typeof(Xrot)}(Yrot, Xrot,
eigval, eigvec, logdetV2)
end
Expand Down

0 comments on commit fbfedc4

Please sign in to comment.