-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:antagomir/netresponse
- Loading branch information
Showing
101 changed files
with
427 additions
and
219 deletions.
There are no files selected for viewing
Empty file.
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,8 +1,8 @@ | ||
Package: netresponse | ||
Type: Package | ||
Title: netresponse: functional network analysis | ||
Version: 1.17.13 | ||
Date: 2014-11-05 | ||
Title: Functional Network Analysis | ||
Version: 1.19.0 | ||
Date: 2015-03-24 | ||
Author: Leo Lahti, Olli-Pekka Huovilainen, Antonio Gusmao and Juuso Parkkinen | ||
Maintainer: Leo Lahti <[email protected]> | ||
Description: Algorithms for functional network analysis. Includes an | ||
|
@@ -21,14 +21,12 @@ Imports: | |
ggplot2, | ||
graph, | ||
igraph, | ||
methods, | ||
parallel, | ||
plyr, | ||
qvalue, | ||
RColorBrewer | ||
URL: https://github.com/antagomir/netresponse | ||
BugReports: https://github.com/antagomir/netresponse/issues | ||
LazyLoad: yes | ||
biocViews: CellBiology, Clustering, GeneExpression, Genetics, Network, | ||
GraphAndNetwork, DifferentialExpression, Microarray, | ||
Transcription |
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
Empty file.
Empty file.
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
Empty file.
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
Empty file.
Empty file.
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,16 +1,3 @@ | ||
# Copyright (C) 2010-2013 Leo Lahti | ||
# Contact: Leo Lahti <[email protected]> | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2, or (at your option) | ||
# any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
|
||
# Fixme: finish this later | ||
#order.samples <- function (subnet.id, model, phenodata, which.factor, response, method = "hypergeometric") { | ||
# | ||
|
@@ -51,19 +38,26 @@ | |
#' | ||
#' @return A data frame with elements 'ordered.responses' which gives a data | ||
#' frame of responses ordered by enrichment score for the investigated sample. | ||
#' The subnetwork, response id and enrichment score are shown. The method field | ||
#' indicates the enrichment calculation method. The sample field lists the | ||
#' samples et for which the enrichments were calculated. The info field lists | ||
#' additional information on enrichment statistics. | ||
#' The subnetwork, response id and enrichment score are shown. | ||
#' The method field indicates the enrichment calculation method. | ||
#' The sample field lists the samples et for which the enrichments | ||
#' were calculated. | ||
#' The info field lists additional information on enrichment statistics. | ||
#' @note Tools for analyzing end results of the model. | ||
#' @author Leo Lahti \email{leo.lahti@@iki.fi} | ||
#' @references See citation("netresponse") for citation details. | ||
#' @keywords utilities | ||
#' @export | ||
#' @examples # | ||
#' # - for given sample/s (factor level), order responses (across all subnets) by association strength (enrichment score) | ||
#' #order.responses(model, sample, method = "hypergeometric") # overrepresentation | ||
order.responses <- function (models, sample, method = "hypergeometric", min.size = 2, max.size = Inf, min.responses = 2, subnet.ids = NULL, verbose = FALSE, data = NULL) { | ||
#' # - for given sample/s (factor level), | ||
#' # order responses (across all subnets) by association strength | ||
#' # (enrichment score); overrepresentation | ||
#' # order.responses(model, sample, method = "hypergeometric") | ||
order.responses <- function (models, sample, method = "hypergeometric", | ||
min.size = 2, max.size = Inf, | ||
min.responses = 2, | ||
subnet.ids = NULL, | ||
verbose = FALSE, data = NULL) { | ||
|
||
# Given sample (for instance set of samples associated with a given factor | ||
# level) order the responses across all subnetworks based on their | ||
|
@@ -89,28 +83,22 @@ order.responses <- function (models, sample, method = "hypergeometric", min.size | |
} | ||
|
||
|
||
|
||
|
||
#' List responses with significant associations to a given sample group. | ||
#' | ||
#' List responses with significant associations to a given sample group. | ||
#' | ||
#' | ||
#' @param model NetResponseModel object. | ||
#' @param sample User-specified samples group for which the enrichments are | ||
#' calculated. For instance, an annotation category. | ||
#' @param qth q-value threshold for enrichments | ||
#' @param method Enrichment method. | ||
#' @return Table containing statistics of the significantly associated | ||
#' responses. | ||
#' @return Statistics of the significantly associated responses. | ||
#' @author Leo Lahti \email{leo.lahti@@iki.fi} | ||
#' @seealso response.enrichment | ||
#' @references See citation("netresponse") | ||
#' @keywords utilities | ||
#' @export | ||
#' @examples # | ||
#' | ||
list.significant.responses <- function (model, sample, qth = 1, method = "hypergeometric") { | ||
#' @examples # | ||
list.significant.responses <- function (model, sample, qth = 1, | ||
method = "hypergeometric") { | ||
|
||
# Order responses according to their association with the given sample group | ||
o <- order.responses(model, sample = sample, method = "hypergeometric")$ordered.responses | ||
|
Oops, something went wrong.