Skip to content

Commit

Permalink
working through check()
Browse files Browse the repository at this point in the history
  • Loading branch information
ncborcherding committed May 1, 2024
1 parent da69b4d commit 6cb4bd1
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
^codecov\.yml$
^\.github$
^www$
4 changes: 4 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ biocViews: Software, ImmunoOncology, SingleCell, Classification, Annotation, Seq
Depends:
R (>= 4.0)
Imports: keras,
methods,
SingleCellExperiment,
stats,
stringi,
stringr
Suggests:
BiocStyle,
knitr,
scRepertoire,
spelling,
testthat
VignetteBuilder: knitr
Language: en-US
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ export(property.encoder)
export(tokenize.sequences)
importFrom(SingleCellExperiment,colData)
importFrom(keras,array_reshape)
importFrom(methods,slot)
importFrom(stats,setNames)
importFrom(stringi,stri_rand_strings)
importFrom(stringr,str_split)
1 change: 1 addition & 0 deletions R/getIR.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ getIR <- function(input.data,
}

#' @importFrom SingleCellExperiment colData
#' @importFrom methods slot
.grabMeta <- function(sc) {
if (inherits(x=sc, what ="Seurat")) {
meta <- data.frame(sc[[]], slot(sc, "active.ident"))
Expand Down
1 change: 1 addition & 0 deletions R/one.hot.encoder.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#' This will be overrode if using a motif approach (split.length > 1).
#'
#' @importFrom keras array_reshape
#' @importFrom stats setNames
#'
#' @export
#' @return One hot encoded amino acid sequences in a matrix or 3D array
Expand Down
6 changes: 3 additions & 3 deletions R/property.encoder.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#' min.length = 8,
#' max.length = 16)
#'
#' sequence.matrix <- one.hot.encoder(new.sequences,
#' method.to.use = "VHSE",
#' convert.to.matrix = TRUE)
#' sequence.matrix <- property.encoder(new.sequences,
#' method.to.use = "VHSE",
#' convert.to.matrix = TRUE)
#'
#' @param input.sequences The amino acid sequences to use
#' @param max.length Additional length to pad, NULL will pad sequences
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
# * https://testthat.r-lib.org/reference/test_package.html#special-files

library(testthat)
library(Trex)
library(Apex)

test_check("Trex")
test_check("Apex")

0 comments on commit 6cb4bd1

Please sign in to comment.