Continue loop a bit earlier.
authorTom Clegg <tom@tomclegg.ca>
Mon, 26 Oct 2020 19:37:15 +0000 (15:37 -0400)
committerTom Clegg <tom@tomclegg.ca>
Mon, 26 Oct 2020 19:37:15 +0000 (15:37 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>

export.go

index 739f8efa1295d6c06176f3f3ebfe9c7cf0ccad77..a37ec725bf80f4318eae2d676803391b93797414 100644 (file)
--- a/export.go
+++ b/export.go
@@ -332,10 +332,10 @@ func (cmd *exporter) exportSeq(outw, bedw io.Writer, taglen int, seqname string,
                                        continue
                                }
                                tagcoverage++
-                               genometile := tileVariant[tileLibRef{Tag: libref.Tag, Variant: variant}]
                                if variant == libref.Variant {
                                        continue
                                }
+                               genometile := tileVariant[tileLibRef{Tag: libref.Tag, Variant: variant}]
                                refSequence := reftile.Sequence
                                // If needed, extend the reference
                                // sequence up to the tag at the end