bug 处理

This commit is contained in:
朱春云 2025-09-04 17:50:40 +08:00
parent e6eadcb074
commit 5044a7675e
3 changed files with 12 additions and 16 deletions

View File

@ -2,21 +2,21 @@ import os
# This script can align cpac output and AAL template to the same space
temp_file = '/data/Atlas/AAL_61x73x61_YCG.nii'
fmri_file_mb = '${fmriFileMb}'
fmri_reg_out_file = '${fmriRegOutFile}'
fmri_file_mb = '/data/${fmriFileMb}'
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}"
print(system_str_mb)
os.system(system_str_mb)
fmri_file_dpp = f"${fmriFileDpp}"
fmri_r2t1_out_file = "${fmriR2t1OutFile}"
fmri_file_dpp = f"/data/${fmriFileDpp}"
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"
print(system_str_dpp)
print("***Please wait for a moment***")
os.system(system_str_dpp)
smri_file_mb = '${smriFileMb}'
smri_reg_out_file = '${smriOutFile}'
smri_file_mb = '/data/${smriFileMb}'
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} "
print(system_str_mb)
os.system(system_str_mb)
os.system(system_str_mb)

View File

@ -1,9 +1,7 @@
#!/bin/bash
echo "Hello, output-43207!"
cd /data
python ${alignPath}
python /data/${alignPath}
python /data/test2.py --sub_id ${subId} --TR ${tr} --root_dir ${fmriR2t1OutFile} --out_dir ${fmriOutPath} --anat_dir ${smriOutFile}

View File

@ -1,11 +1,9 @@
#!/bin/bash
cd /data
cd /data
echo "执行源文件处理脚本"
python dealTest.py --base_dir ${playground} --output_dir ${playground}/BIDS_output --json_dir ${playground}/BIDS_output/sub-001/func/
rm -rf ./${playground}/BIDS_output/config.json
cp ./README ${playground}/BIDS_output/
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 /data/${playground}/BIDS_output/config.json
cp /data/README /data/${playground}/BIDS_output/
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
python scriptAge.py --dicom_folder ${playground}
python scriptAge.py --dicom_folder /data/${playground}