本文整理汇总了Python中pipeline.Pipeline.remove_discdacqs方法的典型用法代码示例。如果您正苦于以下问题:Python Pipeline.remove_discdacqs方法的具体用法?Python Pipeline.remove_discdacqs怎么用?Python Pipeline.remove_discdacqs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pipeline.Pipeline
的用法示例。
在下文中一共展示了Pipeline.remove_discdacqs方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: SPMJob
# 需要导入模块: from pipeline import Pipeline [as 别名]
# 或者: from pipeline.Pipeline import remove_discdacqs [as 别名]
],
StudyVariables.statsTemplateRuns,
fieldmap=StudyVariables.statsTemplateFM,
)
stats_job = SPMJob(subjStatsJob, stats_template_identity, pipe.config["spm_version"])
print "Replacing Stats SPM Identity in subject job "
print stats_job
stats_job.replaceIdentity(subj_stats_identity)
current = os.getcwd()
os.chdir(pipe.working_preprocdir)
if options.recon:
pipe.recon(StudyVariables.studyName, subjFunctionalFormat)
if os.path.exists(subid + "_assetRun1.nii"):
pipe.remove_discdacqs(subid + "_assetRun1.nii", 2)
if os.path.exists(subid + "_assetRun2.nii"):
pipe.remove_discdacqs(subid + "_assetRun2.nii", 2)
if os.path.exists(subid + "_assetRest195.nii"):
pipe.remove_discdacqs(subid + "_assetRest195.nii", 32)
if os.path.exists(subid + "_assetRest165.nii"):
pipe.remove_discdacqs(subid + "_assetRest165.nii", 2)
if options.stc:
pipe.stc(subjFunctionalFormat)
if options.realign:
pipe.realign(subjRealignJob)
if options.motioncheck:
pipe.motionCheck(MOTION_THRESHOLD)
if options.calcderivs:
pipe.calcDerivs()
if options.fmap and subjHasFmap:
示例2: SPMJobIdentity
# 需要导入模块: from pipeline import Pipeline [as 别名]
# 或者: from pipeline.Pipeline import remove_discdacqs [as 别名]
stats_template_identity = SPMJobIdentity (
StudyVariables.statsTemplateSubid,
[StudyVariables.statsTemplatePreprocDir, StudyVariables.statsTemplateStatsDir, StudyVariables.statsTemplateOnsetsDir],
StudyVariables.statsTemplateRuns,
fieldmap=StudyVariables.statsTemplateFM
)
stats_job = SPMJob(subjStatsJob, stats_template_identity, pipe.config['spm_version'])
print "Replacing Stats SPM Identity in subject job "; print stats_job
stats_job.replaceIdentity(subj_stats_identity)
current = os.getcwd()
os.chdir(pipe.working_preprocdir)
if options.recon:
pipe.recon(StudyVariables.studyName, subjFunctionalFormat)
if os.path.exists(subid + '_assetRun1.nii'): pipe.remove_discdacqs(subid + '_assetRun1.nii', 2)
if os.path.exists(subid + '_assetRun2.nii'): pipe.remove_discdacqs(subid + '_assetRun2.nii', 2)
if os.path.exists(subid + '_assetRest195.nii'): pipe.remove_discdacqs(subid + '_assetRest195.nii', 32)
if os.path.exists(subid + '_assetRest165.nii'): pipe.remove_discdacqs(subid + '_assetRest165.nii', 2)
if options.stc: pipe.stc(subjFunctionalFormat)
if options.realign: pipe.realign(subjRealignJob)
if options.motioncheck: pipe.motionCheck(MOTION_THRESHOLD)
if options.calcderivs: pipe.calcDerivs()
if options.fmap and subjHasFmap: pipe.fieldMap()
if options.normalize: pipe.normSmooth(subjNormJob)
if options.moveLocalFiles: pipe.moveLocalFilesToNetwork()
os.chdir(pipe.statsdir)
if options.stats: pipe.stats1L(subjStatsJob)
os.chdir(current)