Hi!
I have data from Cuffdiff, but do not understand how to do the following (from GOseq manual):
2 Reading data
We assume that the user can use appropriate in-built R functions (such as read.table or scan) to obtain two vectors, one containing all genes assayed in the RNA-seq experiment, the other containing all genes which are DE. If we assume that the vector of genes being assayed is named assayed.genes and the vector of DE genes is named de.genes we can construct a named vector suitable for use with goseq using the following:
> gene.vector=as.integer(assayed.genes%in%de.genes)
> names(gene.vector)=assayed.genes
> head(gene.vector)
It may be that the user can already read in a vector in this format, in which case it can then be immediately used by goseq.
Can anyone pls help? Thanks alot!!!
I have data from Cuffdiff, but do not understand how to do the following (from GOseq manual):
2 Reading data
We assume that the user can use appropriate in-built R functions (such as read.table or scan) to obtain two vectors, one containing all genes assayed in the RNA-seq experiment, the other containing all genes which are DE. If we assume that the vector of genes being assayed is named assayed.genes and the vector of DE genes is named de.genes we can construct a named vector suitable for use with goseq using the following:
> gene.vector=as.integer(assayed.genes%in%de.genes)
> names(gene.vector)=assayed.genes
> head(gene.vector)
It may be that the user can already read in a vector in this format, in which case it can then be immediately used by goseq.
Can anyone pls help? Thanks alot!!!
Comment