Skip to content

Commit

Permalink
release check 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud Ahmed authored and Mahmoud Ahmed committed Dec 24, 2018
1 parent 0a429c1 commit f608622
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 26 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: cRegulome
Type: Package
Version: 0.2.0
Version: 0.3.0
Title: Obtain and Visualize Regulome-Gene Expression Correlations in Cancer
Description: Builds a 'SQLite' database file of pre-calculated transcription
factor/microRNA-gene correlations (co-expression) in cancer from the
Expand All @@ -10,7 +10,8 @@ Description: Builds a 'SQLite' database file of pre-calculated transcription
License: GPL-3
Authors@R: person("Mahmoud", "Ahmed",
email = "mahmoud.s.fahmy@students.kasralainy.edu.eg",
role = c("aut", "cre"))
role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-4377-6541"))
URL: https://github.com/ropensci/cRegulome
BugReports: https://github.com/ropensci/cRegulome/issues
Encoding: UTF-8
Expand Down
11 changes: 10 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,13 @@
# cRegulome 0.2.0

- Reduced code dependencies
- Improved code performance
- Improved code performance

# cRegulome 0.2.0

- Bug fix: since 0.2.0 the argument targets_only did not work properly.
The bug is fixed and tested in this release.
- Added the option directed to cor_igraph which allowes for constructing
a directed graph when desired.
- Added the option to limit the query output of get_tf and get_mir to
a predifined set of genes.
20 changes: 10 additions & 10 deletions R/get_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ get_mir <- function(conn, mir, study, min_abs_cor, max_num,
for(s in 1:length(study)) {
# when targets are neither requested provided
if(!targets_only & missing(targets)) {
# construct query statment
# construct query statement
stat <- stat_make(mir[m],
study = study[s],
min_abs_cor = min_abs_cor,
Expand Down Expand Up @@ -191,7 +191,7 @@ get_mir <- function(conn, mir, study, min_abs_cor, max_num,
tars <- intersect(tars, targets)
}

# construct a query statment, with targets
# construct a query statement, with targets
stat <- stat_make(mir[m],
study = study[s],
min_abs_cor = min_abs_cor,
Expand Down Expand Up @@ -324,7 +324,7 @@ get_tf <- function(conn, tf, study, min_abs_cor, max_num,
for(s in 1:length(study)) {
# when targets are neither requested provided
if(!targets_only & missing(targets)) {
# construct query statment
# construct query statement
stat <- stat_make(tf[m],
study = study[s],
min_abs_cor = min_abs_cor,
Expand Down Expand Up @@ -359,7 +359,7 @@ get_tf <- function(conn, tf, study, min_abs_cor, max_num,
tars <- intersect(tars, targets)
}

# construct a query statment, with targets
# construct a query statement, with targets
stat <- stat_make(tf[m],
study = study[s],
min_abs_cor = min_abs_cor,
Expand Down Expand Up @@ -396,9 +396,9 @@ get_tf <- function(conn, tf, study, min_abs_cor, max_num,
return(dat)
}

#' Make A SQL statment
#' Make A SQL statement
#'
#' Not meant to be called direclty by the user.
#' Not meant to be called directly by the user.
#'
#' @param reg A \code{character} vector of one or more regulator ID.
#' @param study A \code{character} vector of The Cancer Genome Atlas (TCGA)
Expand Down Expand Up @@ -497,7 +497,7 @@ stat_make <- function(reg, study, min_abs_cor, max_num, targets,

#' Collect data from SQLite database
#'
#' Not meant to be called direclty by the user.
#' Not meant to be called directly by the user.
#'
#' @param conn A connection such as this returned by
#' \code{\link[DBI]{dbConnect}}
Expand Down Expand Up @@ -531,9 +531,9 @@ stat_collect <- function(conn, study, stat, type = 'mir') {
return(df)
}

#' Make A SQL statment to extract target features
#' Make A SQL statement to extract target features
#'
#' Not meant to be called direclty by the user.
#' Not meant to be called directly by the user.
#'
#' @inheritParams stat_make
#'
Expand All @@ -553,7 +553,7 @@ stat_make_targets <- function(reg, study, type = 'mir') {

#' Collect target features from SQLite database
#'
#' Not meant to be called direclty by the user.
#' Not meant to be called directly by the user.
#'
#' @inheritParams stat_collect
#'
Expand Down
6 changes: 3 additions & 3 deletions R/methods.tidy.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ cor_tidy.cTF <- function(ob) {
#' objects.
#'
#' @inheritParams cor_plot
#' @param directed A \code{logical} when \code{FALSE} the graph is undirected
#' @param directed A \code{logical} when \code{FALSE} the graph is indirected
#'
#' @return An \code{igraph} object
#'
Expand Down Expand Up @@ -208,7 +208,7 @@ cor_igraph.cTF <- function(ob, directed = FALSE) {

#' Prepare correlation data for plotting
#'
#' Not meant to be called direclty by the user.
#' Not meant to be called directly by the user.
#'
#' @param ob A \link{cmicroRNA} or \link{cTF} object such as this returned by
#' calling \link{cmicroRNA} or \link{cTF}.
Expand All @@ -219,7 +219,7 @@ cor_igraph.cTF <- function(ob, directed = FALSE) {
#' @param add_dir A \code{logical} default TRUE for whether to add a column
#' called Direction that has the direction of the correlation; positive or
#' negative.
#' @param add_corr A \code{logical} default TRUE for whether to add a colum
#' @param add_corr A \code{logical} default TRUE for whether to add a column
#' called Correlation that has the absolute value of the correlation
#'
#' @return A \code{data.frame}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![codecov](https://codecov.io/gh/ropensci/cRegulome/branch/master/graph/badge.svg)](https://codecov.io/gh/ropensci/cRegulome)
[![Build status](https://ci.appveyor.com/api/projects/status/gcmojtcsyt7rcwtk?svg=true)](https://ci.appveyor.com/project/ropensci/cregulome)
[![](https://badges.ropensci.org/149_status.svg)](https://github.com/ropensci/onboarding/issues/149)
[![CRAN version](https://img.shields.io/badge/CRAN-v0.1.0-blue.svg)](https://CRAN.R-project.org/package=cRegulome)
[![CRAN version](https://img.shields.io/badge/CRAN-v0.3.0-blue.svg)](https://CRAN.R-project.org/package=cRegulome)
![downloads](https://cranlogs.r-pkg.org/badges/grand-total/cRegulome)

# cRegulome
Expand Down
6 changes: 6 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ This is a new release, so there are no reverse dependencies.
* Submission v0.2.0
* Reduced code dependencies
* Improved code performance

## v0.3.0

* Submission v0.3.0
* A bug fix
* Minor changes to get_tf, get_mir and cor_igraph
2 changes: 1 addition & 1 deletion man/cor_igraph.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/cor_prep.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/stat_collect.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/stat_collect_targets.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/stat_make.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/stat_make_targets.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f608622

Please sign in to comment.