From 1426a1224037642b3a3d21edd029c301ab48d758 Mon Sep 17 00:00:00 2001 From: Haibao Tang Date: Tue, 27 Aug 2019 17:50:05 -0700 Subject: [PATCH] [orientation] REJECT flipWhole if score does not improve (#11) --- base.go | 2 +- cmd/allhic.go | 2 +- orientation.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base.go b/base.go index 351e102..0494ab3 100644 --- a/base.go +++ b/base.go @@ -25,7 +25,7 @@ import ( const ( // Version is the current version of ALLHIC - Version = "0.8.12" + Version = "0.9.8" // LB is lower bound for GoldenArray LB = 18 // UB is upper bound for GoldenArray diff --git a/cmd/allhic.go b/cmd/allhic.go index 9912242..99a0411 100644 --- a/cmd/allhic.go +++ b/cmd/allhic.go @@ -54,7 +54,7 @@ func main() { app := cli.NewApp() app.Compiled = time.Now() - app.Copyright = "(c) Haibao Tang, Xingtan Zhang 2017-2018" + app.Copyright = "(c) Haibao Tang, Xingtan Zhang 2017-2019" app.Name = "ALLHIC" app.Usage = "Genome scaffolding based on Hi-C data" app.Version = allhic.Version diff --git a/orientation.go b/orientation.go index e591aa8..b8b483b 100644 --- a/orientation.go +++ b/orientation.go @@ -75,7 +75,7 @@ func (r *CLM) flipWhole() (tag string) { } newScore := r.EvaluateQ() tag = ACCEPT - if newScore < score { + if newScore <= score { copy(r.Signs, oldSigns) // Recover tag = REJECT }