Question: Error in creating a volcano plot in MATLAB

0

c_u •

**250**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?

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.

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

250