Question: Error in creating a volcano plot in MATLAB
0
gravatar for c_u
2.8 years ago by
c_u250
United States
c_u250 wrote:

I am a complete newbie to MATLAB and the first task I have is to create a volcano plot. I have been using this link to understand about it and get started - https://www.mathworks.com/help/bioinfo/ref/mavolcanoplot.html

I tried to run it on dummy values -

a=[1 2 3]

b=[4.6 2.7 4.5]

c=[0.05 0.33 0.45]

And then I ran -

SigStructure = mavolcanoplot(a, b, c)

My understanding is that a represents the gene expression values for condition 1, b for condition 2, and c is the list of p-values for the 3 data points in a and b.

However running this code gives me the error -

Index exceeds matrix dimensions.

Error in mavolcanoplot (line 127)
appdata.effect = X(paramStruct.goodVals) - Y(paramStruct.goodVals);

Error in volc (line 4)
SigStructure = mavolcanoplot(a, b, c)

Can anyone explain where I am going wrong?

plot rna-seq matlab • 1.5k views
ADD COMMENTlink written 2.8 years ago by c_u250
1

Hello chahatupretiiitk!

It appears that your post has been cross-posted to another site: https://bioinformatics.stackexchange.com/questions/2585/error-in-creating-a-volcano-plot-in-matlab

This is typically not recommended as it runs the risk of annoying people in both communities.

ADD REPLYlink written 2.8 years ago by Devon Ryan95k

Thanks Devon for letting me know that this is not recommended. Will take care of it from now on

ADD REPLYlink written 2.8 years ago by c_u250
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 687 users visited in the last hour