-
Notifications
You must be signed in to change notification settings - Fork 2
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
SelectGenes use other genome #17
Comments
Hello @liyang24 create a gene annotation for RN6#get the library library(org.Rn.eg.db) geneAnnotationRN6 <- createGeneAnnotation(TxDb = TxDb.Rnorvegicus.UCSC.rn6.refGene, OrgDb = org.Rn.eg.db) I had a "chr" prefix problem (chromsome are named "chr1" in the annotation but only "1" in my data) to remove the "chr" and obtain a file with adequate formate, I did, quite laboriously : #separation of the gene, exon and tss info #cleaning the format geneAnno <- keepStandardChromosomes(geneAnno, pruning.mode="coarse") geneAnno <- renameSeqlevels(geneAnno, c(chr1="1", chr2="2", chr3="3", chr4="4", chr5="5", chr6="6", chr7="7", chr8="8", chr9="9", chr10="10", chr11="11", chr12="12", chr13="13", chr14="14", chr15="15", chr16="16", chr17="17", chr18="18", chr19="19", chr20="20", chrX="X", chrY="Y")) #creation of a new annotation file geneAnnotationRN6.2 <- createGeneAnnotation( then i copied the peaktogene to run it locally (because I don't known how to modify it directly) with some modifications: then I run SelectGenes also locally, with some modifications : And I have to admit that, to my surprise, it did worked :) PS I had to implement the motif names call solution proposed by @AmandaKedaigle in the issue " Motif matching when using mouse data #18 " every time needed (in the GetTFGeneCorrelation function, in the colnames(motif.matching)) if not the different format of the motif names blocked the analysis. Moreover, I tried to used the jaspar2022 instead of the Jasper2020 and there is a problem with mofit name redundancy I hope it will help and also that I did not do something stupid, but the results seems consistent with my prior knownledge of the biological system so.... Best |
Hello, according to your method, I also created a gene annotation for macaques, and SelectGenes by using the self-defined gene annotation file. However, after that, I don't know how to calculate and define the rest of this function, especially how to use the gene annotation information. Only the selection logic of genome annotation is written, but the operation of selecting genes is not carried out.
df.cor <- sel.tfs$tfs annotation <- genes(EDB, return.type = "GRanges") annotation <- genes(EDB, return.type = "GRanges") geneAnno <- annotation ucsc.levels <- str_replace(string = paste("chr", seqlevels(annotation), sep = ""), pattern = "chrMT", replacement = "chrM") geneAnnotationMmu <- createGeneAnnotation( heatmap <- Heatmap(heatmap_data, df.p2g <- sel.genes$p2g |
Hi!
i noticed that
SelectGenes
Available genome are: hg19, hg38, mm9, and mm10can i use the genomes of other species?
If so, how exactly should I do it
The text was updated successfully, but these errors were encountered: