Getting MDSplot from Cufflinks data [cummeRbund]
1
0
Entering edit mode
6.2 years ago
anu014 ▴ 190

Hello Biostars,

I am doing MDSplot like this :

library(cummeRbund)
cuff<-readCufflinks(gtfFile="merged.gtf",genome="grch38")
cuff
CuffSet instance with:
     2 samples
     56875 genes
     282953 isoforms
     131485 TSS
     81720 CDS
     56875 promoters
     131485 splicing
     18767 relCDS

try(genes.MDS<-MDSplot(genes(cuff)))

But it's throwing this error :

Error in cmdscale(d, eig = TRUE, k = 2) : 'k' must be in {1, 2, .. n - 1} Error in try(genes.MDS) : object 'genes.MDS' not found

How can I fix this error? Please help.. Thanks in advance :)

rna-seq R next-gen • 1.6k views
ADD COMMENT
0
Entering edit mode

I am not a huge expert on cummeRbund, but it looks like you first extract the genes from cuff object, then you use them to create MDS-plot. Usually, the input for MDS (or PCA) is some rectangular data, e.g. genes in rows, samples in columns. For me it looks like you are using just "genes". Am I right?

ADD REPLY
0
Entering edit mode
6.2 years ago

Running MDS on just 2 samples will not tell you much. In any case, you have to specify the dimensions that you want to plot:

MDSplot(genes(cuff), "PC1", "PC2")
ADD COMMENT

Login before adding your answer.

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