artedison / Edison_Lab_Shared_Metabolomics_UGA

Official Edison Lab toolboxes and scripts for analyzing metabolomics data.
13 stars 4 forks source link

Unexpected reverse in output of opt_bucket (moved from private toolbox) #5

Open mikeaalv opened 4 years ago

mikeaalv commented 4 years ago

Can you guys share a used/working script for using opt_bucket. Mario and I have try to do the binning. It seems the result is somewhat reversed and wrong. The function call is as following:

[ZNN,Z,I_b,S_b]=opt_bucket(ppmR2,XALNS_PQN,0.005,0.5);

ppmR2: ppm vector XALNS_PQN: spectral matrix

By reverse, I mean if I do the following, the spectra will be reversed

I_b_2=I_b;
ppm_mean=mean(I_b_2');
plotr(ppm_mean, ZNN(1,:));

@mario can you correct me if that's not the way your run it? Or add details if you think it is needed.

for details reply, referring to original issue