Skip to content

Commit

Permalink
Fixed to ensure that all the genes in the peak.info.list file are in …
Browse files Browse the repository at this point in the history
…RNA matrix
  • Loading branch information
saorisakaue committed Aug 9, 2024
1 parent f01f18a commit 75071bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions R/SCENTfunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ CreatePeakToGeneList <- function(object,genebed="/path/to/GeneBody_500kb_margin.
#Obtain gene to peak pairs.
cis.g2p <- d[c("V4","V8")]
colnames(cis.g2p) <- c("gene","peak")
genes_in_rna <- rownames(object@rna) # gene by cell matrix
cis.g2p <- cis.g2p[cis.g2p$gene %in% genes_in_rna,] # make sure g2p genes are all included in rna matrix

cis.g2p$index <- 1:nrow(cis.g2p)
cis.g2p$batch_index <- cut2(cis.g2p$index, g = nbatch, levels.mean = TRUE)
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

Single-Cell ENhancer Target gene mapping using multimodal data with ATAC + RNA

(*beta version*)

The manuscript is now publised in *Nature Genetics*! (Sakaue et al. ["**Tissue-specific enhancer-gene maps from multimodal single-cell data identify causal disease alleles**"](https://www.nature.com/articles/s41588-024-01682-1))


Expand Down

0 comments on commit 75071bd

Please sign in to comment.