Skip to content

upsampling and runwiseFIR #174

@jongmin-529

Description

@jongmin-529

Dear developers,

I have a question about the upsampling.

function: GLMestimatesingletrial(design_matrix, original_data, STIMULUS_DURATION, INPUT_TR, save_here, opt)

My original TR is 2 s, stimulus duration is 0.5 s, and the onset of stimulus is NOT TR-locked.
When I ran GLMsingle based on the original information (STIMULUS_DURATION = 0.5; INPUT_TR = 2), I got the figure 1.

Image

It seems bad.
So, I upsampled data ( upsample_data = tseriesinterp(original_data, 2, 1, 4) ; original TR = 2, new TR = 1) and adjusted design matrix, and I got the figure 2 (STIMULUS_DURATION = 0.5; INPUT_TR = 1).

Image

it still looks bad. so I changed INPUT_TR to 2 and used upsampled data and adjusted design matrix. The figure 3 looks okay.

Image

So, should I use the original TR as INPUT_TR after upsampling the original data?

Thank you very much in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions