help > Problem reporting test stats
Showing 1-2 of 2 posts
Display:
Results per page:
Aug 4, 2020  05:08 PM | Sarah Meier - University of New Hampshire
Problem reporting test stats
After running NBS, I type the code into Matlab found in the manual to "list connections in a significant network".
global nbs; [i,j]=find(nbs.NBS.con_mat{1}); for n=1:length(i)
i_lab=nbs.NBS.node_label{i(n)};
j_lab=nbs.NBS.node_label{j(n)};
stat=nbs.NBS.test_stat(i(n),j(n));
fprintf('%s to %s. Test stat: %0.2f\n',i_lab,j_lab,stat);
end

It yields *blank* to *blank*. Test stat: 3.21 (for example), so the node labels are blank.
i_lab and j_lab have values of "

Can anyone help?
Aug 5, 2020  12:08 AM | Andrew Zalesky
RE: Problem reporting test stats
Hi Sarah,

It very much seems that this is an issue with your node label file.

Check that you have specified a node label file in the GUI. The node label file should have a separate line (row) for each node and it  should contain as many lines as nodes.

As a second check, after typing "global nbs", you could type "nbs.NBS.node_label{:}", which should print out your node labels. If not, there is something wrong with your node label file. 

Andrew

Originally posted by Sarah Meier:
After running NBS, I type the code into Matlab found in the manual to "list connections in a significant network".
global nbs; [i,j]=find(nbs.NBS.con_mat{1}); for n=1:length(i)
i_lab=nbs.NBS.node_label{i(n)};
j_lab=nbs.NBS.node_label{j(n)};
stat=nbs.NBS.test_stat(i(n),j(n));
fprintf('%s to %s. Test stat: %0.2f\n',i_lab,j_lab,stat);
end

It yields *blank* to *blank*. Test stat: 3.21 (for example), so the node labels are blank.
i_lab and j_lab have values of "

Can anyone help?