Pārlūkot izejas kodu

add links, remove unneeded env*.yml

Stefan Appelhoff 2 gadi atpakaļ
vecāks
revīzija
c9fdc303dd
4 mainītis faili ar 25 papildinājumiem un 49 dzēšanām
  1. 0 2
      README.md
  2. 0 35
      code/environment.yml
  3. 22 10
      code/source_to_bids.py
  4. 3 2
      dataset_description.json

+ 0 - 2
README.md

@@ -8,8 +8,6 @@ This is the readme of the `mpib_sp_eeg` dataset. The short dataset name results
 
 The data was collected in 2019 at the MPIB in Berlin by Stefan Appelhoff and colleagues.
 
-All important details are reported in the original paper for the project: https://doi.org/10.1101/2021.06.03.446960
-
 The data is organized according to the Brain Imaging Data Structure, see: https://bids.neuroimaging.io
 
 The dataset is managed with datalad, see: http://handbook.datalad.org/en/latest/index.html

+ 0 - 35
code/environment.yml

@@ -1,35 +0,0 @@
-name: sp
-channels:
-- defaults
-- conda-forge
-dependencies:
-- python=3.8
-- pip
-- tqdm
-- ipython
-- jupyter
-- jupyter_contrib_nbextensions
-- nbconvert<6.0
-- mkl
-- numpy<1.21
-- numba
-- scipy<1.7
-- matplotlib
-- pandas<1.3
-- scikit-learn
-- seaborn
-- statsmodels<0.13
-- nbdime
-- flake8
-- flake8-docstrings
-- black
-- isort
-- git-annex
-- r-base
-- r-afex
-- pip:
-  - rpy2<3.5
-  - datalad
-  - pingouin<0.3.13
-  - mne<0.23
-  - mne_bids<0.8

+ 22 - 10
code/source_to_bids.py

@@ -12,9 +12,12 @@ BIDS-folder
 │   └── ...
 ...
 
-For software dependencies see the environment.yml file for use with the
-conda package manager.
+You need to have the following software dependencies installed for this code to work:
 
+- mne_bids < 0.8
+- mne < 0.23
+
+All remaining dependencies will be installed automatically with the packages above.
 """
 # %% Imports and constants
 import glob
@@ -25,11 +28,11 @@ import os.path as op
 import pathlib
 import shutil
 from tempfile import mkdtemp
+import requests
 
 import mne_bids
 import numpy as np
 import pandas as pd
-import requests
 from mne.channels import read_dig_captrak
 from mne.io import read_raw_brainvision
 from mne_bids.copyfiles import copyfile_brainvision
@@ -321,8 +324,6 @@ This is the readme of the `mpib_sp_eeg` dataset. The short dataset name results
 
 The data was collected in 2019 at the MPIB in Berlin by Stefan Appelhoff and colleagues.
 
-All important details are reported in the original paper for the project: https://doi.org/10.1101/2021.06.03.446960
-
 The data is organized according to the Brain Imaging Data Structure, see: https://bids.neuroimaging.io
 
 The dataset is managed with datalad, see: http://handbook.datalad.org/en/latest/index.html
@@ -342,15 +343,25 @@ cd mpib_sp_eeg
 datalad get participants.tsv
 ```
 
-## Analysis code
+## Preprint
+
+A preprint is available on BioRxiv.
 
-The code used for data analysis can be found here: https://github.com/sappelhoff/sp_code
+- BioRxiv: https://doi.org/10.1101/2021.06.03.446960
 
 ## Experimental presentation code
 
-The code used for the experimental presentation can be found here: https://github.com/sappelhoff/sp_experiment
+The code used for the experimental presentation can be found on GitHub and Zenodo.
 
-Or in the archived version at Zenodo: https://doi.org/10.5281/zenodo.3354368
+- GitHub: https://github.com/sappelhoff/sp_experiment
+- Zenodo: https://doi.org/10.5281/zenodo.3354368
+
+## Analysis code
+
+The code used for data analysis can be found on GitHub and on Zenodo.
+
+- GitHub: https://github.com/sappelhoff/sp_code
+- Zenodo: https://doi.org/10.5281/zenodo.5929222
 
 ## Contact
 
@@ -404,6 +415,7 @@ def make_dataset_description(bids_root, overwrite):
         "ReferencesAndLinks": [
             "https://doi.org/10.1101/2021.06.03.446960",
             "https://doi.org/10.5281/zenodo.3354368",
+            "https://doi.org/10.5281/zenodo.5929222",
         ],
         "DatasetDOI": "https://gin.g-node.org/sappelhoff/mpib_sp_eeg/",
     }
@@ -412,7 +424,7 @@ def make_dataset_description(bids_root, overwrite):
     if not op.exists(fname) or overwrite:
         with open(fname, "w", encoding="utf-8") as fout:
             json.dump(dataset_description_json, fout, ensure_ascii=False, indent=4)
-
+            fout.write("\n")
 
 # %% Make LICENSE
 

+ 3 - 2
dataset_description.json

@@ -15,7 +15,8 @@
     ],
     "ReferencesAndLinks": [
         "https://doi.org/10.1101/2021.06.03.446960",
-        "https://doi.org/10.5281/zenodo.3354368"
+        "https://doi.org/10.5281/zenodo.3354368",
+        "https://doi.org/10.5281/zenodo.5929222",
     ],
     "DatasetDOI": "https://gin.g-node.org/sappelhoff/mpib_sp_eeg/"
-}
+}