How to use the goseq for ensemble gene ID
0
0
Entering edit mode
3.1 years ago
BISEP ▴ 10

Hello I am working on mouse RNA seq data, now I have list of genes which are of ensemble gene IDs I wanted to perform gene ontology using goseq. Can anyone help me with the example code which will be Very helpful do proceed with my analysis

I tried but not able understand what to do

what I have tried

library(goseq) library(GenomicFeatures) library(TxDb.Mmusculus.UCSC.mm10.ensGene)

gene=read.table("data", header=T)

gene=gene$geneID

tx <- transcriptsBy(TxDb.Mmusculus.UCSC.mm10.ensGene)

length <- median(width(tx))

length=length[gene]

pwf=nullp(gene,bias.data=length)

RNA-SEQ R annotations GO • 1.6k views
ADD COMMENT
0
Entering edit mode

What have you tried and what errors have you encountered? Biostars is not a code writing service, though people are usually willing to help you fix what might be going wrong in your code if you post it.

ADD REPLY
0
Entering edit mode

@jared.andrews07 thank you for the response sorry, I have edited my question given some code can you suggest me how can I resolve my issue, data file containes the only ensembl gene ids

Thank you

ADD REPLY
0
Entering edit mode
ADD REPLY
0
Entering edit mode

If this is just some arbitrary genes that do not come from a DEG analysis do you really need goseq and its "bias" nullp function? Why not simply load the genes into a webbased solution such as gprofiler2 or EnrichR?

ADD REPLY
0
Entering edit mode

@ATpoint Thank you

ADD REPLY

Login before adding your answer.

Traffic: 2218 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