-
+
+
@@ -571,6 +615,7 @@ function GensploreView({ genbankString, searchInput, setSearchInput }) {
setWhereMouseCurrentlyIs={setWhereMouseCurrentlyIs}
sequenceHits={sequenceHits}
curSeqHitIndex={curSeqHitIndex}
+ enableRC={enableRC}
/>
);
@@ -582,6 +627,7 @@ function GensploreView({ genbankString, searchInput, setSearchInput }) {
)}
+ >
);
}
diff --git a/src/components/SingleRow.jsx b/src/components/SingleRow.jsx
index 8bfd3c4..958f838 100644
--- a/src/components/SingleRow.jsx
+++ b/src/components/SingleRow.jsx
@@ -171,7 +171,8 @@ const SingleRow = ({
whereMouseCurrentlyIs,
setWhereMouseCurrentlyIs,
sequenceHits,
- curSeqHitIndex
+ curSeqHitIndex,
+ enableRC
}) => {
const zoomFactor = 2 ** zoomLevel;
const sep = 10 * zoomFactor;
@@ -386,6 +387,7 @@ const SingleRow = ({
// Generate sequence characters
let chars = null;
+ let chars2 = null;
if (zoomLevel > -1) {
chars = rowSequence.split("").map((char, i) => {
@@ -410,6 +412,34 @@ const SingleRow = ({
);
});
}
+ const rc = {"A": "T", "T": "A", "C": "G", "G": "C", "N": "N"};
+ if (//window.RC &&
+ zoomLevel > -1) {
+ // Generate reverse complement sequence characters
+ chars2 = rowSequence.split("").map((char, i) => {
+ const x = i * sep;
+ return (
+