Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.99.2 update to bioconductor submission #121

Closed
wants to merge 196 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
196 commits
Select commit Hold shift + click to select a range
5e18571
add description
dimalvovs Dec 7, 2023
5e38f97
update docs
dimalvovs Dec 7, 2023
112cc70
adjust tests (to tiny)
dimalvovs Dec 7, 2023
c387982
Init orphan branch
kjkrishnan Jan 3, 2024
34f521e
Remove temp file
kjkrishnan Jan 3, 2024
de0f784
initial gha for site updates
kjkrishnan Jan 3, 2024
81228b9
add readme
kjkrishnan Jan 3, 2024
319d227
Update document.yaml
kjkrishnan Jan 5, 2024
837e8f6
make logo available for README
kjkrishnan Jan 5, 2024
417ff5f
Merge branch 'gh-pages' of https://github.com/FertigLab/domino2 into …
kjkrishnan Jan 5, 2024
ba2cbea
update domino class name
kjkrishnan Jan 5, 2024
b006946
Deploying to gh-pages from @ FertigLab/domino2@1c68aa2699559fd3743a21…
kjkrishnan Jan 5, 2024
3f05be2
Deploying to gh-pages from @ FertigLab/domino2@1d4ea03b72aaaad06a5127…
jmitchell81 Feb 2, 2024
dafac98
fix bslib preset
kjkrishnan Feb 13, 2024
0662fce
Create pull_request_template.md
dimalvovs Feb 21, 2024
d8c0f77
Merge master branch so pkgdown will be up to date
kjkrishnan Mar 1, 2024
4677c74
Update documentation
kjkrishnan Mar 1, 2024
55e7d0d
Rebuild pkgdown files after merge from master branch
kjkrishnan Mar 1, 2024
caddea7
Merge branch 'krishnan_bslib_pkgdown' of https://github.com/FertigLab…
kjkrishnan Mar 1, 2024
2877682
Separate cellphonedb and scenic vignettes
kjkrishnan Mar 1, 2024
db1a9a8
cleanup and domino2 -> dominoSignal
kjkrishnan Mar 1, 2024
808fed4
Update documentation
kjkrishnan Mar 1, 2024
71e43ac
initial create_domino.R
jmitchell81 Mar 4, 2024
4f50596
Merge pull request #84 from FertigLab/dimalvovs-patch-1
jmitchell81 Mar 4, 2024
b432d7a
Merge pull request #88 from FertigLab/master
jmitchell81 Mar 4, 2024
1ba512b
initial parse function commit
jmitchell81 Mar 4, 2024
e2cd820
rename variables
jmitchell81 Mar 6, 2024
d0ec34e
apply variable name fix
jmitchell81 Mar 6, 2024
598c2de
read_rl_map_genes test
jmitchell81 Mar 6, 2024
63324c0
document test purpose
jmitchell81 Mar 6, 2024
176538d
initial read_rl_map_complexes
jmitchell81 Mar 6, 2024
2a99ec7
initial unit test read_rl_map_complexes
jmitchell81 Mar 6, 2024
c2b9310
merge previous refactoring
dimalvovs Mar 8, 2024
16a41e7
add required var checker
dimalvovs Mar 8, 2024
a5afcfd
fix merge
dimalvovs Mar 8, 2024
0302f67
Update documentation
dimalvovs Mar 8, 2024
8972e0b
add missing doc entry
dimalvovs Mar 8, 2024
489eab7
Merge branch '94-input-checks-utils-+-customize-for-arguments' of git…
dimalvovs Mar 8, 2024
ebf6059
write_rec_lig_linkages initial
jmitchell81 Mar 8, 2024
7d6c962
initial unit test
jmitchell81 Mar 8, 2024
a2f9be6
add test for bad rl_map
dimalvovs Mar 8, 2024
87b77f9
add test for bad features
dimalvovs Mar 8, 2024
d26bd01
add test for seurat/counts params
dimalvovs Mar 8, 2024
d32a5c0
add min_thresh tests
dimalvovs Mar 8, 2024
b52fd24
add test for tf_selection_method
dimalvovs Mar 8, 2024
1a8dd29
initial select_cluster_tf
jmitchell81 Mar 8, 2024
5d04a0f
select_cluster_tf unit test
jmitchell81 Mar 8, 2024
879071a
add test for arg range
dimalvovs Mar 8, 2024
07a06e2
initial test_tfs_rec_linkage
jmitchell81 Mar 8, 2024
cf876e4
allow not checking class
dimalvovs Mar 8, 2024
4f2b267
add names and value checkers
dimalvovs Mar 8, 2024
726f0ea
update tests
dimalvovs Mar 8, 2024
ea34261
rewrite input checks
dimalvovs Mar 8, 2024
5fd7f60
update documentation
dimalvovs Mar 8, 2024
e791271
suppress cor.test warnings
jmitchell81 Mar 10, 2024
d6704d1
test_tfs_rec_linkage unit test initial
jmitchell81 Mar 10, 2024
18dcc7b
filter_tf_regulon_receptors initial
jmitchell81 Mar 10, 2024
22be917
filter_tf_regulon_receptors unit test initial
jmitchell81 Mar 10, 2024
b218c78
Merge pull request #92 from FertigLab/91-parse_rl_map
jmitchell81 Mar 11, 2024
d7dfd33
Merge branch 'dev' into 93-parse-rl_map-complexes
jmitchell81 Mar 11, 2024
6bb6299
Merge pull request #95 from FertigLab/93-parse-rl_map-complexes
jmitchell81 Mar 11, 2024
5a727bc
Merge branch 'dev' into 96-build_rl_linkages
jmitchell81 Mar 11, 2024
0fb2687
Merge pull request #97 from FertigLab/96-build_rl_linkages
jmitchell81 Mar 11, 2024
0acf9ee
Merge branch 'dev' into 98-run_feature_de
jmitchell81 Mar 11, 2024
898c773
Merge pull request #99 from FertigLab/98-run_feature_de
jmitchell81 Mar 11, 2024
f469031
Merge branch 'dev' into 89-calculate_correlations
jmitchell81 Mar 11, 2024
9fc9cbe
Merge pull request #101 from FertigLab/89-calculate_correlations
jmitchell81 Mar 11, 2024
e0cbda5
Merge pull request #100 from FertigLab/94-input-checks-utils-+-custom…
jmitchell81 Mar 11, 2024
c1ccdba
assess_complex_receptor_cor initial
jmitchell81 Mar 11, 2024
cde9f9f
test assess_complex_receptor_cor initial
jmitchell81 Mar 11, 2024
e735a3e
adjust unit test spacing
jmitchell81 Mar 11, 2024
fe9e399
Merge pull request #104 from FertigLab/correlation_of_receptor_complexes
jmitchell81 Mar 11, 2024
326fb85
calc_rec_percentage initial
jmitchell81 Mar 11, 2024
55ef11e
test calc_rec_percentage initial
jmitchell81 Mar 11, 2024
6ef0f58
Merge branch 'dev' into receptor_percent_expression
jmitchell81 Mar 11, 2024
1c892bd
Merge pull request #106 from FertigLab/receptor_percent_expression
jmitchell81 Mar 11, 2024
457e7e6
merge earlier changes
dimalvovs Mar 13, 2024
084860c
merge earlier changes
dimalvovs Mar 13, 2024
db401c0
rewrite input checks
dimalvovs Mar 13, 2024
9c3083a
fix copypaste error
dimalvovs Mar 13, 2024
4efa5f1
rewrite readins
dimalvovs Mar 13, 2024
5fd637f
rewrite python/R bool conversion
dimalvovs Mar 13, 2024
bd01e01
address case of character vector passed as param
dimalvovs Mar 13, 2024
f53f030
Merge pull request #109 from FertigLab/108-create_rl_map_cellphonedb-…
dimalvovs Mar 18, 2024
d287cbc
add script to generate SCE example data
kjkrishnan Mar 20, 2024
bb82dca
change Seurat objects to SCE objects
kjkrishnan Mar 20, 2024
74b744a
remove duplicate dependencies folder
kjkrishnan Mar 20, 2024
e905d78
Remove seurat arguments from functions
kjkrishnan Mar 20, 2024
72be0dc
Change code, URL, example references for domino2 to dominoSignal
kjkrishnan Mar 20, 2024
e9792a6
Update documentation to dominoSignal
kjkrishnan Mar 20, 2024
02a5f60
Update library call for domino2 to dominoSignal
kjkrishnan Mar 20, 2024
229016a
rename in DESCRIPTION
dimalvovs Mar 21, 2024
330673f
rebuilt testdata
dimalvovs Mar 21, 2024
486d847
udate zenodo link
dimalvovs Mar 21, 2024
d8502f6
resolve conflicts
dimalvovs Mar 21, 2024
30ee98f
first working version w harcoded path
dimalvovs Mar 21, 2024
533a257
rm hard path, update zenodo, update tiny objects
dimalvovs Mar 21, 2024
79ea3e4
import singleCellExperiment, fix incorrect correlation access functio…
kjkrishnan Mar 26, 2024
e9e6744
Organize structure of articles
kjkrishnan Mar 26, 2024
ee13e00
Update version and installation directions
kjkrishnan Mar 26, 2024
5d3ca96
update object use in vignettes
kjkrishnan Mar 26, 2024
1a1fcf4
update documentation to remove references to seurat objects
kjkrishnan Mar 26, 2024
405a295
fix & to && in utility function
kjkrishnan Mar 26, 2024
4218fba
Clear site to rebuild without unneeded dependencies
kjkrishnan Mar 26, 2024
d226b51
rebuild site
kjkrishnan Mar 26, 2024
cbc3676
update class of stored object to "domino"
dimalvovs Mar 26, 2024
45d6242
Merge branch 'dev' into krishnan_bslib_pkgdown
dimalvovs Mar 27, 2024
5a883f6
update zenodo paths
dimalvovs Mar 27, 2024
51bc6e7
rm renamed vignette
dimalvovs Mar 27, 2024
7676469
rename package name
dimalvovs Mar 27, 2024
f4c201c
Revert "rm renamed vignette"
dimalvovs Mar 27, 2024
5192668
remove resurrected domino2 vignette
dimalvovs Mar 27, 2024
a198338
resurrect domino2.rmd again
dimalvovs Mar 27, 2024
e53371c
hide .nojekyll from build
dimalvovs Mar 27, 2024
bc7e111
Update documentation
dimalvovs Mar 27, 2024
03a644d
Undo & operator error, add caching to getting started vignette, chang…
kjkrishnan Mar 27, 2024
984d590
Add SingleCellExperiment to suggested package, remove ser from argume…
kjkrishnan Mar 27, 2024
0b3131b
remove argument checks for seurat object in create domino
kjkrishnan Mar 27, 2024
0e79f61
Rebuild pkgdown files
kjkrishnan Mar 27, 2024
c27c4ad
Merge pull request #85 from FertigLab/krishnan_bslib_pkgdown
dimalvovs Mar 28, 2024
92615e8
Update r-build-check.yml
dimalvovs Mar 28, 2024
b305964
Update pull_request_template.md
dimalvovs Mar 28, 2024
6300a5c
debug example_data.R
dimalvovs Mar 28, 2024
3690d72
change pbmc dom save path
dimalvovs Mar 28, 2024
a3c088a
change zenodo link
dimalvovs Mar 28, 2024
44c7441
add names to clusters in example data
dimalvovs Mar 28, 2024
3317163
replace NAs with zeroes to prove that vignette builds
dimalvovs Mar 28, 2024
644e0a1
Merge pull request #111 from FertigLab/110-recreate-pbmc_domino_built…
jmitchell81 Apr 3, 2024
28e73ca
SCE removed from imports
jmitchell81 Apr 3, 2024
90075ec
remove non-expressed genes from sce
jmitchell81 Apr 3, 2024
18234c5
example_data full pipeline
jmitchell81 Apr 4, 2024
8aca99e
update to minimal feature set
jmitchell81 Apr 4, 2024
e36f862
update sysdata
jmitchell81 Apr 4, 2024
7072263
circos plot example to CXCR3
jmitchell81 Apr 4, 2024
506e5f8
Update documentation
jmitchell81 Apr 4, 2024
1c3c169
documentation update
jmitchell81 Apr 4, 2024
c140417
Merge branch 'sce_tinydata_featureset' of https://github.com/FertigLa…
jmitchell81 Apr 4, 2024
afd5dc8
update second circos example
jmitchell81 Apr 4, 2024
ae8d170
update cor_scatter example
jmitchell81 Apr 4, 2024
aecb221
simpliify example data / gather in one current dir
dimalvovs Apr 9, 2024
64b82dd
update testdata
dimalvovs Apr 9, 2024
3de51a7
update vignettes
dimalvovs Apr 10, 2024
ebee79f
fix data name
dimalvovs Apr 10, 2024
db2d8a7
add happy test case
dimalvovs Apr 10, 2024
2f950ca
add a test that fails
dimalvovs Apr 10, 2024
a53ed0d
Allow domino cluster rename function to implement changes even when n…
kjkrishnan Apr 10, 2024
b094770
Only retain changes to dev in rename_clusters function
kjkrishnan Apr 10, 2024
0e096c3
update rename_clusters documentation
kjkrishnan Apr 10, 2024
8c32486
Merge branch 'sce_tinydata_featureset' into krishnan_rename_clusters
dimalvovs Apr 11, 2024
5adbb75
Merge sce_tinydata_featureset to add newest updates and rename_cluste…
kjkrishnan Apr 11, 2024
f0ccd35
rename_clusters test updated to use test object with correct object s…
kjkrishnan Apr 11, 2024
e5889a9
Remove L_ or R_ prefix only based on reviewer comment
kjkrishnan Apr 11, 2024
0de794e
Merge branch 'krishnan_rename_clusters' of github.com:FertigLab/domin…
dimalvovs Apr 12, 2024
5e36309
simplify prefix removal
dimalvovs Apr 12, 2024
bef0292
Merge pull request #113 from FertigLab/krishnan_rename_clusters
dimalvovs Apr 12, 2024
6263046
Merge pull request #112 from FertigLab/sce_tinydata_featureset
dimalvovs Apr 12, 2024
d73086c
add tiny linkage summary to sysdata
jmitchell81 Apr 17, 2024
0e19f83
differential signaling tables for link sum tiny
jmitchell81 Apr 17, 2024
3566bdf
replace dontrun examples for differential functions
jmitchell81 Apr 17, 2024
d8b0e11
tiny list of domino objects in sysdata
jmitchell81 Apr 17, 2024
4ef6bd7
remove dontrun from summarize linkage example
jmitchell81 Apr 17, 2024
3f61bfd
functional example for plot_differential_linkages
jmitchell81 Apr 17, 2024
8913dd5
update documentation
jmitchell81 Apr 17, 2024
30cba9b
remove create_domino modules
jmitchell81 Apr 17, 2024
d5b3e1a
remove create_domino.R tests
jmitchell81 Apr 17, 2024
618f0fb
Merge pull request #114 from FertigLab/differential_domino_testdata
jmitchell81 Apr 18, 2024
d55a61c
use <- for assignment
jmitchell81 Apr 18, 2024
17d2a4b
Update import_fxns.R
jmitchell81 Apr 18, 2024
bf57c99
remove receptor not passing parameter message
jmitchell81 Apr 18, 2024
a6cace2
plot_fxn paste in condition signals
jmitchell81 Apr 18, 2024
fb72994
replace 1: with seq() or seq_along()
jmitchell81 Apr 18, 2024
68467ce
replace sapply with vapply
jmitchell81 Apr 18, 2024
ccc29ac
select first gene in multiple uniprot mapping
jmitchell81 Apr 18, 2024
8e21c5e
simple unit test for build domino
jmitchell81 Apr 18, 2024
6568c06
specify return value for check_arg
jmitchell81 Apr 18, 2024
d9be866
accessor function in circos example
jmitchell81 Apr 18, 2024
eb0aa93
update documentation
jmitchell81 Apr 18, 2024
1acefbf
replace sapply in utils
jmitchell81 Apr 18, 2024
dbcbbfe
replace sapply in differential functions
jmitchell81 Apr 18, 2024
c0a54a9
eliminate \value warning
dimalvovs Apr 19, 2024
4f3c1ee
message for multiple genes mapping to one uniprot
jmitchell81 Apr 19, 2024
3b7171a
check for length 0 rl_reading
jmitchell81 Apr 19, 2024
1e6beaa
removal of verbose condition on create_rl_map
jmitchell81 Apr 19, 2024
a8ceabb
fix bioc branch script to only reference master branch
kjkrishnan Apr 23, 2024
7f03e90
replace seq with seq_len
jmitchell81 Apr 23, 2024
289eb0a
Merge pull request #115 from FertigLab/bioc_coding_practice_notes
dimalvovs Apr 24, 2024
23960d4
fix bioc workflow hopefully
kjkrishnan May 1, 2024
22fb883
Merge branch 'dev' of https://github.com/FertigLab/domino2 into dev
kjkrishnan May 1, 2024
05fb96f
increment version to 0.99.2
jmitchell81 May 8, 2024
8bb1db7
v0.99.2 NEWS update
jmitchell81 May 8, 2024
9ef93f0
Merge pull request #116 from FertigLab/dev
jmitchell81 May 8, 2024
ffff4c6
listFiles for bioc branch action
jmitchell81 May 9, 2024
04cfaf6
action remove bin/bash
jmitchell81 May 9, 2024
6a3f778
specify master and destination branch
jmitchell81 May 9, 2024
b348b09
checkout source branch
jmitchell81 May 9, 2024
c03af21
Revert "checkout source branch"
jmitchell81 May 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@
^old\.README\.md$
^readme_images$
^scenic_bash$
^vignettes/articles$
.nojekyll$

1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
28 changes: 15 additions & 13 deletions .github/copy_to_branch.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Designate desired directories and files
SRC_FOLDER_PATHS=(data-raw man R tests vignettes)
SRC_FILE_PATHS=(DESCRIPTION LICENSE NAMESPACE NEWS.md README.md inst/CITATION)

# Get files from directories
FILES=$(find "${SRC_FOLDER_PATHS[@]}" -type f)

# Add indicated individual files
for F in "${SRC_FILE_PATHS[@]}"
do
FILES+=" ${F}"
done
FILES=(
'data-raw/'*
'man/'*
'R/'*
'tests/'*
'vignettes/'*
'DESCRIPTION'
'NAMESPACE'
'NEWS.md'
'README.md'
'inst/CITATION'
)

echo "${FILES[@]}"

Expand All @@ -21,8 +22,9 @@ git fetch
# Checkout target branch
git checkout $TARGET_BRANCH
# copy files from the branch the action is being run upon
SRC_BRANCH=$(git symbolic-ref --short HEAD)
git checkout $SRC_BRANCH -- $FILES
for F in ${FILES}; do
git checkout $SRC_BRANCH -- ${F}
done
# Commit to the repository (ignore if no changes)
git add -A
git diff-index --quiet HEAD || git commit -am "update files"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/bioc_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- uses: actions/checkout@v2
- name: copy
env:
SRC_BRANCH: 'master'
TARGET_BRANCH: 'bioconductor'
run: .github/copy_to_branch.sh
shell: bash
18 changes: 18 additions & 0 deletions .github/workflows/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
This is a code review template, it will be displayed after each pull request.
We do code reviews because we care about quality of our codebase and because we care about long-term development goals.
We do not do code reviews to blame the ones who contribute. There is no seniority in this process and there is no perfect code,
we just want to avoid storing code that is not OK.

## For the submitter

- [ ] `R CMD build` & `R CMD check` pass
- [ ] `BiocCheck` passes
- [ ] Needed tests exist and passing or not needed
- [ ] The change is sufficiently small

## For the reviewer

- [ ] OK, code does what it's intended for
- [ ] its' OK to do it that way
- [ ] it's OK to read and comprehend the code
- [ ] tests, documentation, style are OK
4 changes: 1 addition & 3 deletions .github/workflows/r-build-check.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: r-build-check
on:
push:
branches: ['v0.2.2_development']
pull_request:
branches: ['master', 'v0.2.2']
branches: ['master', 'dev']
workflow_dispatch:

jobs:
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@ R/.Rhistory
scenic/*

scratch/

.github/workflows/doc_update.yml
.github/workflows/pkgdown_update.yml
1 change: 1 addition & 0 deletions .nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

12 changes: 7 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: domino2
Package: dominoSignal
Title: Cell Communication Analysis for Single Cell RNA Sequencing
Version: 0.99.1
Version: 0.99.2
Authors@R: c(
person("Christopher", "Cherry", role = c("aut"), email = "[email protected]", comment = c(ORCID = "0000-0002-5481-0055")),
person("Jacob T", "Mitchell", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0002-5370-9692")),
Expand All @@ -11,8 +11,8 @@ Authors@R: c(
person("Jennifer", "Elisseeff", role = "ctb", email = "[email protected]", comment = c(ORCID = "0000-0002-5066-1996"))
)
Description:
Domino2 is a package developed to analyze cell signaling through ligand - receptor - transcription factor networks in scRNAseq data. It takes as input information transcriptomic data, requiring counts, z-scored counts, and cluster labels, as well as information on transcription factor activation (such as from SCENIC) and a database of ligand and receptor pairings (such as from cellphoneDB). This package creates an object storing ligand - receptor - transcription factor linkages by cluster and provides several methods for exploring, summarizing, and visualizing the analysis.
BugReports: https://github.com/FertigLab/domino2/issues
dominoSignal is a package developed to analyze cell signaling through ligand - receptor - transcription factor networks in scRNAseq data. It takes as input information transcriptomic data, requiring counts, z-scored counts, and cluster labels, as well as information on transcription factor activation (such as from SCENIC) and a database of ligand and receptor pairings (such as from cellphoneDB). This package creates an object storing ligand - receptor - transcription factor linkages by cluster and provides several methods for exploring, summarizing, and visualizing the analysis.
BugReports: https://github.com/FertigLab/dominoSignal/issues
Depends:
R(>= 4.2.0),
Imports:
Expand Down Expand Up @@ -44,7 +44,9 @@ Suggests:
Seurat,
testthat,
formatR,
BiocFileCache
BiocFileCache,
SingleCellExperiment
VignetteBuilder: knitr
Language: en-US
Roxygen: list(markdown = TRUE)
URL: https://fertiglab.github.io/dominoSignal/
22 changes: 20 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
# domino2 v0.2.2
# dominoSignal v0.99.2

## Package Name

- Update of package name from "domino2" to "dominoSignal"

## Bioconductor Standards

- Update to Vignettes presenting application of the DominoSignal pipeline on data formatted as a SingleCellExperiment object
- Implemented caching of example data by BiocCache to meet package size limits
- Removal of depreciated scripts for running SCENIC. Tutorials for running SCENIC are still present in vignettes
- Corrected BiocCheck notes pertaining to coding practices including paste in conditional statements, functions with dontrun examples, usage of seq_len or seq_along in place of seq, and usage of vapply in place of sapply


# dominoSignal v0.99.1

- Update to Bioconductor version numbering conventions for package submission

# dominoSignal v0.2.2

## Linkage functions
- Addition of new class to summarize linkages in objects
Expand All @@ -8,7 +26,7 @@
## Package structure
- Adjustments made to meet BioConductor standards

# domino2 v0.2.1
# dominoSignal v0.2.1

## Updates to domino object construction
- Uniform formats for inputs of receptor-ligand interaction databases, transcription factor activity features, and regulon gene lists for operability with alternative databases and transcription factor activation inference methods
Expand Down
8 changes: 5 additions & 3 deletions R/class_definitions.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ NULL
#' @name domino-class
#' @rdname domino-class
#' @exportClass domino
#' @return an instance of class `domino `
#'
domino <- methods::setClass(
Class = "domino",
Expand Down Expand Up @@ -58,6 +59,7 @@ domino <- methods::setClass(
#' @name linkage_summary-class
#' @rdname linkage_summary-class
#' @exportClass linkage_summary
#' @return an instance of class `linkage_summary`
#'
linkage_summary <- setClass(
Class = "linkage_summary",
Expand All @@ -76,7 +78,7 @@ linkage_summary <- setClass(
#' @return a printed description of the number of cell clusters in the object
#' @keywords internal
#' @examples
#' print(domino2:::pbmc_dom_built_tiny)
#' print(dominoSignal:::pbmc_dom_built_tiny)
#'
setMethod("print", "domino", function(x, ...) {
if (x@misc$build) {
Expand All @@ -103,9 +105,9 @@ setMethod("print", "domino", function(x, ...) {
#' @return a printed description of the number of cells in a domino object and its build status
#' @keywords internal
#' @examples
#' domino2:::pbmc_dom_built_tiny
#' dominoSignal:::pbmc_dom_built_tiny
#'
#' show(domino2:::pbmc_dom_built_tiny)
#' show(dominoSignal:::pbmc_dom_built_tiny)
#'
setMethod("show", "domino", function(object) {
if (object@misc$build) {
Expand Down
73 changes: 49 additions & 24 deletions R/convenience_fxns.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,64 @@ NULL
#'
#' @param dom Domino object to rename clusters in
#' @param clust_conv Named vector of conversions from old to new clusters. Values are taken as new clusters IDs and names as old cluster IDs.
#' @param warning Logical. If TRUE, will warn if a cluster is not found in the conversion table. Default is FALSE.
#' @return A domino object with clusters renamed in all applicable slots.
#' @keywords internal
#' @export
#' @examples
#' new_clust <- c("CD8_T_cell" = "CD8+ T Cells",
#' "CD14_monocyte" = "CD14+ Monocytes", "B_cell" = "B Cells")
#' pbmc_dom_built_tiny <- rename_clusters(domino2:::pbmc_dom_built_tiny, new_clust)
#' pbmc_dom_built_tiny <- rename_clusters(dominoSignal:::pbmc_dom_built_tiny, new_clust)
#'
rename_clusters <- function(dom, clust_conv) {
if (is.null(dom@clusters)) {
stop("There are no clusters in this domino object")
}
if (dom@misc$create) {
dom@clusters <- revalue(dom@clusters, clust_conv)
colnames(dom@clust_de) <- clust_conv
names(colnames(dom@clust_de)) <- c()
colnames(dom@misc$cl_rec_percent) <- clust_conv
}
if (dom@misc$build) {
names(dom@linkages$clust_tf) <- clust_conv
names(dom@linkages$clust_rec) <- clust_conv
names(dom@linkages$clust_incoming_lig) <- clust_conv
names(dom@linkages$clust_tf_rec) <- clust_conv
colnames(dom@signaling) <- paste0("L_", clust_conv)
rownames(dom@signaling) <- paste0("R_", clust_conv)
names(dom@cl_signaling_matrices) <- clust_conv
for (cl in clust_conv) {
colnames(dom@cl_signaling_matrices[[cl]]) <- paste0("L_", clust_conv)
rename_clusters <- function(dom, clust_conv, warning = FALSE) {
if (is.null(dom@clusters)) {
stop("There are no clusters in this domino object")
}
}
return(dom)
if (dom@misc$create) {
dom@clusters <- plyr::revalue(dom@clusters, clust_conv, warn_missing = warning)
colnames(dom@clust_de) <- plyr::revalue(colnames(dom@clust_de), clust_conv, warn_missing = warning)
names(colnames(dom@clust_de)) <- c()
colnames(dom@misc$cl_rec_percent) <- plyr::revalue(colnames(dom@misc$cl_rec_percent),
clust_conv,
warn_missing = warning
)
}
if (dom@misc$build) {
names(dom@linkages$clust_tf) <- plyr::revalue(names(dom@linkages$clust_tf), clust_conv, warn_missing = warning)
names(dom@linkages$clust_rec) <- plyr::revalue(names(dom@linkages$clust_rec), clust_conv, warn_missing = warning)
names(dom@linkages$clust_incoming_lig) <- plyr::revalue(names(dom@linkages$clust_incoming_lig),
clust_conv,
warn_missing = warning
)
names(dom@linkages$clust_tf_rec) <- plyr::revalue(names(dom@linkages$clust_tf_rec),
clust_conv,
warn_missing = warning
)
sig_ligands <- colnames(dom@signaling)
sig_rec <- rownames(dom@signaling)
# Remove L_ prefix
sig_ligand_clust <- gsub("^L_", "", sig_ligands)
# Remove R_ prefix
sig_rec_clust <- gsub("^R_", "", sig_rec)
new_lig_clust <- plyr::revalue(sig_ligand_clust, clust_conv, warn_missing = warning)
new_rec_clust <- plyr::revalue(sig_rec_clust, clust_conv, warn_missing = warning)
colnames(dom@signaling) <- paste0("L_", new_lig_clust)
rownames(dom@signaling) <- paste0("R_", new_rec_clust)
names(dom@cl_signaling_matrices) <- plyr::revalue(names(dom@cl_signaling_matrices),
clust_conv,
warn_missing = warning
)
for (cl in names(dom@cl_signaling_matrices)) {
cl_sig_ligands <- colnames(dom@cl_signaling_matrices[[cl]])
# Remove L_ prefix
cl_sig_lig_clust <- gsub("^L_", "", cl_sig_ligands)
cl_sig_lig_new <- plyr::revalue(cl_sig_lig_clust, clust_conv, warn_missing = warning)
colnames(dom@cl_signaling_matrices[[cl]]) <- paste0("L_", cl_sig_lig_new)
}
}
return(dom)
}


#' Convert Genes Using Table
#'
#' Takes a vector of gene inputs and a conversion table and returns a
Expand Down
Loading
Loading