I was wondering if folks had any advice on the simplest way to generate a principal component analysis or MDS plot with Cufflinks output. I could group all my Cufflinks output into a data matrix and then try to visualize it but I was wondering if there was a built in way in R (perhaps through a tool or package like cummerbun) Thanks -Rich
Seqanswers Leaderboard Ad
Collapse
Announcement
Collapse
No announcement yet.
X
-
Originally posted by greener View PostI was wondering if folks had any advice on the simplest way to generate a principal component analysis or MDS plot with Cufflinks output. I could group all my Cufflinks output into a data matrix and then try to visualize it but I was wondering if there was a built in way in R (perhaps through a tool or package like cummerbun) Thanks -Rich
Awesome idea, and one that can be very easily implemented with cummeRbund. If you run a cuffdiff on all of your samples, cummeRbund will take care of aggregating the information into a SQLite db behind the scenes. The generation of the FPKM matrix is very simple once this is complete:
Code:>library(cummeRbund) >cuff<-readCufflinks() >allGeneFPKMs<-fpkmMatrix(genes(cuff)) #You can of course use the transpose if you want samples instead of genes >genes.pca<-prcomp(allGeneFPKMs) >biplot(genes.pca) >allIsoformFPKMs<-fpkmMatrix(isoforms(cuff)) >isoforms.pca<-prcomp(allIsoformFPKMs)
Please let me know how this works out for you. It may be something that I would like to integrate into cummeRbund for the future.
Cheers,
Loyal
-
That's great, the plot generated by the MDSplot command is very useful. It would be nice to be able to color samples by arbitrary experimental conditions, for example, to be able to make all replicates of one sample the same color.
It is easy enough to run each command in the MDSplot function manually and supply a different "names" vector to the geom color option:
customnames<- c("Wildtype", "Wildtype", "Wildtype", "Mutant", "Mutant", "Mutant")
p <- p + geom_point(aes(x=M1,y=M2,color=customnames)) + geom_text(aes(x=M1,y=M2,label=names,color=customnames)) + theme_bw()
But it would be nice to have that capability built into the function.
Comment
Latest Articles
Collapse
-
by seqadmin
The field of immunogenetics explores how genetic variations influence immune responses and susceptibility to disease. In a recent SEQanswers webinar, Oscar Rodriguez, Ph.D., Postdoctoral Researcher at the University of Louisville, and Ruben Martínez Barricarte, Ph.D., Assistant Professor of Medicine at Vanderbilt University, shared recent advancements in immunogenetics. This article discusses their research on genetic variation in antibody loci, antibody production processes,...-
Channel: Articles
11-06-2024, 07:24 PM -
-
by seqadmin
Next-generation sequencing (NGS) and quantitative polymerase chain reaction (qPCR) are essential techniques for investigating the genome, transcriptome, and epigenome. In many cases, choosing the appropriate technique is straightforward, but in others, it can be more challenging to determine the most effective option. A simple distinction is that smaller, more focused projects are typically better suited for qPCR, while larger, more complex datasets benefit from NGS. However,...-
Channel: Articles
10-18-2024, 07:11 AM -
ad_right_rmr
Collapse
News
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by seqadmin, Today, 11:09 AM
|
0 responses
22 views
0 likes
|
Last Post
by seqadmin
Today, 11:09 AM
|
||
Started by seqadmin, Today, 06:13 AM
|
0 responses
20 views
0 likes
|
Last Post
by seqadmin
Today, 06:13 AM
|
||
Started by seqadmin, 11-01-2024, 06:09 AM
|
0 responses
30 views
0 likes
|
Last Post
by seqadmin
11-01-2024, 06:09 AM
|
||
New Model Aims to Explain Polygenic Diseases by Connecting Genomic Mutations and Regulatory Networks
by seqadmin
Started by seqadmin, 10-30-2024, 05:31 AM
|
0 responses
21 views
0 likes
|
Last Post
by seqadmin
10-30-2024, 05:31 AM
|
Comment