-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f7944c
commit be98fc4
Showing
5 changed files
with
144 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,43 @@ | ||
# CNELAB | ||
Multi-channel reviewing Matlab GUI | ||
Million thanks to BioSigPlot | ||
#CNELab | ||
|
||
Our official website (under constructing) | ||
www.cnelab.org | ||
Getting started with CNELab | ||
|
||
Getting started with CNELab is fairly easy. It only took a few minutes to complete this tutorial step by step. | ||
|
||
Preparations | ||
|
||
We recommend using the latest Matlab release version, currently R2016a. However, most features of CNELab should be backward compatible up to R2014a. Starting R2014b, Matlab updated on its graphic system. CNELab experienced a major performance drop (especially in plotting speed) in R2014b and R2015a. Thus, it is not recommended to use R2014b, R2015a or any version before R2014a. | ||
|
||
CNELab depends on several basic toolboxes of Matlab. Most of time they already come with your license. | ||
|
||
Signal Processing Toolbox. | ||
|
||
Statistics and Machine Learning Toolbox. | ||
Wavelet Toolbox. | ||
You can type ver in Matlab command window to verify. | ||
|
||
Install CNELab | ||
|
||
If do not have CNELab yet, please refer to our download page. Once you download the zip file, unzip it and put it anywhere you prefer. | ||
|
||
Change your current Matlab path to the root folder of CNELab, where you can see files such as cnelab.m and setup.m. | ||
|
||
Run setup.m by typing it in command window (ignore the prompt sign >>): | ||
|
||
>> setup | ||
If you receive no error message, congratulations ! | ||
|
||
More on setup.m | ||
|
||
Although setup automatically removes existed CNELab from Matlab Path, it is always a good practice to manually delete the CNELab folder. | ||
|
||
setup will check if your java JVM version used in Matlab lands in 1 . 7 . * . Most of time you should not worry about it as Matlab shipped its version with specific JVM after R2013b. Type version -java to verify yourself. | ||
|
||
setup tries to recompile c++ mexfunctions in CNELab to your system environment. However, our release already contains compiled mexfunctions that can be immediately used in 64-bit of MacOS/Windows computer. Only if it is a unix or 32-bit system should you be careful. If you received a mex compile error, you would have to check your c++ compiler on maltab and manually compile them. Type mex -setup c++ to verify yourself. | ||
|
||
Start with demo | ||
|
||
The best way to learn CNELab is to use it: | ||
|
||
>> cnelab | ||
Open $CNELAB_ROOT/demo/demo.cds to explore yourself. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
function [pID,pN] = FDR(p,q) | ||
% FORMAT pt = FDR(p,q) | ||
% | ||
% p - vector of p-values | ||
% q - False Discovery Rate level | ||
% | ||
% pID - p-value threshold based on independence or positive dependence | ||
% pN - Nonparametric p-value threshold | ||
%______________________________________________________________________________ | ||
% @(#)FDR.m 1.3 Tom Nichols 02/01/18 | ||
|
||
p = sort(p(:)); | ||
V = length(p); | ||
I = (1:V)'; | ||
|
||
cVID = 1; | ||
cVN = sum(1./(1:V)); | ||
|
||
pID = p(max(find(p<=I/V*q/cVID))); | ||
pN = p(max(find(p<=I/V*q/cVN))); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters