Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jstout211 authored Nov 12, 2021
1 parent 6f42de0 commit 1117f04
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
#Create MNE transformation matrix from NIMH MEG datasets
Create MNE transformation matrix from NIMH MEG datasets

## Install:
```pip install git+https://github.com/nih-megcore/nih_to_mne```


## Adds calc_mnetrans.py and bstags.py to the commandline

```
usage: calc_mnetrans.py [-h] [-subjects_dir SUBJECTS_DIR] [-anat_json ANAT_JSON] [-tagfile TAGFILE]
[-elec_txt ELEC_TXT] -subject SUBJECT [-afni_mri AFNI_MRI]
[-trans_output TRANS_OUTPUT] -dsname DSNAME [-view_coreg]
optional arguments:
-h, --help show this help message and exit
-subjects_dir SUBJECTS_DIR
Set SUBJECTS_DIR different from the environment variable. If not set this
defaults to os.environ['SUBJECTS_DIR]
-anat_json ANAT_JSON Full path to the BIDS anatomy json file with the NAS,RPA,LPA locations
-tagfile TAGFILE Tagfile generated by bstags.py
-elec_txt ELEC_TXT Electrode text file exported from brainsight
-subject SUBJECT The freesurfer subject id. This folder is expected to be in the freesurfer
SUBJECTS_DIR
-afni_mri AFNI_MRI Provide a BRIK or HEAD file as input. Data must have the tags assigned to
the header.
-trans_output TRANS_OUTPUT
The output path for the mne trans.fif file
-dsname DSNAME CTF dataset to create the transform
-view_coreg Display the coregistration of MEG and head surface
```

```
usage: bstags.py file.txt
Where file.txt is the saved electrode location output from Brainsight.
```

0 comments on commit 1117f04

Please sign in to comment.