3dbc2036473e40fda245db7df8fa725ef6e8d5de hiram Mon Jan 9 13:54:49 2023 -0800 and adding in a families.fa.gz download file no redmine diff --git src/hg/utils/automation/doRepeatModeler.pl src/hg/utils/automation/doRepeatModeler.pl index dd17461..a791e8d 100755 --- src/hg/utils/automation/doRepeatModeler.pl +++ src/hg/utils/automation/doRepeatModeler.pl @@ -241,30 +241,32 @@ } my $whatItDoes = "Cleans up or compresses intermediate files."; my $bossScript = newBash HgRemoteScript("$runDir/modelerCleanup.bash", $workhorse, $runDir, $whatItDoes); $bossScript->add(<<_EOF_ export asmId="${db}" if [ ! -s "\${asmId}-families.fa" ]; then printf "cleanup expected result file: \${asmId}-families.fa does not exist\n" 1>&2 exit 255 fi rm -fr \${asmId}.fa \${asmId}.n?? ./err/ if [ -s "\${asmId}-families.stk" ]; then gzip \${asmId}-families.stk fi +gzip -c "\${asmId}-families.fa" > "${buildDir}/\${asmId}.repeatModeler.families.fa.gz" +touch -r "\${asmId}-families.fa" "${buildDir}/\${asmId}.repeatModeler.families.fa.gz" c=`ls -d RM_* | wc -l` if [ "\${c}" -eq 1 ]; then RM_dir=`ls -d RM_*` if [ -d "\${RM_dir}" ]; then rm -fr "\${RM_dir}" else printf "directory RM_* not found ?\\n" 1>&2 ls -d RM* 1>&2 exit 255 fi else printf "single directory RM_* not found ?\\n" 1>&2 ls -d RM* 1>&2 exit 255 fi