-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from JonBarenboim/master
Accept covariance matrix as input
- Loading branch information
Showing
7 changed files
with
98 additions
and
18 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,2 +1,4 @@ | ||
exportPattern("empiricalBrownsMethod") | ||
exportPattern("kostsMethod") | ||
export("calculateCovariances") | ||
export("calculateKostCovariance") |
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,20 @@ | ||
\name{calculateCovariances} | ||
\alias{calculateCovariances} | ||
\title{Calculate pairwise covariances between transformed raw data vectors} | ||
\description{Calculate pairwise covariances between transformed raw data vectors} | ||
\usage{ | ||
calculateCovariances(data_matrix) | ||
} | ||
\arguments{ | ||
\item{data_matrix}{An m x n numeric matrix with m variables in rows and n | ||
samples in columns.} | ||
} | ||
\value{ | ||
The output is an m x m matrix of calculated covariances | ||
} | ||
\examples{ | ||
data(ebmTestdata) | ||
glypGenes <- pathways$gene[pathways$pathway == "GLYPICAN 3 NETWORK"] | ||
glypDat <- as.matrix(dat[match(glypGenes, dat$V1), 2:ncol(dat)]) | ||
calculateCovariances(glypDat) | ||
} |
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,21 @@ | ||
\name{calculateKostCovariance} | ||
\alias{calculateKostCovariance} | ||
\title{Calculate pairwise covariances between transformed raw data vectors} | ||
\description{Calculate pairwise covariances between transformed raw data vectors | ||
using Kost's polynomial fit and the pearson correlation function} | ||
\usage{ | ||
calculateKostCovariance(data_matrix) | ||
} | ||
\arguments{ | ||
\item{data_matrix}{An m x n numeric matrix with m variables in rows and n | ||
samples in columns.} | ||
} | ||
\value{ | ||
The output is an m x m matrix of calculated covariances | ||
} | ||
\examples{ | ||
data(ebmTestdata) | ||
glypGenes <- pathways$gene[pathways$pathway == "GLYPICAN 3 NETWORK"] | ||
glypDat <- as.matrix(dat[match(glypGenes, dat$V1), 2:ncol(dat)]) | ||
calculateKostCovariance(glypDat) | ||
} |
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