-
Notifications
You must be signed in to change notification settings - Fork 55
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 #397 from ncborcherding/dev
v2.0.5
- Loading branch information
Showing
25 changed files
with
9,438 additions
and
9,162 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,20 +1,21 @@ | ||
Package: scRepertoire | ||
Title: A toolkit for single-cell immune receptor profiling | ||
Version: 2.0.4 | ||
Version: 2.0.5 | ||
Authors@R: c( | ||
person(given = "Nick", family = "Borcherding", role = c("aut", "cre"), email = "[email protected]"), | ||
person(given = "Qile", family = "Yang", role = c("aut"), email = "[email protected]"), | ||
person(given = "Qile", family = "Yang", role = c("aut"), email = "[email protected]"), | ||
person(given = "Ksenia", family = "Safina", role = c("aut"), email = "[email protected]")) | ||
Description: scRepertoire is a toolkit for processing and analyzing single-cell T-cell receptor (TCR) and immunoglobulin (Ig). The scRepertoire framework supports use of 10x, AIRR, BD, MiXCR, Omniscope, TRUST4, and WAT3R single-cell formats. The functionality includes basic clonal analyses, repertoire summaries, distance-based clustering and interaction with the popular Seurat and SingleCellExperiment/Bioconductor R workflows. | ||
License: MIT + file LICENSE | ||
Encoding: UTF-8 | ||
LazyData: true | ||
RoxygenNote: 7.3.1 | ||
RoxygenNote: 7.3.2 | ||
biocViews: Software, ImmunoOncology, SingleCell, Classification, Annotation, Sequencing | ||
Depends: | ||
ggplot2, | ||
R (>= 4.0) | ||
ggplot2, | ||
R (>= 4.0) | ||
Imports: | ||
assertthat, | ||
cubature, | ||
dplyr, | ||
evmix, | ||
|
@@ -60,5 +61,5 @@ Config/testthat/edition: 3 | |
Language: en-US | ||
LinkingTo: | ||
Rcpp | ||
URL: https://www.borch.dev/uploads/screpertoire/ | ||
URL: https://www.borch.dev/uploads/scRepertoire/ | ||
BugReports: https://github.com/ncborcherding/scRepertoire/issues |
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
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
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,56 @@ | ||
# scRepertoire objects | ||
|
||
isCombineContigsOutput <- function(obj) { | ||
is.list(obj) && all(sapply(obj, is.data.frame)) | ||
} | ||
assertthat::on_failure(isCombineContigsOutput) <- function(call, env) { | ||
paste0(deparse(call$obj), " is not an output of combineTCR or combineBCR") | ||
} | ||
|
||
isListOfTwoCombineContigsOutputs <- function(obj) { | ||
is.list(obj) && length(obj) == 2 && all(sapply(obj, isCombineContigsOutput)) | ||
} | ||
assertthat::on_failure(isListOfTwoCombineContigsOutputs) <- function(call, env) { | ||
paste0( | ||
deparse(call$obj), | ||
" is not a list of two outputs of combineTCR and combineBCR" | ||
) | ||
} | ||
|
||
isAnyValidProductOfCombineContigs <- function(obj) { | ||
isCombineContigsOutput(obj) || isListOfTwoCombineContigsOutputs(obj) | ||
} | ||
assertthat::on_failure(isAnyValidProductOfCombineContigs) <- function(call, env) { | ||
paste0( | ||
deparse(call$obj), | ||
" is not a valid output of combineTCR or combineBCR, nor a list of them" | ||
) | ||
} | ||
|
||
# bio objects | ||
|
||
is_seurat_object <- function(obj) inherits(obj, "Seurat") | ||
assertthat::on_failure(is_seurat_object) <- function(call, env) { | ||
paste0(deparse(call$obj), " is not a Seurat object") | ||
} | ||
|
||
is_se_object <- function(obj) inherits(obj, "SummarizedExperiment") | ||
assertthat::on_failure(is_se_object) <- function(call, env) { | ||
paste0(deparse(call$obj), " is not a SummarizedExperiment object") | ||
} | ||
|
||
is_seurat_or_se_object <- function(obj) { | ||
is_seurat_object(obj) || is_se_object(obj) | ||
} | ||
assertthat::on_failure(is_seurat_or_se_object) <- function(call, env) { | ||
paste0(deparse(call$obj), " is not a Seurat or SummarizedExperiment object") | ||
} | ||
|
||
# general objects | ||
|
||
is_named_numeric <- function(obj) { | ||
is.numeric(obj) && !is.null(names(obj)) | ||
} | ||
assertthat::on_failure(is_named_numeric) <- function(call, env) { | ||
paste0(deparse(call$obj), " is not a named numeric vector") | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.