本文整理汇总了Python中dax.XnatUtils.get_input_list方法的典型用法代码示例。如果您正苦于以下问题:Python XnatUtils.get_input_list方法的具体用法?Python XnatUtils.get_input_list怎么用?Python XnatUtils.get_input_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dax.XnatUtils
的用法示例。
在下文中一共展示了XnatUtils.get_input_list方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from dax import XnatUtils [as 别名]
# 或者: from dax.XnatUtils import get_input_list [as 别名]
def __init__(self, spider_path, jobdir, scans_id,
xnat_project, xnat_subject, xnat_session,
reg_aladin_exe='reg_aladin', reg_resample_exe='reg_resample',
args_reg_aladin=DEFAULT_ARGS_REG_ALADIN,
args_reg_resample=DEFAULT_ARGS_REG_RESAMPLE,
xnat_host=None, xnat_user=None, xnat_pass=None, suffix=""):
"""Entry point for Spider_Registration_Prostate Class."""
super(Spider_Registration_Verdict, self).__init__(spider_path, jobdir,
xnat_project,
xnat_subject,
xnat_session,
xnat_host,
xnat_user,
xnat_pass, suffix)
# Inputs
self.acquisitions = dict()
self.dicom = ''
self.scans_id = XnatUtils.get_input_list(scans_id, list())
# Outputs
self.pdf_final = os.path.join(self.jobdir, 'Registration_VERDICT.pdf')
# Check Executable:
self.reg_aladin_exe = self.check_executable(reg_aladin_exe,
'reg_aladin')
self.reg_resample_exe = self.check_executable(reg_resample_exe,
'reg_resample')
self.args_reg_aladin = args_reg_aladin
self.args_reg_resample = args_reg_resample
示例2: __init__
# 需要导入模块: from dax import XnatUtils [as 别名]
# 或者: from dax.XnatUtils import get_input_list [as 别名]
def __init__(self, spider_path=DEFAULT_SPIDER_PATH, version=None,
sources=DEFAULT_SOURCES, target=DEFAULT_TARGET,
reg_aladin_exe=DEFAULT_REG_ALADIN,
args_reg_aladin=DEFAULT_ARGS_REG_ALADIN,
reg_f3d_exe=DEFAULT_REG_F3D,
args_reg_f3d=DEFAULT_ARGS_REG_F3D,
walltime=DEFAULT_WALLTIME, mem_mb=DEFAULT_MEM,
ppn=DEFAULT_PPN, suffix_proc=''):
"""Entry point for Processor_Registration_Prostate Class."""
super(Processor_Registration_Prostate,
self).__init__(walltime, mem_mb, spider_path, version, ppn=ppn,
suffix_proc=suffix_proc)
self.target = XnatUtils.get_input_list(target, DEFAULT_TARGET)
self.sources = XnatUtils.get_input_list(sources, DEFAULT_SOURCES)
self.reg_aladin_exe = reg_aladin_exe
self.args_reg_aladin = args_reg_aladin
self.reg_f3d_exe = reg_f3d_exe
self.args_reg_f3d = args_reg_f3d
示例3: __init__
# 需要导入模块: from dax import XnatUtils [as 别名]
# 或者: from dax.XnatUtils import get_input_list [as 别名]
def __init__(self, spider_path=DEFAULT_SPIDER_PATH, version=None,
walltime=DEFAULT_WALLTIME, mem_mb=DEFAULT_MEM,
ppn=DEFAULT_PPN, dtitypes=DEFAULT_DTI_TYPES,
t1types=DEFAULT_T1_TYPES, giftypes=DEFAULT_GIF_TYPE,
exe=DEFAULT_DTI_PATH, exe_args=DEFAULT_DTI_ARGS,
suffix_proc='', working_dir=DEFAULT_WORKING_DIR):
"""Entry point for Processor_Diffusion_Model_Fitting Class."""
super(Processor_Diffusion_Model_Fitting,
self).__init__(walltime, mem_mb, spider_path, version, ppn=ppn,
suffix_proc=suffix_proc)
# DTI types:
self.dtitypes = XnatUtils.get_input_list(dtitypes, DEFAULT_DTI_TYPES)
# T1 types:
self.t1types = XnatUtils.get_input_list(t1types, DEFAULT_T1_TYPES)
# GIF proctype:
self.giftypes = XnatUtils.get_input_list(giftypes, DEFAULT_GIF_TYPE)
# Exe gif + args:
self.exe = exe
self.exe_args = exe_args
# working dir:
self.working_dir = working_dir
示例4: __init__
# 需要导入模块: from dax import XnatUtils [as 别名]
# 或者: from dax.XnatUtils import get_input_list [as 别名]
def __init__(self, spider_path=DEFAULT_SPIDER_PATH, version=None,
t1=DEFAULT_T1, flair=DEFAULT_FLAIR, t2=DEFAULT_T2,
gif_proctype=DEFAULT_GIF_PROCTYPE,
bamos_script=DEFAULT_BAMOS_SCRIPT,
reg_folder=DEFAULT_REG_FOLDER, seg_folder=DEFAULT_SEG_FOLDER,
seg_biasm=DEFAULT_SEGBIASM, seg_analysis=DEFAULT_SEGANA,
gmatrix=DEFAULT_GMATRIX, rule=DEFAULT_RULE,
walltime=DEFAULT_WALLTIME, mem_mb=DEFAULT_MEM,
suffix_proc=''):
"""Entry point for Processor_Verdict Class."""
super(Processor_BaMoS,
self).__init__(walltime, mem_mb, spider_path, version,
suffix_proc=suffix_proc)
self.gif = gif_proctype
self.t1 = XnatUtils.get_input_list(t1, DEFAULT_T1)
self.flair = XnatUtils.get_input_list(flair, DEFAULT_FLAIR)
self.t2 = XnatUtils.get_input_list(t2, DEFAULT_T2)
self.bamos = bamos_script
self.regfolder = reg_folder
self.segfolder = seg_folder
self.seg_biasm = seg_biasm
self.seg_analysis = seg_analysis
self.gmatrix = gmatrix
self.rule = rule
示例5: __init__
# 需要导入模块: from dax import XnatUtils [as 别名]
# 或者: from dax.XnatUtils import get_input_list [as 别名]
def __init__(self, spider_path=DEFAULT_SPIDER_PATH, version=None,
scan_modalities=DEFAULT_VERDICT_MODALITIES,
proctype=DEFAULT_PROCTYPE, matlab_code=DEFAULT_MATLAB_CODE,
camino=DEFAULT_CAMINO, scheme_file=DEFAULT_SCHEME_FILE,
walltime=DEFAULT_WALLTIME,
mem_mb=DEFAULT_MEM, suffix_proc=''):
"""Entry point for Processor_Verdict Class."""
super(Processor_Compute_ADC_Verdict,
self).__init__(walltime, mem_mb, spider_path, version,
suffix_proc=suffix_proc)
self.modalities = XnatUtils.get_input_list(scan_modalities,
DEFAULT_VERDICT_MODALITIES)
self.proctype = proctype
self.mc = matlab_code
self.camino = camino
self.scheme_file = scheme_file
示例6: __init__
# 需要导入模块: from dax import XnatUtils [as 别名]
# 或者: from dax.XnatUtils import get_input_list [as 别名]
def __init__(self, spider_path=DEFAULT_SPIDER_PATH, version=None,
scan_modalities=DEFAULT_VERDICT_MODALITIES,
reg_aladin_exe=DEFAULT_REG_ALADIN,
args_reg_aladin=DEFAULT_ARGS_REG_ALADIN,
reg_resample_exe=DEFAULT_REG_RESAMPLE,
args_reg_resample=DEFAULT_ARGS_REG_RESAMPLE,
walltime=DEFAULT_WALLTIME, mem_mb=DEFAULT_MEM,
ppn=DEFAULT_PPN, suffix_proc=''):
"""Entry point for Processor_Registration_Verdict Class."""
super(Processor_Registration_Verdict,
self).__init__(walltime, mem_mb, spider_path, version, ppn=ppn,
suffix_proc=suffix_proc)
self.modalities = XnatUtils.get_input_list(scan_modalities,
DEFAULT_VERDICT_MODALITIES)
self.reg_aladin_exe = reg_aladin_exe
self.args_reg_aladin = args_reg_aladin
self.reg_resample_exe = reg_resample_exe
self.args_reg_resample = args_reg_resample
示例7: pre_run
# 需要导入模块: from dax import XnatUtils [as 别名]
# 或者: from dax.XnatUtils import get_input_list [as 别名]
def pre_run(self):
"""Method to download data from XNAT.
:param argument_parse: argument parser object return by parse_args()
"""
# Make directory
input_folder = XnatUtils.makedir(os.path.join(self.jobdir, 'inputs'),
subdir=False)
# Target
target_folder = XnatUtils.makedir(os.path.join(input_folder,
ARGS.target_id),
subdir=False)
target_dcm = XnatUtils.makedir(os.path.join(target_folder, 'DICOM'),
subdir=False)
self.time_writer('Connection to XNAT')
xnat = XnatUtils.get_interface(host=self.host,
user=self.user,
pwd=self.pwd)
self.time_writer('Downloading target %s ...' % ARGS.target_id)
target_scan = XnatUtils.select_obj(xnat,
ARGS.proj_label,
ARGS.subj_label,
ARGS.sess_label,
ARGS.target_id)
tnii_obj = target_scan.resource('NIFTI')
self.target['nii'] = XnatUtils.download_file_from_obj(target_folder,
tnii_obj)
tdcm_obj = target_scan.resource('DICOM')
self.target['dcm'] = XnatUtils.download_files_from_obj(target_dcm,
tdcm_obj)
self.target['type'] = target_scan.attrs.get('type')
self.target['ID'] = ARGS.target_id
# Sources
sources_list = XnatUtils.get_input_list(ARGS.sources_id, list())
self.time_writer('Downloading sources %s ...' % sources_list)
for scan_id in sources_list:
# Make directories
spath = os.path.join(input_folder, scan_id)
source_folder = XnatUtils.makedir(spath, subdir=False)
dpath = os.path.join(source_folder, 'DICOM')
source_dcm = XnatUtils.makedir(dpath, subdir=False)
source_scan = XnatUtils.select_obj(xnat,
ARGS.proj_label,
ARGS.subj_label,
ARGS.sess_label,
scan_id)
snii_obj = source_scan.resource('NIFTI')
nii_list = XnatUtils.download_file_from_obj(source_folder,
snii_obj)
sdcm_obj = source_scan.resource('DICOM')
dcm_list = XnatUtils.download_file_from_obj(source_dcm, sdcm_obj)
self.sources[scan_id] = dict()
self.sources[scan_id]['nii'] = nii_list
self.sources[scan_id]['dcm'] = dcm_list
self.sources[scan_id]['type'] = source_scan.attrs.get('type')
self.sources[scan_id]['ID'] = scan_id
xnat.disconnect()
self.time_writer('Disconnection of XNAT')