Robust and replicable effects of ageing on resting-state brain electrophysiology measured with MEG
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 212 lines · 7 KB · BSD-3-Clause
- # -*- coding: utf-8 -*-
- #
- # This file is execfile()d with the current directory set to its containing dir.
- #
- # Note that not all possible configuration values are present in this
- # autogenerated file.
- #
- # All configuration values have a default; values that are commented out
- # serve to show the default.
- import inspect
- import os
- import shutil
- import sys
- __location__ = os.path.join(
- os.getcwd(), os.path.dirname(inspect.getfile(inspect.currentframe()))
- )
- # If extensions (or modules to document with autodoc) are in another directory,
- # add these directories to sys.path here. If the directory is relative to the
- # documentation root, use os.path.abspath to make it absolute, like shown here.
- sys.path.insert(0, os.path.join(__location__, "../.."))
- # -- General configuration -----------------------------------------------------
- # If your documentation needs a minimal Sphinx version, state it here.
- # needs_sphinx = '1.0'
- # Add any Sphinx extension module names here, as strings. They can be extensions
- # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
- extensions = [
- #"sphinx.ext.autosummary",
- #"sphinx.ext.autodoc",
- "sphinx.ext.intersphinx",
- "sphinx.ext.todo",
- "sphinx.ext.viewcode",
- "sphinx.ext.coverage",
- "sphinx.ext.doctest",
- "sphinx.ext.ifconfig",
- "sphinx.ext.mathjax",
- "sphinx.ext.napoleon",
- "sphinx_gallery.gen_gallery",
- "autoapi.extension",
- ]
- autoapi_type = "python"
- autoapi_keep_files = True
- autoapi_add_toctree_entry = False
- autoapi_dirs = ["../../osl_ephys"]
- sphinx_gallery_conf = {
- "examples_dirs": "tutorials", # path to your example (tutorial) scripts
- "gallery_dirs": "tutorials_build", # path to where to save gallery generated output
- }
- # Add any paths that contain templates here, relative to this directory.
- # templates_path = ["_templates"]
- # The suffix of source filenames.
- source_suffix = ".rst"
- # The encoding of source files.
- # source_encoding = 'utf-8-sig'
- # The master toctree document.
- master_doc = "index"
- # General information about the project.
- project = "osl-ephys"
- copyright = "2022, OHBA Methods Group, University of Oxford"
- author = "OHBA Methods Group, University of Oxford"
- # The version info for the project you're documenting, acts as replacement for
- # |version| and |release|, also used in various other places throughout the
- # built documents.
- #
- # The short X.Y version.
- version = "2.0.0" # Is set by calling `setup.py docs`
- # The full version, including alpha/beta/rc tags.
- release = "" # Is set by calling `setup.py docs`
- # The language for content autogenerated by Sphinx. Refer to documentation
- # for a list of supported languages.
- # language = None
- # There are two options for replacing |today|: either, you set today to some
- # non-false value, then it is used:
- # today = ''
- # Else, today_fmt is used as the format for a strftime call.
- # today_fmt = '%B %d, %Y'
- # List of patterns, relative to source directory, that match files and
- # directories to ignore when looking for source files.
- # exclude_patterns = ["_build"]
- # The reST default role (used for this markup: `text`) to use for all documents.
- # default_role = None
- # If true, '()' will be appended to :func: etc. cross-reference text.
- # add_function_parentheses = True
- # If true, the current module name will be prepended to all description
- # unit titles (such as .. function::).
- # add_module_names = True
- # If true, sectionauthor and moduleauthor directives will be shown in the
- # output. They are ignored by default.
- # show_authors = False
- # The name of the Pygments (syntax highlighting) style to use.
- pygments_style = "sphinx"
- # A list of ignored prefixes for module index sorting.
- # modindex_common_prefix = []
- # If true, keep warnings as "system message" paragraphs in the built documents.
- # keep_warnings = False
- # -- Options for HTML output ---------------------------------------------------
- # The theme to use for HTML and HTML Help pages. See the documentation for
- # a list of builtin themes.
- html_theme = "pydata_sphinx_theme"
- # Theme options are theme-specific and customize the look and feel of a theme
- # further. For a list of options available for each theme, see the
- # documentation.
- html_theme_options = {
- "gitlab_url": "https://github.com/OHBA-analysis/osl-ephys",
- }
- # Add any paths that contain custom themes here, relative to this directory.
- # html_theme_path = []
- # The name for this set of Sphinx documents. If None, it defaults to
- # "<project> v<release> documentation".
- # try:
- # from osl_dynamics import __version__ as version
- # except ImportError:
- # pass
- # else:
- # release = version
- html_title = "osl-ephys"
- # A shorter title for the navigation bar. Default is the same as html_title.
- html_short_title = "osl-ephys"
- # The name of an image file (relative to this directory) to place at the top
- # of the sidebar.
- html_logo = "https://avatars.githubusercontent.com/u/15248840?s=200&v=4"
- # The name of an image file (within the static path) to use as favicon of the
- # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
- # pixels large.
- # html_favicon = None
- # Add any paths that contain custom static files (such as style sheets) here,
- # relative to this directory. They are copied after the builtin static files,
- # so a file named "default.css" will overwrite the builtin "default.css".
- # html_static_path = ["_static"]
- # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
- # using the given strftime format.
- # html_last_updated_fmt = '%b %d, %Y'
- # If true, SmartyPants will be used to convert quotes and dashes to
- # typographically correct entities.
- # html_use_smartypants = True
- # Custom sidebar templates, maps document names to template names.
- # html_sidebars = {}
- # Additional templates that should be rendered to pages, maps page names to
- # template names.
- # html_additional_pages = {}
- # If false, no module index is generated.
- # html_domain_indices = True
- # If false, no index is generated.
- # html_use_index = True
- # If true, the index is split into individual pages for each letter.
- # html_split_index = False
- # If true, links to the reST sources are added to the pages.
- # html_show_sourcelink = True
- # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
- # html_show_sphinx = False
- # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
- # html_show_copyright = False
- # If true, an OpenSearch description file will be output, and all pages will
- # contain a <link> tag referring to it. The value of this option must be the
- # base URL from which the finished HTML is served.
- # html_use_opensearch = ''
- # This is the file name suffix for HTML files (e.g. ".xhtml").
- # html_file_suffix = None
- # Output file base name for HTML help builder.
- htmlhelp_basename = "osl-doc"
- intersphinx_mapping = {
- 'mne': ('https://mne.tools/stable/', None),
- 'osl-ephys': ('https://osl-ephys.readthedocs.io/en/stable/', None),
- 'dask': ('https://distributed.dask.org/en/stable/', None),
- 'sails': ('https://sails.readthedocs.io/en/stable/', None),
- 'matplotlib': ('https://matplotlib.org/stable/', None),
- }
conf.py, under BSD-3-Clause · at the source
Overview
Abstract
No abstract was found for this paper: the paper, at the publisher.
Repositories
Its files are read in the Code ↔ Paper reader above.
Zenodo 10401792
Zenodo 6875059
116 files
- doc/
source/ , Python, 212 linesconf.py - doc/
source/ , Python, 558 linestutorials/ glm_sensor.py - doc/
source/ , Python, 703 linestutorials/ glm_simulation.py - doc/
source/ , Python, 328 linestutorials/ preprocessing_automatic. py - doc/
source/ , Python, 150 linestutorials/ preprocessing_batch.py - doc/
source/ , Python, 395 linestutorials/ preprocessing_manual.py - doc/
source/ , Python, 850 linestutorials/ source-recon_batch.py - doc/
source/ , Python, 396 linestutorials/ source-recon_coreg.py - doc/
source/ , Python, 222 linestutorials/ source-recon_deleting-he adshape-points.py - doc/
source/ , Python, 315 linestutorials/ source-recon_subject.py - doc/
source/ , Jupyter, 543 linestutorials_build/ glm_sensor.ipynb - doc/
source/ , Python, 558 linestutorials_build/ glm_sensor.py - doc/
source/ , Jupyter, 705 linestutorials_build/ glm_simulation.ipynb - doc/
source/ , Python, 703 linestutorials_build/ glm_simulation.py - doc/
source/ , Jupyter, 330 linestutorials_build/ preprocessing_automatic. ipynb - doc/
source/ , Python, 328 linestutorials_build/ preprocessing_automatic. py - doc/
source/ , Jupyter, 144 linestutorials_build/ preprocessing_batch.ipyn b - doc/
source/ , Python, 150 linestutorials_build/ preprocessing_batch.py - doc/
source/ , Jupyter, 431 linestutorials_build/ preprocessing_manual.ipy nb - doc/
source/ , Python, 395 linestutorials_build/ preprocessing_manual.py - doc/
source/ , Jupyter, 819 linestutorials_build/ source-recon_batch.ipynb - doc/
source/ , Python, 850 linestutorials_build/ source-recon_batch.py - doc/
source/ , Jupyter, 379 linestutorials_build/ source-recon_coreg.ipynb - doc/
source/ , Python, 396 linestutorials_build/ source-recon_coreg.py - doc/
source/ , Jupyter, 225 linestutorials_build/ source-recon_deleting-he adshape-points.ipynb - doc/
source/ , Python, 222 linestutorials_build/ source-recon_deleting-he adshape-points.py - doc/
source/ , Jupyter, 302 linestutorials_build/ source-recon_subject.ipy nb - doc/
source/ , Python, 315 linestutorials_build/ source-recon_subject.py - examples/
ctf/ , Python, 43 linesctf_with_headshape_pos/ 1_preprocess.py - examples/
ctf/ , Python, 131 linesctf_with_headshape_pos/ 2_coregister.py - examples/
ctf/ , Python, 42 linesctf_with_headshape_pos/ 3_source_reconstruct.py - examples/
ctf/ , Python, 40 linesctf_with_headshape_pos/ 4_sign_flip.py - examples/
ctf/ , Python, 19 linesctf_with_headshape_pos/ 5_save_npy.py - examples/
ctf/ , Python, 33 linesctf_with_smri_fid/ 1_preprocess.py - examples/
ctf/ , Python, 41 linesctf_with_smri_fid/ 2_coregister.py - examples/
ctf/ , Python, 38 linesctf_with_smri_fid/ 3_source_reconstruct.py - examples/
ctf/ , Python, 63 linesctf_with_smri_fid/ 4_sign_flip.py - examples/
elekta/ , Python, 28 lines1_maxfilter.py - examples/
elekta/ , Python, 57 lines2_preprocess.py - examples/
elekta/ , Python, 67 lines3_coregister.py - examples/
elekta/ , Python, 59 lines4_source_reconstruct.py - examples/
elekta/ , Python, 55 lines5_sign_flip.py - examples/
misc/ , Python, 469 linesbeamformer_comparison_pa per.py - examples/
misc/ , Python, 75 linesdelete_headshape_points. py - examples/
misc/ , Python, 56 linesfix_smri_files.py - examples/
misc/ , Python, 73 linessign_flipping_matlab_fil es.py - examples/
misc/ , Python, 59 linesspectrum_analysis_walkth rough.py - examples/
opm/ , Python, 34 lines1_preprocess.py - examples/
opm/ , Python, 64 lines2_coregister.py - examples/
opm/ , Python, 41 lines3_source_reconstruct.py - examples/
opm/ , Python, 37 lines4_sign_flip.py - examples/
opm/ , Python, 19 lines5_save_npy.py - examples/
parallelisation/ , Python, 58 linesparallel_preprocess.py - examples/
parallelisation/ , Python, 112 linesparallel_source_reconstr uct.py - examples/
parallelisation/ , Python, 40 linesserial_preprocess.py - examples/
parallelisation/ , Python, 94 linesserial_source_reconstruc t.py - osl_ephys/
__init__.py , Python, 40 lines - osl_ephys/
glm/ , Python, 6 lines__init__.py - osl_ephys/
glm/ , Python, 995 linesglm_base.py - osl_ephys/
glm/ , Python, 386 linesglm_epochs.py - osl_ephys/
glm/ , Python, 1,367 linesglm_spectrum.py - osl_ephys/
maxfilter/ , Python, 10 lines__init__.py - osl_ephys/
maxfilter/ , Python, 775 linesmaxfilter.py - osl_ephys/
preprocessing/ , Python, 10 lines__init__.py - osl_ephys/
preprocessing/ , Python, 1,245 linesbatch.py - osl_ephys/
preprocessing/ , Python, 289 linesica_label.py - osl_ephys/
preprocessing/ , Python, 831 linesmne_wrappers.py - osl_ephys/
preprocessing/ , Python, 924 linesosl_wrappers.py - osl_ephys/
preprocessing/ , Python, 1,405 linesplot_ica.py - osl_ephys/
report/ , Python, 8 lines__init__.py - osl_ephys/
report/ , Python, 1,556 linespreproc_report.py - osl_ephys/
report/ , Python, 499 linessrc_report.py - osl_ephys/
source_recon/ , Python, 6 lines__init__.py - osl_ephys/
source_recon/ , Python, 432 linesbatch.py - osl_ephys/
source_recon/ , Python, 1,351 linesbeamforming.py - osl_ephys/
source_recon/ , Python, 6 linesparcellation/ __init__.py - osl_ephys/
source_recon/ , Python, 131 linesparcellation/ nii.py - osl_ephys/
source_recon/ , Python, 980 linesparcellation/ parcellation.py - osl_ephys/
source_recon/ , Python, 10 linesrhino/ __init__.py - osl_ephys/
source_recon/ , Python, 1,105 linesrhino/ coreg.py - osl_ephys/
source_recon/ , Python, 325 linesrhino/ forward_model.py - osl_ephys/
source_recon/ , Python, 84 linesrhino/ fsl_utils.py - osl_ephys/
source_recon/ , Python, 466 linesrhino/ polhemus.py - osl_ephys/
source_recon/ , Python, 569 linesrhino/ surfaces.py - osl_ephys/
source_recon/ , Python, 1,318 linesrhino/ utils.py - osl_ephys/
source_recon/ , Python, 380 linessign_flipping.py - osl_ephys/
source_recon/ , Python, 1,073 lineswrappers.py - osl_ephys/
tests/ , Python, 1 line__init__.py - osl_ephys/
tests/ , Python, 76 linestest_00_package_canary.p y - osl_ephys/
tests/ , Python, 75 linestest_batch_api.py - osl_ephys/
tests/ , Python, 144 linestest_batch_preproc.py - osl_ephys/
tests/ , Python, 196 linestest_file_handling.py - osl_ephys/
tests/ , Python, 41 linestest_glm.py - osl_ephys/
tests/ , Python, 82 linestest_parallel.py - osl_ephys/
utils/ , Python, 16 lines__init__.py - osl_ephys/
utils/ , Python, 98 linescreate_neuromag306_info. py - osl_ephys/
utils/ , Python, 217 linesfile_handling.py - osl_ephys/
utils/ , Python, 161 lineslogger.py - osl_ephys/
utils/ , Python, 30 linesmisc.py - osl_ephys/
utils/ , Python, 347 linesopm.py - osl_ephys/
utils/ , Python, 44 linespackage.py - osl_ephys/
utils/ , Python, 79 linesparallel.py - osl_ephys/
utils/ , Python, 38 linesrun_func.py - osl_ephys/
utils/ , Python, 233 linessimulate.py - osl_ephys/
utils/ , Python, 1 linesimulation_config/ __init__.py - osl_ephys/
utils/ , Python, 102 linessimulation_config/ simulate.py - osl_ephys/
utils/ , Python, 1 linespmio/ __init__.py - osl_ephys/
utils/ , Python, 132 linesspmio/ _data.py - osl_ephys/
utils/ , Python, 153 linesspmio/ _events.py - osl_ephys/
utils/ , Python, 19 linesspmio/ _spmmeeg_utils.py - osl_ephys/
utils/ , Python, 245 linesspmio/ spmmeeg.py - osl_ephys/
utils/ , Python, 155 linesstudy.py - osl_ephys/
utils/ , Python, 64 linesversion_utils.py - setup.py, Python, 90 lines
- LICENSE, License, 23 lines
- README.md, Text, 79 lines
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
Data
No dataset and no data link were found in the paper.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
No version of this record has been stored yet.
Cite
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
No other paper with a page shares enough with this one yet: tools, categories, datasets, references or authors.
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: its repositories, at their verified commits, and their scripts (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/repo/zenodo:10401792)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/repo/zenodo:10401792.svg
:target: https://openscicode.org/badge/repo/zenodo:10401792
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/repo/zenodo:10401792"><img src="https://openscicode.org/badge/repo/zenodo:10401792.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
