Error in creating a volcano plot in MATLAB
0
0
Entering edit mode
6.6 years ago
c_u ▴ 520

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?

matlab RNA-Seq plot • 2.7k views
ADD COMMENT
1
Entering edit mode

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 REPLY
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

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