From a232424a5d57abb8589e59fa558a2c7fb2178de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Skukies?= <57703446+ReneSkukies@users.noreply.github.com> Date: Wed, 22 May 2024 16:37:12 +0200 Subject: [PATCH] Update README.md Update readme with quickstart to current version --- README.md | 38 +++++++++++++++++--------------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 3f74b75..eaa9238 100644 --- a/README.md +++ b/README.md @@ -42,39 +42,35 @@ AppStore -> JuliaUp, or `winget install julia -s msstore` in CMD ```julia using Pkg -Pkg.add("https://github.com/unfoldtoolbox/UnfoldBIDS.jl") +Pkg.add("UnfoldBIDS") ``` -> **Note:** The package is currently not registered. Once it is registered the above add command will change to ```Pkg.add("UnfoldBIDS")``` - -## Current Functionality +## Quickstart ```julia using UnfoldBIDS # To look up the paths of all subjects and store in a Dataframe: -layout_df = bidsLayout(bidsPath::AbstractString; # Path to BIDS root folder - derivative::Bool=true, # Do you want to us the derivative/ processed data? Default = true - specificFolder::Union{Nothing,AbstractString}=nothing, # If you want a specific folder in derivatives or root specify here - excludeFolder::Union{Nothing,AbstractString}=nothing, # You can exclude specific folders when not looking for a specific sub-folder - task::Union{Nothing,AbstractString}=nothing, # Specify task; will load all tasks if not specified - run::Union{Nothing,AbstractString}=nothing) # Specify run; will load all runs if not specified - +layout_df = bids_layout(bidsPath::AbstractString; # Path to BIDS root folder + derivatives::Bool=true, # Do you want to us the derivative/ processed data? Default = true + specificFolder::Union{Nothing,AbstractString}=nothing, # If you want a specific folder in derivatives or root specify here + excludeFolder::Union{Nothing,AbstractString}=nothing, # You can exclude specific folders when not looking for a specific sub-folder + ses::Union{Nothing,AbstractString}=nothing, # Specify session; will load all sessions if not specified + task::Union{Nothing,AbstractString}=nothing, # Specify task; will load all tasks if not specified + run::Union{Nothing,AbstractString}=nothing) # Specify run; will load all runs if not specified + # To load all data into memory/ one dataframe: -eeg_df = load_bids_eeg_data(layout_df::DataFrame) +eeg_df = load_bids_eeg_data(layout_df; verbose::Bool=true, kwargs...) -3×2 DataFrame - Row │ subject data - │ SubStrin… Py -─────┼────────────────────────────────────────────── - 1 │ 005