3
Xdt                 @   s    d dl mZ dd Zdd ZdS )   )GLMFitc           ?   C   sn  t t ddt ddt ddt ddt ddt ddt ddt d	d
gdt ddt dd dQdt ddt ddt dddt ddgdt dd dgdt dd dt ddt ddRdt ddt ddd t  t d!d"d dd#t d$dt d%d d&gdt d'd dt d(dt d)dt d*dt d+d,gdt d-dSdt d/dt d0dt d1dt d2dt d3d4gdt d5dt d6dt d7dt d8dt d9dt d:dt d;dt d<d dt d=dt d>dt  t  t d?d@dAgdBt ddCt dDdt dEdt dFdt dGdt d dHgdIt dJdHgdt dKdHgdt dLd dTddP9} tj }xRt| j D ]B\}}x6t|j D ]&\}}t|j | ||ks:tq:W q$W d S )UNz	--illcond)argstrz--allowsubjrepz%sz--tar1z--checkoptsz--logyz	--C %s...z--cortex
label_file)r   xorz--debugz--X %sfsgddesign
one_sample)r   
extensionsr   z	--diag %dz--diag-clusterT)Znohash
usedefaultz--ffxdof %dfixed_fx_dof_filez--ffxdofdat %dfixed_fx_dofz--yffxvar %s)r   r	   z--perm-forcez--fsgd %s %sz	--fwhm %fz--glmdir %s)r   Zgenfilez--y %sF)r   copyfiler	   	mandatoryz
--mask-invz
--label %scortexz	--mask %sz--no-contrasts-okz--no-est-fwhmz--no-mask-smoothz
--no-pruneZprunethreshz--osgmcontrastz--pcaz--pvr %s...z--profile %dz--prunez--prune_thr %fZnoprunez--resynthtest %dz--save-condz--yhat-savez
--eres-scmz--eres-savez	--seed %dz--selfreg %d %d %dz--sim-done %sz--sim-sign %sz--sim %s %d %f %sz--surf %s %s %s
subject_idhemi)r   requires)r
   z--synthz--uniform %f %fz--var-fwhm %fz--voxdump %d %d %dweighted_ls)r	   r   z--w-invz--w-sqrtz--wls %sweight_file
weight_invweight_sqrt)9Zallow_ill_condZallow_repeated_subjectsargsZcalc_AR1Z
check_optsZcompute_log_yr   r   debugr   ZdiagZdiag_clusterenvironr   r   Zfixed_fx_varZ
force_permr   Zfwhmglm_dirr   in_fileZinvert_maskr   	mask_fileZno_contrast_okZno_est_fwhmZno_mask_smoothZno_pruner   ZpcaZper_voxel_regZprofileZpruneZprune_threshZresynth_testZ	save_condZsave_estimateZsave_res_corr_mtxZsave_residualseedZself_regZsim_done_fileZsim_signZ
simulationr   Zsubjects_dirZsurfZsurf_geoZsynthuniformZvar_fwhmZvox_dumpr   r   r   r   )r   r   r   )r   r   r   )r   r   r   r   )r   r   r   )dictr   Z
input_speclistitemsgetattrtraitsAssertionError)Z	input_mapinputskeymetadatametakeyvalue r+   e/var/www/html/virt/lib/python3.6/site-packages/nipype/interfaces/freesurfer/tests/test_auto_GLMFit.pytest_GLMFit_inputs   s   
r-   c              C   s   t t d dt d dt d dt d dt d dt d dt d dt  t d dt  t  t  t d dt  t d dt d dt d dd} tj }xLt| j D ]<\}}x2t|j D ]"\}}t|j | ||kstqW qW d S )N)r	   )Z	beta_fileZdof_fileZ
error_fileZerror_stddev_fileZerror_var_fileZestimate_fileZframe_eigenvectorsZ
ftest_fileZ	fwhm_fileZ
gamma_fileZgamma_var_filer   r   Zsig_fileZsingular_valuesZspatial_eigenvectorsZsvd_stats_file)r    r   Zoutput_specr!   r"   r#   r$   r%   )Z
output_mapoutputsr'   r(   r)   r*   r+   r+   r,   test_GLMFit_outputs   sD    r/   N)modelr   r-   r/   r+   r+   r+   r,   <module>   s    J