{"id":19252323,"url":"https://github.com/sccn/rest","last_synced_at":"2026-06-12T22:32:53.315Z","repository":{"id":150759822,"uuid":"288296080","full_name":"sccn/REST","owner":"sccn","description":"REST plugin","archived":false,"fork":false,"pushed_at":"2020-12-17T19:39:53.000Z","size":127,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-02T16:57:43.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sccn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-17T22:06:16.000Z","updated_at":"2024-02-05T03:27:42.000Z","dependencies_parsed_at":"2023-05-01T22:16:49.842Z","dependency_job_id":null,"html_url":"https://github.com/sccn/REST","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sccn/REST","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sccn%2FREST","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sccn%2FREST/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sccn%2FREST/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sccn%2FREST/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sccn","download_url":"https://codeload.github.com/sccn/REST/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sccn%2FREST/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34265491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T18:26:26.937Z","updated_at":"2026-06-12T22:32:53.283Z","avatar_url":"https://github.com/sccn.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"All copyrights of the software are reserved by the Key Laboratory for NeuroInformation of Ministry of Education, School of Life Science and Technology, University of Electronic Science and Technology of China. This software is for non-commercial use only. It is freeware but not in the public domain.\r\n\r\nFor more see http://www.neuro.uestc.edu.cn/rest/\r\nReference: Yao D (2001) A method to standardize a reference of scalp EEG recordings to a point at infinity.\r\n                      Physiol Meas 22:693?11. doi: 10.1088/0967-3334/22/4/305\r\n\r\nWritten by Li Dong (Li_dong729@163.com) and Shiang Hu (hushiang@126.com)\r\nDate: Aug. 19, 2019\r\n\r\n## Please cite this toolbox as\r\n\r\nLi Dong*, Fali Li, Qiang Liu, Xin Wen, Yongxiu Lai, Peng Xu and Dezhong Yao*. MATLAB Toolboxes for Reference Electrode Standardization Technique (REST) of Scalp EEG. Frontiers in Neuroscience,  2017:11(601).\r\n\r\n## Install\r\nTo install REST, download the zip file (linked above), unzip and place the folder in the 'plugins' folder of your existing EEGLAB installation (so something like ~/eeglab12_0_6b/plugins/REST_reference_v1.0/eegplugin_rest.m exists).\r\n\r\nTo run REST, ensure that the correct EEGLAB folder is in your current Matlab path, and run 'eeglab' as a command from the Matlab Command Window.\r\n\r\nThen, load data using EEGLAB, click 'REST'--\u003e 'Re-referencing to REST'\r\n\r\n## Re-referencing to REST steps\r\n1. Select original reference;';...\r\n    Average: average reference.';...\r\n    A Fixed Electrode: reference is a fixed a electrode, e.g. Cz.\r\n2. Select Channels: Select channels you want to re-reference\r\n    Retain remaining channels?: if you want to keep un-selected channels in the data, check the box\r\n3. If channel location has been imported in EEG.channlocs, Press button ''Run'' directly\r\n    OR you can selcet a user defined lead field file, and then Press button ''Run''\r\n4. Load channel location in EEGLAB\r\n     Edit--\u003e channel locations --\u003e OK\r\n     Default head model is a 3-concentric sphere head model,more details can be seen in Dong et al., 2017\r\n```matlab     \r\n     headmodel.cond = [1,0.0125,1]\r\n     headmodel.tissue = { 'brain','skull', 'scalp' }';\r\n     headmodel.r = [0.87,0.92,1]';\r\n```\r\n\r\nIt calculates the leadfield matrix from the 3000 cortical dipoles (spherical equivalent dipoles, see 'corti869-3000dipoles.dat') and the newly given electrode array for the canonical concentric-three-spheres head model.The radii of the three concentri spheres are 0.87(inner radius of the skull), 0.92(outer radius of the skull) and 1.0(radius of the head), while the conductivities are 1.0(brain and scalp) and 0.0125 (skull). The electorde array shoved as *.txt ASCII files with their Cartesian x (the left ear is defined as -x axis),y (the nasion is the +y axis),z coordinates in three columns.\r\nNoting that because the default sources/dipoles (concentric-three-spheres head model) are symmetric,if the left ear is defined as +x axis, it will generate same re-referencing results while the left ear is defined as -x axis.\r\n\r\n5. Select a lead field file (has been calculated and saved as *.txt/*.xls/*.xlsx/*.dat):';...\r\n     The size of lead field matrix should be No. of sources X No. channels';...\r\n        '  [4] Press button ''OK'' to save the re-referencing data to workspace (ALLEEG).In EEGLAB, click 'Datasets'--\u003e'*_REST'';...\r\n\r\n## Version history\r\n\r\nv1.2 - fixed by SCCN/UCSD\r\n\r\nREST_reference_v1.0_20170411 [1] Retain unselected channels (e.g. EMG, EOG, band channels etc.), while saving re-reference EEG data.\r\n\r\nREST_reference_v1.1_20190819\r\n      [1] Calculate leadfield at once, based on canonical concentric-three-spheres head model.\r\n      [2] remove the leadfield.exe.\r\n      [3] add reference papers on the interface\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsccn%2Frest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsccn%2Frest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsccn%2Frest/lists"}