restrict transcriptDB object to "known" genes
1
0
Entering edit mode
Stefanie ▴ 360
@stefanie-5192
Last seen 10.2 years ago
Dear list, I would like to retrieve genomic ranges via makeTranscriptDbFromUSCS. At the moment I just use: humanDB = makeTranscriptDbFromUSCS(genome = "hg19", tablename = "ensGene") Is there an automatic way to restrict my humanDB to those genes that a "known" status (not novel)? best, stefanie
• 1.1k views
ADD COMMENT
0
Entering edit mode
Stefanie ▴ 360
@stefanie-5192
Last seen 10.2 years ago
Hi, I just managed to do it the following way: I get the transcript IDs of all known genes by the following command: ensembl = useDataset("hsapiens_gene_ensembl",mart=ensembl) res = getBM(attributes = "ensembl_transcript_id", filters = "status", values = "known", mart = ensembl) humanDb = makeTranscriptDbFromUCSC(genome = "hg19", tablename = "ensGene",transcript_ids = as.character(res[,1])) tx = transcriptsBy(humanDb) Works! :)
ADD COMMENT
0
Entering edit mode
or just biocLite("TxDb.Hsapiens.UCSC.hg19.knownGene") library("TxDb.Hsapiens.UCSC.hg19.knownGene") tx.by.gene <- transcriptsBy(TxDb.Hsapiens.UCSC.hg19.knownGene, 'gene') which will be indexed by EntrezGene ID Not sure if this is what you were looking for, though. On Tue, Jun 12, 2012 at 3:24 AM, Stefanie <stefanie.tauber@univie.ac.at>wrote: > Hi, > > I just managed to do it the following way: > > I get the transcript IDs of all known genes by the following command: > > ensembl = useDataset("hsapiens_gene_ensembl",mart=ensembl) > > res = getBM(attributes = "ensembl_transcript_id", filters = "status", > values = > "known", mart = ensembl) > > humanDb = makeTranscriptDbFromUCSC(genome = "hg19", tablename = > "ensGene",transcript_ids = as.character(res[,1])) > > tx = transcriptsBy(humanDb) > > > Works! :) > > _______________________________________________ > Bioconductor mailing list > Bioconductor@r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor > -- *A model is a lie that helps you see the truth.* * * Howard Skipper<http: cancerres.aacrjournals.org="" content="" 31="" 9="" 1173.full.pdf=""> [[alternative HTML version deleted]]
ADD REPLY
0
Entering edit mode
This also works, but addresses the knownGene Table from USCS. In my code I addressed Ensembl genes with gene status "known". Which then results in a slightly different selection of genes.. Am 13.06.2012 um 05:31 schrieb Tim Triche, Jr.: > or just > > biocLite("TxDb.Hsapiens.UCSC.hg19.knownGene") > library("TxDb.Hsapiens.UCSC.hg19.knownGene") > tx.by.gene <- transcriptsBy(TxDb.Hsapiens.UCSC.hg19.knownGene, 'gene') > > which will be indexed by EntrezGene ID > Not sure if this is what you were looking for, though. > > > > On Tue, Jun 12, 2012 at 3:24 AM, Stefanie <stefanie.tauber@univie.ac.at> wrote: > Hi, > > I just managed to do it the following way: > > I get the transcript IDs of all known genes by the following command: > > ensembl = useDataset("hsapiens_gene_ensembl",mart=ensembl) > > res = getBM(attributes = "ensembl_transcript_id", filters = "status", values = > "known", mart = ensembl) > > humanDb = makeTranscriptDbFromUCSC(genome = "hg19", tablename = > "ensGene",transcript_ids = as.character(res[,1])) > > tx = transcriptsBy(humanDb) > > > Works! :) > > _______________________________________________ > Bioconductor mailing list > Bioconductor@r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor > > > > -- > A model is a lie that helps you see the truth. > > Howard Skipper > DI Stefanie Tauber Center for Integrative Bioinformatics Vienna (CIBIV) (CIBIV is a joint institute of Vienna University, Medical University, and University of Veterinary Medicine, Vienna, Austria) Max F. Perutz Laboratories (MFPL) Campus Vienna Biocenter 5 (VBC5), Ebene 1, Room 1812.2 Dr. Bohr Gasse 9 A-1030 Wien, Austria Phone: ++43 +1 / 42772-4030 Fax: ++43 +1 / 42772-4098 email: stefanie.tauber@univie.ac.at www.cibiv.at [[alternative HTML version deleted]]
ADD REPLY

Login before adding your answer.

Traffic: 780 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6