diff --git a/README.md b/README.md index 204be14..b090755 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ Option to merge TACs across runs for each subject within a single session. #### `--docker` -Indicates the script will run within a Docker container that contains all of the necessary dependencies for this project. A version of FreeSurfer should stil be installed along with a valid license. If you have difficulty using this extra option below is an example of an "unwrapped" command to execute this pipeline in Docker. +Indicates the script will run within a Docker container that contains all of the necessary dependencies for this project. A version of FreeSurfer should still be installed along with a valid license. If you have difficulty using this extra option below is an example of an "unwrapped" command to execute this pipeline in Docker. ```bash docker run -a stderr -a stdout --rm \ diff --git a/petprep_extract_tacs/utils/merge_tacs.py b/petprep_extract_tacs/utils/merge_tacs.py index cff9904..d287bc5 100644 --- a/petprep_extract_tacs/utils/merge_tacs.py +++ b/petprep_extract_tacs/utils/merge_tacs.py @@ -79,7 +79,7 @@ def collect_and_merge_tsvs(bids_dir, subjects=[], **kwargs): subjects_to_be_merged[subject][k] = [] subjects_to_be_merged[subject][k].append(tsv) - # now we only focuse on subjects that are specified if that's given in thes arguments + # now we only focus on subjects that are specified if that's given in these arguments # subjects = [01, 02, ...] for this function if subjects != []: subjects_to_remove = list(set(subjects_to_be_merged.keys() - set(subjects))) diff --git a/tests/test_merge_tacs.py b/tests/test_merge_tacs.py index 0a6a711..828579d 100644 --- a/tests/test_merge_tacs.py +++ b/tests/test_merge_tacs.py @@ -22,7 +22,7 @@ def test_collect_and_merge_tsvs(): # get all tsvs with glob all_tsvs = glob.glob(f"{tempdir}/**/*.tsv", recursive=True) - # ignore everthing that doesn't have run in it. + # ignore everything that doesn't have run in it. unmerged_run_tsvs = [tsv for tsv in all_tsvs if "_run-" in tsv] unmerged_run_tsvs.sort() @@ -39,7 +39,7 @@ def test_collect_and_merge_tsvs(): merged_tsvs = collect_and_merge_tsvs(bids_dir=tempdir) merged_tsvs = {tsv: pandas.read_csv(tsv, sep="\t") for tsv in merged_tsvs} - # check that the merged tsvs are the concatentaion of the unmerged tac tsvs same as the unmerged run tsvs + # check that the merged tsvs are the concatentation of the unmerged tac tsvs same as the unmerged run tsvs tacs = [unmerged_run_tsvs[tsv] for tsv in unmerged_run_tsvs if "tacs" in tsv] # add up lengths of split tacs