医院版本
This commit is contained in:
parent
44e7d8cbbf
commit
0f250c71fc
@ -243,15 +243,17 @@ public class PatientScriptServiceImpl implements PatientScriptService {
|
||||
} else {
|
||||
System.out.println("文件夹已存在,无需再次创建!");
|
||||
}
|
||||
patientScript.setPatientAge("0");
|
||||
//处理数据处理格式
|
||||
ShellUtil.execCmd("dos2unix "+dealDataSh);
|
||||
shUtil(dealDataSh,patientScript);
|
||||
if (StringUtils.isEmpty(patientScript.getPatientAge())){
|
||||
patientScript.setPatientAge("0");
|
||||
}
|
||||
shMap.put("tr",patientScript.getRepetitionTime());
|
||||
shMap.put("age",patientScript.getPatientAge());
|
||||
//创建总脚本
|
||||
createFile(shMap, shPath,"cpacSh.ftl");
|
||||
|
||||
scriptMapper.updateStatus(patientScript);
|
||||
//处理脚本文件格式
|
||||
ShellUtil.execCmd("dos2unix "+shPath);
|
||||
ShellUtil.execCmd("dos2unix "+imgPath);
|
||||
|
@ -38,7 +38,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
update patient_script
|
||||
set `status` = #{status}
|
||||
,`res_image` = #{resImage}
|
||||
,`res_info` = #{resInfo}
|
||||
,`res_info` = #{resInfo},
|
||||
patient_name = #{patientName},
|
||||
patient_age = #{patientAge},
|
||||
patient_sex = #{patientSex},
|
||||
repetition_time = #{repetitionTime}
|
||||
where id = #{id}
|
||||
</update>
|
||||
<delete id="removeByIds" parameterType="java.util.List">
|
||||
|
@ -8,4 +8,4 @@ rm -rf ./${playground}/BIDS_output/config.json
|
||||
cp ./README ${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 script.py --dicom_folder ${playground}
|
||||
python scriptAge.py --dicom_folder ${playground}
|
||||
|
Loading…
Reference in New Issue
Block a user