Skip to content

Instantly share code, notes, and snippets.

@FloWuenne
Created January 9, 2018 23:29
Show Gist options
  • Select an option

  • Save FloWuenne/28349f097af6fbc4b7b5b4aa33bb6bc6 to your computer and use it in GitHub Desktop.

Select an option

Save FloWuenne/28349f097af6fbc4b7b5b4aa33bb6bc6 to your computer and use it in GitHub Desktop.
In Scenic analysis, identify all regulons that contain a gene of interest
## 3.0 contains all regulons that are considered for AUCell scoring
load("./int/3.0_regulons_forAUCell.RData")
## Define the gene you would like to find
gene_of_interest <- ""
## Iterates over all regulon names in regulons and searches the gene of interest inside the regulon.
for(reg in names(regulons)){
if(gene_of_interest %in% regulons[[reg]]){
## Prints regulon name if gene of interest was found in regulon
print(reg)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment