Skip to content

[FIX] fix spelling #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2022
Merged
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
4 changes: 4 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[codespell]
skip = .git,env,*build,lib
builtin = clear,rare
ignore-words-list = morg, fo
19 changes: 19 additions & 0 deletions .github/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: codespell

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

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# Check for common misspellings
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: codespell-project/actions-codespell@master
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ initCppRoi
```

If you are using CPP_SPM, you got nothing to do as CPP_ROI is already installed
as a submodule, and intitialized when running `initCppSpm`.
as a submodule, and initialized when running `initCppSpm`.

### Dependencies

Expand All @@ -63,7 +63,7 @@ as a submodule, and intitialized when running `initCppSpm`.
- Can help generate ROI based on:
- the SPM Anatomy toolbox (INSERT URL)
- the SPM neuromorphometric atlas
- neurosynth probabilty maps
- neurosynth probability maps
- the probabilistic maps of visual topography in human cortex [@wang2014]
- https://scholar.princeton.edu/napl/resources
- the probabilistic functional atlas of human occipito-temporal visual cortex [@rosenke2020]
Expand Down
2 changes: 1 addition & 1 deletion demos/roi/get_peak_coordinates.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
% If there is no value above a certain threshold the function will return NaN
threshold = 1;

% The image and the ROI must have the same dimension if we want to use the thresold option
% The image and the ROI must have the same dimension if we want to use the threshold option
reslicedImages = resliceRoiImages(dataImage, roiImage);

% Get to work.
Expand Down
6 changes: 3 additions & 3 deletions demos/roi/label_and_extract_clusters.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% (C) Copyright 2021 CPP ROI developers

%
% scritps to transform a probability map from neurosynth
% scripts to transform a probability map from neurosynth
% into an image with fewer clusters (apply peak and extend threshold) and
% where each cluster has one label.
%
Expand All @@ -20,8 +20,8 @@

labeledClusters = labelClusters(zMap, peakThreshold, extendThreshold);

%% Use the ouput of the previous step
% to vizualize the image and figure out what is the label we want to extract.
%% Use the output of the previous step
% to visualize the image and figure out what is the label we want to extract.
labelStruct = struct('ROI', 'ns left MT', ...
'label', 1);

Expand Down
2 changes: 1 addition & 1 deletion src/roi/getPeakCoordinates.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

data(~mask) = nan(1, sum(~mask(:)));

% Get the location of the higest t-value in slice space
% Get the location of the highest t-value in slice space
voxeIdx = find(data == maxVal);
if numel(voxeIdx) > 1
% TODO return list of all maximums?
Expand Down