Skip to content
Snippets Groups Projects
Commit 155e413f authored by tjc's avatar tjc
Browse files

fix so plot flips when flipping the strand

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@10102 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 8f3b4737
Branches
Tags
No related merge requests found
......@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/plot/AGWindowAlgorithm.java,v 1.2 2008-06-27 10:01:30 tjc Exp $
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/plot/AGWindowAlgorithm.java,v 1.3 2009-03-13 20:39:37 tjc Exp $
*/
package uk.ac.sanger.artemis.plot;
......@@ -37,7 +37,7 @@ import uk.ac.sanger.artemis.sequence.*;
* constructor.
*
* @author Kim Rutherford
* @version $Id: AGWindowAlgorithm.java,v 1.2 2008-06-27 10:01:30 tjc Exp $
* @version $Id: AGWindowAlgorithm.java,v 1.3 2009-03-13 20:39:37 tjc Exp $
**/
public class AGWindowAlgorithm extends BaseAlgorithm {
......@@ -62,7 +62,7 @@ public class AGWindowAlgorithm extends BaseAlgorithm {
final char[] sequence;
try {
sequence = getStrand ().getBases().getSubSequenceC (new Range (start, end), Strand.FORWARD);
sequence = getStrand ().getBases().getSubSequenceC (new Range (start, end), getStrand().getDirection());
} catch (OutOfRangeException e) {
throw new Error ("internal error - unexpected exception: " + e);
}
......
......@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/plot/GCSDWindowAlgorithm.java,v 1.2 2008-06-27 10:01:30 tjc Exp $
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/plot/GCSDWindowAlgorithm.java,v 1.3 2009-03-13 20:39:37 tjc Exp $
*/
package uk.ac.sanger.artemis.plot;
......@@ -39,7 +39,7 @@ import uk.ac.sanger.artemis.sequence.*;
* to use is set in the constructor.
*
* @author Kim Rutherford
* @version $Id: GCSDWindowAlgorithm.java,v 1.2 2008-06-27 10:01:30 tjc Exp $
* @version $Id: GCSDWindowAlgorithm.java,v 1.3 2009-03-13 20:39:37 tjc Exp $
**/
public class GCSDWindowAlgorithm extends BaseAlgorithm {
......@@ -85,7 +85,7 @@ public class GCSDWindowAlgorithm extends BaseAlgorithm {
final char[] sequence;
try {
sequence = getStrand ().getBases().getSubSequenceC (new Range (start, end), Strand.FORWARD);
sequence = getStrand ().getBases().getSubSequenceC (new Range (start, end), getStrand().getDirection());
} catch (OutOfRangeException e) {
throw new Error ("internal error - unexpected exception: " + e);
}
......
......@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/plot/GCWindowAlgorithm.java,v 1.2 2008-06-27 10:01:30 tjc Exp $
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/plot/GCWindowAlgorithm.java,v 1.3 2009-03-13 20:39:37 tjc Exp $
**/
package uk.ac.sanger.artemis.plot;
......@@ -37,7 +37,7 @@ import uk.ac.sanger.artemis.sequence.*;
* constructor.
*
* @author Kim Rutherford
* @version $Id: GCWindowAlgorithm.java,v 1.2 2008-06-27 10:01:30 tjc Exp $
* @version $Id: GCWindowAlgorithm.java,v 1.3 2009-03-13 20:39:37 tjc Exp $
**/
public class GCWindowAlgorithm extends BaseAlgorithm {
......@@ -63,7 +63,7 @@ public class GCWindowAlgorithm extends BaseAlgorithm {
try {
sequence = getStrand ().getBases().getSubSequenceC(
new Range (start, end), Strand.FORWARD);
new Range (start, end), getStrand ().getDirection());
} catch (OutOfRangeException e) {
throw new Error ("internal error - unexpected exception: " + e);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment