Skip to content

Commit

Permalink
Update for upcoming Matrix package update
Browse files Browse the repository at this point in the history
  • Loading branch information
hpliner committed Oct 23, 2022
1 parent 45d4be4 commit b2e9cc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: cicero
Type: Package
Title: Predict cis-co-accessibility from single-cell chromatin accessibility data
Version: 1.13.4
Version: 1.13.5
Authors@R: c(
person("Hannah", "Pliner", email = "hpliner@uw.edu", role = c("aut", "cre")),
person("Cole", "Trapnell", email = "coletrap@uw.edu", role = c("aut")))
Expand Down
3 changes: 3 additions & 0 deletions R/activityScores.R
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ build_composite_gene_activity_matrix <- function(input_cds,
total_linked_site_weights[is.finite(total_linked_site_weights) == FALSE] <- 0
total_linked_site_weights[is.na(total_linked_site_weights)] <- 0
total_linked_site_weights[is.nan(total_linked_site_weights)] <- 0
site_names <- names(total_linked_site_weights)
total_linked_site_weights <- Matrix::Diagonal(x=total_linked_site_weights)
row.names(total_linked_site_weights) <- site_names
colnames(total_linked_site_weights) <- site_names
scaled_site_weights <- total_linked_site_weights %*%
promoter_conn_matrix[,distal_safe_sites, drop=FALSE] %*%
scaled_site_weights
Expand Down

0 comments on commit b2e9cc3

Please sign in to comment.