Skip to content

Commit

Permalink
Updated responders determination
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Nov 8, 2017
1 parent bb43d37 commit d025057
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samri/plotting/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def roi_teaching(roi_path="~/ni_data/templates/roi/f_dr_chr.nii.gz"):
def check_responders():
from samri.plotting import summary

summary.responders("subjectwise_composite")
summary.responders("composite_subjects")

def qc_regressor(sessions, subjects, scans, workflow_name, mask,
data_dir="~/ni_data/ofM.dr",
Expand Down
3 changes: 2 additions & 1 deletion samri/plotting/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def analytic_pattern_per_session(substitutions, analytic_pattern,
return fit, anova

def responders(l2_dir,
roi="ctx_chr",
roi="DSURQEc_ctx",
data_root="~/ni_data/ofM.dr",
roi_root="~/ni_data/templates/roi"
):
Expand Down Expand Up @@ -217,6 +217,7 @@ def responders(l2_dir,
voxel_data["t"]=i
df_ = pd.DataFrame(voxel_data, index=[None])
voxeldf = pd.concat([voxeldf,df_])
voxeldf.to_csv('{}/ctx_responders.csv'.format(data_path))

def p_roi_masking(substitution, ts_file_template, beta_file_template, p_file_template, design_file_template, event_file_template, p_level, brain_mask):
"""Apply a substitution pattern to timecourse, beta, and design file templates - and mask the data of the former two according to a roi. Subsequently scale the design by the mean beta.
Expand Down

0 comments on commit d025057

Please sign in to comment.