Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • vilperte
    started a topic PCA plot in cummeRbund with subset genes

    PCA plot in cummeRbund with subset genes

    Hello all,

    I'm trying to create a PCA plot with my data. I managed to create it with all my genes using the standard script:

    genes.PCA<-PCAplot(genes(cuff), "PC1","PC2")


    However, I would like to create the plot with a subset of those gene, e.g. the differentially expressed (DE) genes. I've created a subset for the DE genes as followed:

    gene_diff_data<-diffData(genes(cuff))
    sig_gene_data<-subset(gene_diff_data, (significant=='yes'))
    sig_genes<-getGenes(cuff, sig_gene_data$gene_id)


    When I try to create the PCA with the new subset, it does not work.

    genes.PCA<-PCAplot(genes(sig_genes), "PC1","PC2")
    Error in PCAplot(genes(sig_genes), "PC1", "PC2") :
    error in evaluating the argument 'object' in selecting a method for function 'PCAplot': Error in (function (classes, fdef, mtable) :
    unable to find an inherited method for function ‘genes’ for signature ‘"CuffGeneSet"’


    Since my skills are very basic in R, could anyone tell me what I am doing wrong?

    Thanks!

    Best,

    Vini

Latest Articles

Collapse

  • seqadmin
    Exploring the Dynamics of the Tumor Microenvironment
    by seqadmin




    The complexity of cancer is clearly demonstrated in the diverse ecosystem of the tumor microenvironment (TME). The TME is made up of numerous cell types and its development begins with the changes that happen during oncogenesis. “Genomic mutations, copy number changes, epigenetic alterations, and alternative gene expression occur to varying degrees within the affected tumor cells,” explained Andrea O’Hara, Ph.D., Strategic Technical Specialist at Azenta. “As...
    07-08-2024, 03:19 PM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, Yesterday, 06:46 AM
0 responses
9 views
0 likes
Last Post seqadmin  
Started by seqadmin, 07-24-2024, 11:09 AM
0 responses
25 views
0 likes
Last Post seqadmin  
Started by seqadmin, 07-19-2024, 07:20 AM
0 responses
159 views
0 likes
Last Post seqadmin  
Started by seqadmin, 07-16-2024, 05:49 AM
0 responses
127 views
0 likes
Last Post seqadmin  
Working...
X