Skip to content

Commit

Permalink
added import in NAMESPACE
Browse files Browse the repository at this point in the history
  • Loading branch information
QingfeiPan committed Aug 5, 2024
1 parent 8180107 commit af5ed20
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 3 deletions.
8 changes: 7 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ export(readInput_h5ad)
export(readInput_table)
export(updateSparseEset)
exportClasses(SparseExpressionSet)
importFrom(Biobase,ExpressionSet)
import(Biobase)
import(ggplot2)
import(igraph)
import(limma)
import(pheatmap)
import(rmarkdown)
importFrom(dplyr,filter)
1 change: 1 addition & 0 deletions R/clustering_analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ addMICAoutput <- function(input_eset,
#' @param fontsize.axis_text Integer, font size of the axis text. Default: 8.
#'
#' @return A UMAP or T-SNE plot. It also print the plot to screen.
#' @import ggplot2
#' @export
#'
#' @examples
Expand Down
1 change: 1 addition & 0 deletions R/differential_analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ combinePvalVector <- function(pvals,
#' @param use_method Character, method used for differential analysis: "`limma`" (the default), "`wilcoxon`", and "`t.test`".
#'
#' @return A data frame. Rows are genes/drivers, and columns are 11 statistics of differential analysis.
#' @import limma
#'
#' @examples
#' ## to call this function
Expand Down
3 changes: 2 additions & 1 deletion R/manipulate_sparseEset.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#'
#' @title SparseExpressionSet
#' @exportClass SparseExpressionSet
#' @importFrom Biobase ExpressionSet
#' @import Biobase
methods::setClass(Class = "SparseExpressionSet",
contains = "ExpressionSet",
prototype = methods::prototype(methods::new("VersionedBiobase", versions = c(Biobase::classVersion("ExpressionSet"), SparseExpressionSet = "1.0.0" )))
Expand Down Expand Up @@ -267,6 +267,7 @@ combineSparseEset <- function(eset_list,
#' @param addMetaData Logical, whether to update the meta data of features and cells based on the expression matrix. Default: `FALSE`.
#'
#' @return A sparse eset object with updated information
#' @import Biobase
#' @export
#'
#' @examples
Expand Down
4 changes: 4 additions & 0 deletions R/network_analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#' @param driver_type Character, type of drivers to be extracted: "`TF`" for transcriptional factor, "`SIG`" for signaling genes, and "`TF_SIG`" for both. Default: "`TF`".
#'
#' @return A vector of pre-defined driver genes
#' @importFrom dplyr filter
#' @export
#'
#' @examples
Expand Down Expand Up @@ -72,6 +73,7 @@ getDriverList <- function(species_type = "hg",
#' - a "**`SIG`**" folder containing a "**`.sig.txt`**" file: this file contains the SIG driver list.
#' - a bash script (**`runSJARACNe.sh`**) to run SJARACNe. Further modification is needed to run it.
#' - a json file (**`config_cwlexec.json`**) containing parameters to run SJARACNe.
#' @importFrom dplyr filter
#' @export
#'
#' @examples
Expand Down Expand Up @@ -353,6 +355,8 @@ generateSJARACNeInput <- function(input_eset,
#' @param prefix Character or `NULL`, the character string to add in front of the html report file name. Default: `NULL`. Ignored if `generate_html` = `FALSE`.
#'
#' @return This function will print the statistics of several key quality metrics of network(s). If `generate_html` is set `TRUE`, it also generates a html file of quality control report and save it to the same folder of the network file (by default) or the folder specified by "`outdir`".
#' @import igraph
#' @import rmarkdown
#' @export
#'
#' @examples
Expand Down
2 changes: 2 additions & 0 deletions R/visualization.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#' @param jitter.size Numeric, size of the jittered points. Default: 0.1.
#'
#' @return A ggplot object with one or multiple violin plots
#' @import ggplot2
#' @export
#'
#' @examples
Expand Down Expand Up @@ -400,6 +401,7 @@ feature_bubbleplot <- function(input_eset,
#' @param cluster_rows Logical, whether to cluster the rows. If `TRUE`, the rows will be clustered. If `FALSE`, the rows are displays following the order in '`features`'. Default: `FALSE`.
#'
#' @return Print the heatmap to screen
#' @import pheatmap
#' @export
#'
#' @examples
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("jyyulab/scMINER@dev-qpan")
devtools::install_github("jyyulab/scMINER")
```

### Install MICA and SJARACNe
Expand Down

0 comments on commit af5ed20

Please sign in to comment.