Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion +nla/+edge/+permutationMethods/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ If you do the following:
newStruct.scanData.id = randperm(1:100);

that second line changes the id of scanData in both newStruct and origStruct,
since they both have just a reference to the scanData obejct rather than a unique copy
since they both have just a reference to the scanData object rather than a unique copy

SOLUTION
If you do want to permute data that is in a class that inherits from handle,
Expand Down
2 changes: 1 addition & 1 deletion +nla/+gfx/+chord/ChordPlot.m
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function connectNetworks(obj)

inner = obj.generateArcSegmentWithCatch(chord_inner_radius, chord_inner_start_end_radian,...
chord_inner_origin, chord2_start_cartesian, chord2_end_cartesian, 50);
% We reverse the end and start because we want them to be a continuous shape, not two seperate shapes
% We reverse the end and start because we want them to be a continuous shape, not two separate shapes
% Without this, the arcs that are close to a straight line will be a straight line, and the other half of
% it will be an arc. Putting two chords (half the size) in place of one
outer = obj.generateArcSegmentWithCatch(chord_outer_radius, [chord_outer_start_end_radian(2),...
Expand Down
2 changes: 1 addition & 1 deletion +nla/+gfx/+plots/MatrixPlot.m
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ function addCallback(obj, x)
obj.applyColorToData(position_x, position_y, chunk_height, chunk_width, chunk_color);

if isequal(initial_render, true)
% plot signifance marker
% plot significance marker
if ~isequal(obj.marked_networks, false) && isequal(obj.marked_networks(network, x), true)
obj.plotSignificanceMark(chunk_width, chunk_height, position_x, position_y);
end
Expand Down
2 changes: 1 addition & 1 deletion +nla/+gfx/drawCortex.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function drawCortex(ax, anat, ctx, mesh_alpha, view_pos, color_l, color_r)
% Re-position meshes for standard transverse orientation etc.
[mesh_l, mesh_r] = nla.gfx.anatToMesh(anat, ctx, view_pos);

% Set lighting and persepctive
% Set lighting and perspective
if view_pos == ViewPos.LAT || view_pos == ViewPos.MED
view(ax, [-90,0]);
light(ax, 'Position', [-100,200,0], 'Style', 'local');
Expand Down
2 changes: 1 addition & 1 deletion +nla/+gfx/drawMatrixOrg.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
% draw_colorbar: Whether to display a colorbar
% color_map: color map to use for the matrix
% marked_networks: networks to mark with a symbol
% discrete_colorbar: whether to display the colorbar as continous or
% discrete_colorbar: whether to display the colorbar as continuous or
% discrete.
% net_clicked_callback: button function to add to each network, for clickable
% networks.
Expand Down
2 changes: 1 addition & 1 deletion +nla/+gfx/pointDist.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function d = pointDist(p1, p2)
%POINTDIST Calculate euclidian distance between points
%POINTDIST Calculate euclidean distance between points
% p1: 2-tuple containing x and y coordinates of point
% p2: 2-tuple containing x and y coordinates of point
d_x = p1(1) - p2(1);
Expand Down
2 changes: 1 addition & 1 deletion +nla/+helpers/+stdError/UnconstrainedBlocks.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function throwErrorIfVEntirelyFull(obj, uniqueGroupIds)
%If V is entirely full, throw an error
if length(uniqueGroupIds) == 1

error(['Standard Error Calculation must include some contraints on error covariance.\n',...
error(['Standard Error Calculation must include some constraints on error covariance.\n',...
'If only one group is in data passed to UnconstrainedBlock calculator, covariance of beta reduces to zero.',...
' Fix by either separating data into different group IDs, or using a different standard error calculator strategy',...
' (Homoskedastic, Heteroskedastic, etc)\n\n']);
Expand Down
2 changes: 1 addition & 1 deletion +nla/+helpers/+stdError/UnconstrainedBlocks_Sparse.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
%determine which elements of V will be non-zero based on
%grouping.
%First reorganize data so that observations within groups are
%next to eachother
%next to each other
[pinvDesignMtx_grp, residual_grp, groupIds_grp] = obj.reorderDataByGroup(pinvDesignMtx, residual, groupIds);


Expand Down
2 changes: 1 addition & 1 deletion +nla/+helpers/wildBootstrap.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

function outVec = getRademacherVector(numPts)
%Returns a vector [numPts x 1] long of samples from a rademacher
%distribution (ie +/-1 with equal probabilty)
%distribution (ie +/-1 with equal probability)
randVec = rand(numPts,1);
vecIsPos = randVec>0.5;
outVec = (vecIsPos - 0.5) * 2;
Expand Down
2 changes: 1 addition & 1 deletion +nla/+lib/fdr_bh.m
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
% if ~isnan(adj_ci_cvrg),
% sigIds=find(h);
% fcr_adj_cis(:,sigIds)=tCIs(data(:,sigIds),adj_ci_cvrg); % tCIs.m is available on the
% %Mathworks File Exchagne
% %Mathworks File Exchange
% end
%
%
Expand Down
2 changes: 1 addition & 1 deletion +nla/+net/+result/+chord/ChordPlotter.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% CHORDPLOTTER Draws network test results in Chord Figures
% Object takes the brain network atlas and the edge test results to initialize
% generateChordFigure creates the chord plots for the network test results
% The parameters used as an input are fron NetworkResultPlotParameter
% The parameters used as an input are from NetworkResultPlotParameter
% Chord type is coming from the test options/input_struct.

properties (Constant)
Expand Down
2 changes: 1 addition & 1 deletion +nla/+net/+result/NetworkResultPlotParameter.m
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function brainFigureButtonCallback(network1, network2)
end

function result = plotProbabilityVsNetworkSize(obj, test_method, plot_statistic)
% Two convience methods
% Two convenience methods
network_size = obj.getNetworkSizes();
statistic_input = obj.getStatsFromMethodAndName(test_method, plot_statistic, obj.updated_test_options.ranking_method);

Expand Down
2 changes: 1 addition & 1 deletion +nla/+net/CohenDTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

%DETERMINED THAT CURRENT COHEN'S D CALC IS INVALID
%RETURN WITHOUT MODIFYING EXISTING D PLACEHOLDER VALUE FROM 0
%RECOMMEND THAT, WHEN REENABLED, THIS FN BE CHANGED TO ACCEPT
%RECOMMEND THAT, WHEN RE-ENABLED, THIS FN BE CHANGED TO ACCEPT
%VECTOR OF INPUT AND RETURN VECTOR OF OUTPUT RATHER THAN
%RESULTS CLASS
%ADE 2025MAR24
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Codespell configuration is within pyproject.toml
---
name: Codespell

on:
push:
branches: [master]
pull_request:
branches: [master]

permissions:
contents: read

jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Annotate locations with typos
uses: codespell-project/codespell-problem-matcher@v1
- name: Codespell
uses: codespell-project/actions-codespell@v2
2 changes: 1 addition & 1 deletion docs/source/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Running with example data
1. First, open the NLA software (as described in :doc:`setup`). Select ``Pearson's r`` as the edge-level
test from the edge-level test dropdown.

2. Click :guilabel:`Select` to choose a network atlas, navigating to the ``support_files`` folder withing your
2. Click :guilabel:`Select` to choose a network atlas, navigating to the ``support_files`` folder within your
NetworkLevelAnalysis installation and selecting ``Wheelock_2020_CerebralCortex_15nets_288ROI_on_MNI.mat``.
This file is used to parcellate the data.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/network_level_results.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ In NLA this is referred to as "ranking" since it is simply counting values in a
ranking is referred to as the "uncorrected" *p*-value. There are two other options for ranking in NLA. These
account for :abbr:`FWER (family-wise error rate)`. The first method is based off the "randomise" method :cite:p:`FreedmanD,WinklerA`.
This is referred to as the "Winkler method". The second method is called "Westfall-Young" in NLA described by
an alogrithm :cite:p:`WestfallP` by Westfall and Young.
an algorithm :cite:p:`WestfallP` by Westfall and Young.

Result Rank
---------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/network_level_tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Provided Tests

* **Hypergeomtric**

* MATLAB's `hypercdf <https://www.mathworks.com/help/stats/hygecdf.html>`_ used to find the probablity
* MATLAB's `hypercdf <https://www.mathworks.com/help/stats/hygecdf.html>`_ used to find the probability

*Inputs:*
* :math:`O_i`: non-permuted, nominally thresholded, and binarized edge-level *p*-values for the network-pair of interest
Expand Down
6 changes: 3 additions & 3 deletions docs/source/refs.bib
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ @Article{PowerJ
}

@Article{GrattonC,
title = {Funcational Brain Networks Are Dominated by Stable Group and Individual Factors,
title = {Functional Brain Networks Are Dominated by Stable Group and Individual Factors,
Not Cognitive or Daily Variation},
author = {Gratton C.},
journal = {Neuron},
Expand All @@ -77,7 +77,7 @@ @Article{GrattonC
}

@Article{FormanS,
title = {Improved Assessment of Significant Activation in Funcational Magnetic Resonance Imaging
title = {Improved Assessment of Significant Activation in Functional Magnetic Resonance Imaging
(fMRI): Use of Cluster-Size Threshold.},
author = {Forman, S.D.},
journal = {Magn Reson Med},
Expand Down Expand Up @@ -221,7 +221,7 @@ @Article{McKinnonC
}

@Article{MarekS,
title = {Identifying reproducible individual differences in childhood funcational brain networks:
title = {Identifying reproducible individual differences in childhood functional brain networks:
An ABCD study},
author = {Marek, S.},
journal = {Dev Cogn Neurosci},
Expand Down
2 changes: 1 addition & 1 deletion docs/source/using_the_gui.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Or, in the file browser section of the MATLAB window, right click on ``NLA_GUI.m
Usually there are selectors for functional connectivity, network atlas, and behavior files. There may also be other options depending on the test.
If "Precalculated data" is selected, there will be selectors for data instead. (See: :ref:`Precalculated data loader <precalculated>`)
#. Behavior table
This will display the table when the behavior file is loaded. The table is used to select the behvaior to test, co-variates used (optional), and
This will display the table when the behavior file is loaded. The table is used to select the behavior to test, co-variates used (optional), and
permutation groupings (optional). (See: :doc:`Behavior Table <../behavior_table>`)
#. Network-level test pane
Selection of network-level test(s). One can be selected, or multiple with Ctrl/Shift + left click.
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

[tool.codespell]
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
skip = '.git*'
check-hidden = true
ignore-regex = '\b(Brain Mapp|Reson Med|FPR|Hendler)'
# ignore-words-list = ''