bug 处理
This commit is contained in:
parent
e6eadcb074
commit
5044a7675e
@ -2,21 +2,21 @@ import os
|
|||||||
# This script can align cpac output and AAL template to the same space
|
# This script can align cpac output and AAL template to the same space
|
||||||
|
|
||||||
temp_file = '/data/Atlas/AAL_61x73x61_YCG.nii'
|
temp_file = '/data/Atlas/AAL_61x73x61_YCG.nii'
|
||||||
fmri_file_mb = '${fmriFileMb}'
|
fmri_file_mb = '/data/${fmriFileMb}'
|
||||||
fmri_reg_out_file = '${fmriRegOutFile}'
|
fmri_reg_out_file = '/data/${fmriRegOutFile}'
|
||||||
system_str_mb = f"flirt -ref {temp_file} -in {fmri_file_mb} -dof 6 -omat {fmri_reg_out_file}"
|
system_str_mb = f"flirt -ref {temp_file} -in {fmri_file_mb} -dof 6 -omat {fmri_reg_out_file}"
|
||||||
print(system_str_mb)
|
print(system_str_mb)
|
||||||
os.system(system_str_mb)
|
os.system(system_str_mb)
|
||||||
|
|
||||||
fmri_file_dpp = f"${fmriFileDpp}"
|
fmri_file_dpp = f"/data/${fmriFileDpp}"
|
||||||
fmri_r2t1_out_file = "${fmriR2t1OutFile}"
|
fmri_r2t1_out_file = "/data/${fmriR2t1OutFile}"
|
||||||
system_str_dpp = f"applywarp -i {fmri_file_dpp} -r {temp_file} -o {fmri_r2t1_out_file} --premat={fmri_reg_out_file} --interp=spline"
|
system_str_dpp = f"applywarp -i {fmri_file_dpp} -r {temp_file} -o {fmri_r2t1_out_file} --premat={fmri_reg_out_file} --interp=spline"
|
||||||
print(system_str_dpp)
|
print(system_str_dpp)
|
||||||
print("***Please wait for a moment***")
|
print("***Please wait for a moment***")
|
||||||
os.system(system_str_dpp)
|
os.system(system_str_dpp)
|
||||||
|
|
||||||
smri_file_mb = '${smriFileMb}'
|
smri_file_mb = '/data/${smriFileMb}'
|
||||||
smri_reg_out_file = '${smriOutFile}'
|
smri_reg_out_file = '/data/${smriOutFile}'
|
||||||
system_str_mb = f"flirt -ref {temp_file} -in {smri_file_mb} -dof 12 -out {smri_reg_out_file} "
|
system_str_mb = f"flirt -ref {temp_file} -in {smri_file_mb} -dof 12 -out {smri_reg_out_file} "
|
||||||
print(system_str_mb)
|
print(system_str_mb)
|
||||||
os.system(system_str_mb)
|
os.system(system_str_mb)
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "Hello, output-43207!"
|
echo "Hello, output-43207!"
|
||||||
cd /data
|
|
||||||
|
|
||||||
|
python /data/${alignPath}
|
||||||
python ${alignPath}
|
|
||||||
|
|
||||||
python /data/test2.py --sub_id ${subId} --TR ${tr} --root_dir ${fmriR2t1OutFile} --out_dir ${fmriOutPath} --anat_dir ${smriOutFile}
|
python /data/test2.py --sub_id ${subId} --TR ${tr} --root_dir ${fmriR2t1OutFile} --out_dir ${fmriOutPath} --anat_dir ${smriOutFile}
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /data
|
|
||||||
|
|
||||||
cd /data
|
|
||||||
echo "执行源文件处理脚本"
|
echo "执行源文件处理脚本"
|
||||||
python dealTest.py --base_dir ${playground} --output_dir ${playground}/BIDS_output --json_dir ${playground}/BIDS_output/sub-001/func/
|
python dealTest.py --base_dir cd /data/${playground} --output_dir /data/${playground}/BIDS_output --json_dir /data/${playground}/BIDS_output/sub-001/func/
|
||||||
rm -rf ./${playground}/BIDS_output/config.json
|
rm -rf /data/${playground}/BIDS_output/config.json
|
||||||
cp ./README ${playground}/BIDS_output/
|
cp /data/README /data/${playground}/BIDS_output/
|
||||||
echo "通过源文件进行二次处理"
|
echo "通过源文件进行二次处理"
|
||||||
docker run --rm -e DOCKER_VERSION_8395080871=27.3.1 -v /data/license.txt:/opt/freesurfer/license.txt:ro -v /data/${playground}/BIDS_output:/data:ro -v /data/${playground}/preprocessed:/out nipreps/fmriprep:23.2.3 /data /out participant --participant-label 001 --fs-no-reconall
|
docker run --rm -e DOCKER_VERSION_8395080871=27.3.1 -v /data/license.txt:/opt/freesurfer/license.txt:ro -v /data/${playground}/BIDS_output:/data:ro -v /data/${playground}/preprocessed:/out nipreps/fmriprep:23.2.3 /data /out participant --participant-label 001 --fs-no-reconall
|
||||||
python scriptAge.py --dicom_folder ${playground}
|
python scriptAge.py --dicom_folder /data/${playground}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user