From 63ad2b0b0fd721107be40bbe39f2a06aaaceefd8 Mon Sep 17 00:00:00 2001 From: Dave Doty Date: Thu, 5 Dec 2024 17:32:57 -0800 Subject: [PATCH] fixes #1004: import (previously exported) cadnano design with paranemic crossover This reverts commit f827627312ac51f9afa45fc1d23d5e290fbde43d. --- lib/src/middleware/export_cadnano_file.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/middleware/export_cadnano_file.dart b/lib/src/middleware/export_cadnano_file.dart index bc2625ed..fe44ef13 100644 --- a/lib/src/middleware/export_cadnano_file.dart +++ b/lib/src/middleware/export_cadnano_file.dart @@ -358,7 +358,7 @@ have different parity of row number: respectively ${helix_from_dct['row']} and $ } else if (!forward_from && !forward_to) { helix_from_dct[strand_type][start_from] .setRange(2, helix_from_dct[strand_type][start_from].length, [helix_to, end_to - 1]); - helix_to_dct[strand_type][start_to].setRange(0, 2, [helix_from, end_from - 1]); + helix_to_dct[strand_type][end_to - 1].setRange(0, 2, [helix_from, start_from]); if (helix_from_dct['row'] % 2 != helix_to_dct['row'] % 2) { throw new IllegalCadnanoDesignError('''\ Paranemic crossovers are only allowed between helices that have the same parity of