89613f6e172824ae07651362a788cfa5ce22e762
hiram
  Tue Mar 5 10:05:56 2024 -0800
add link for rmod.log file to get it delivered to hgdownload no redmine

diff --git src/hg/utils/automation/doRepeatModeler.pl src/hg/utils/automation/doRepeatModeler.pl
index 29de8da..42c0623 100755
--- src/hg/utils/automation/doRepeatModeler.pl
+++ src/hg/utils/automation/doRepeatModeler.pl
@@ -242,31 +242,33 @@
   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
 rm -f ${buildDir}/\${asmId}.repeatModeler.families.stk.gz
+rm -f ${buildDir}/\${asmId}.rmod.log.txt
 ln -s trackData/repeatModeler/\${asmId}-families.stk ${buildDir}/\${asmId}.repeatModeler.families.stk.gz
+ln -s trackData/repeatModeler/\${asmId}-rmod.log ${buildDir}/\${asmId}.rmod.log.txt
 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