66cc826badeb152795b09b2081232bbfa4fd98ac angie Wed May 27 23:34:03 2020 -0700 Argh, forgot -r for directory. refs #25188 diff --git src/hg/utils/otto/nextstrainNcov/doUpdate.sh src/hg/utils/otto/nextstrainNcov/doUpdate.sh index a03adc3..1050c03 100755 --- src/hg/utils/otto/nextstrainNcov/doUpdate.sh +++ src/hg/utils/otto/nextstrainNcov/doUpdate.sh @@ -78,31 +78,31 @@ | perl -wne '@w=split("\t"); $w[7] =~ m/AC=(\d+)[\d,]*;AN=(\d+)/ || die "Cant find AC and AN in |$w[7]|"; print join("\t", $w[0], $w[1]-1, $w[1], (sprintf "%.06f", $1 / $2)) . "\n";' \ > $base.bedGraph bedGraphToBigWig $base.bedGraph $chromSizes $base.bigWig done # Install public track files mkdir $ottoDir/install cp -pf $runDir/nextstrainGene.bb $runDir/nextstrainClade.bb \ $runDir/nextstrain*.vcf.gz{,.tbi} \ $runDir/nextstrain*.nh \ $runDir/nextstrainSamples*.bigWig \ $ottoDir/install/ -rm -f $ottoDir/current.bak +rm -rf $ottoDir/current.bak mv -f $ottoDir/current $ottoDir/current.bak mv $ottoDir/install $ottoDir/current rm -r $gbdbDir mkdir $gbdbDir ln -sf $ottoDir/current/nextstrainGene.bb $ottoDir/current/nextstrainClade.bb \ $ottoDir/current/nextstrain*.vcf.gz{,.tbi} \ $ottoDir/current/nextstrain*.nh \ $ottoDir/current/nextstrainSamples*.bigWig \ $gbdbDir/ # Install but don't archive (for now) the experimental tracks for David. cp -pf $runDir/nextstrain{Discarded,Blacklisted,Informative}.bb \ $runDir/nextstrainParsimony.bw \ $ottoDir/current/ ln -sf $ottoDir/current/nextstrain{Discarded,Blacklisted,Informative}.bb \