Created
January 9, 2018 23:29
-
-
Save FloWuenne/28349f097af6fbc4b7b5b4aa33bb6bc6 to your computer and use it in GitHub Desktop.
In Scenic analysis, identify all regulons that contain a gene of interest
This file contains hidden or 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
| ## 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