Use tilelib to load for export and pca.
[lightning.git] / 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