unfoldtoolbox / UnfoldBIDS.jl

MIT License
4 stars 2 forks source link

comments on initial version #35

Open behinger opened 1 year ago

behinger commented 1 year ago
behinger commented 1 year ago

Disclaimer: not sure about the <:Union, I never know when to add that operator or not :D

behinger commented 1 year ago
behinger commented 1 year ago
behinger commented 1 year ago
behinger commented 1 year ago

ok it ran through my test-dataset (8-bit) - nice!

behinger commented 1 year ago

end ... end

function preprocess_default(raw;channels=[]) return pyconvert(Array,raw.get_data(picks=channels,units="uV")) end



- [ ] `bfDict` is a bit of missnomer, as you can do mass-univariate analyses here as well, but they dont have basisfunctions. how about `design` as we use it in Unfold.jl? (unfortunately UnfoldSim.jl uses `design` as well.. :S
ReneSkukies commented 1 year ago

it is quite counterintuitive to me, why you need to specify a folder where all subjects csv/tsv files are. Couldnt you include the events-link in the layout=

I did this cause currently some of our datasets have a folder where the events files are ordered in this way. Can split it in a fucntion "loading_from_csv" and "events_loading" or something

ReneSkukies commented 1 year ago

summarise_events doesnt exist :(

Can you remind me again what the functionality is? Basically just a DF with unique events and count and such? (what would be useful here?)

behinger commented 1 year ago

it is quite counterintuitive to me, why you need to specify a folder where all subjects csv/tsv files are. Couldnt you include the events-link in the layout=

I did this cause currently some of our datasets have a folder where the events files are ordered in this way. Can split it in a fucntion "loading_from_csv" and "events_loading" or something

I think it would help already, if layout automatically extracts the events as a new column, and you can either provide the events_loading a new file, or the file from the layout, right?

behinger commented 1 year ago

summarise_events doesnt exist :(

Can you remind me again what the functionality is? Basically just a DF with unique events and count and such? (what would be useful here?)

I think I simply got cofused in the Readme.md as it is still included there :-D

I think I envisioned some kind of text-summary of events (e.g. frequency, which events how many times) - potentially also a matrix, which event is followed by which event (and how much overlap? dunno how to do that). Also maybe a range of each variable (or a in-line histogram) ~~ cue some procrastiation music ~~ oookay, and here I have a prototype for this


    using UnicodePlots
    using Term
    using Printf
    using Statistics

h(name,d) = 
TextBox(@sprintf("{bold}%s{/bold} \nμ=%.2f,σ=%.2f\nmin=%.2f\nmax=%.2f",name,mean(d),std(d),minimum(d),maximum(d)),fit=true,) * 
(histogram(d,vertical=true,height=1,grid=false,stats=false,labels=false,border=:none,padding=1,margin=0)|>UnicodePlots.panel)
h("testFactor",d)|>print

grafik

should be easily stackable for multi-event purposes :)

Edit: Number of events would be nice as a number too

EditEdit: This requires UnicodePlots.jl as a requirement