6ab36842251a96177c547bf37f5cc6157342eaa2 hiram Tue Feb 16 14:51:34 2021 -0800 eliminate a duplicate remove of tmp.chrom.sizes no redmine diff --git src/hg/utils/automation/doSimpleRepeat.pl src/hg/utils/automation/doSimpleRepeat.pl index 2325f74..c48e2a9 100755 --- src/hg/utils/automation/doSimpleRepeat.pl +++ src/hg/utils/automation/doSimpleRepeat.pl @@ -342,31 +342,31 @@ if (\$status) then echo Uh-oh -- simpleRepeat.bed fails endsInLf. Look at $partDir/ bed files. exit 1 endif _EOF_ ); } $bossScript->add(<<_EOF_ if ( -s simpleRepeat.bed ) then awk '{if (\$5 <= 12) print;}' simpleRepeat.bed > trfMask.bed awk 'BEGIN{OFS="\\t"}{name=substr(\$16,0,16);\$4=name;printf "%s\\n", \$0}' \\ simpleRepeat.bed | sort -k1,1 -k2,2n > simpleRepeat.bed16.bed twoBitInfo $unmaskedSeq stdout | sort -k2nr > tmp.chrom.sizes bedToBigBed -tab -type=bed4+12 -as=\$HOME/kent/src/hg/lib/simpleRepeat.as \\ simpleRepeat.bed16.bed tmp.chrom.sizes simpleRepeat.bb - rm -f tmp.chrom.sizes simpleRepeat.bed16.bed tmp.chrom.sizes + rm -f tmp.chrom.sizes simpleRepeat.bed16.bed else echo empty simpleRepeat.bed - no repeats found endif _EOF_ ); if ($chromBased) { $bossScript->add(<<_EOF_ if ( -s trfMask.bed ) then splitFileByColumn trfMask.bed trfMaskChrom/ else echo empty trfMask.bed - no repeats found endif _EOF_ ); }