@teselagen/ove 0.7.27 → 0.7.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AASliver.js +187 -0
- package/AddLaddersDialog.js +82 -0
- package/AdditionalCutsiteInfoDialog.js +599 -0
- package/AlignmentView/Mismatches.d.ts +3 -3
- package/AlignmentVisibilityTool.js +105 -0
- package/AnnotationContainerHolder.js +20 -0
- package/AnnotationPositioner.js +27 -0
- package/AutoAnnotate.js +501 -0
- package/AutoAnnotateBpMatchingDialog.js +208 -0
- package/Axis.js +151 -0
- package/AxisNumbers.js +35 -0
- package/Browser.js +106 -0
- package/Caret.js +63 -0
- package/Chromatogram.js +293 -0
- package/CircularDnaSequence.js +73 -0
- package/CircularView/Labels/index.d.ts +1 -1
- package/CircularView/index.d.ts +0 -1
- package/CircularZoomMinimap.js +16 -0
- package/ColorPicker.js +30 -0
- package/CommandHotkeyHandler.js +44 -0
- package/CreateAnnotationsPage.d.ts +4 -4
- package/CreateAnnotationsPage.js +98 -0
- package/Cutsite.js +18 -0
- package/CutsiteProperties.js +176 -0
- package/CutsiteSelectionLayers.js +47 -0
- package/Cutsites.js +271 -0
- package/DeletionLayer.js +28 -0
- package/DigestTool/Ladder.d.ts +1 -1
- package/DropHandler.css +21 -0
- package/DropHandler.js +64 -0
- package/EditCaretPosition.js +234 -0
- package/EditTrackNameDialog.js +30 -0
- package/Feature.js +83 -0
- package/FeatureProperties.js +6 -0
- package/FillWindow.js +47 -0
- package/GenbankView.js +74 -0
- package/GeneralProperties.js +117 -0
- package/GenericAnnotationProperties.js +406 -0
- package/GlobalDialog.js +73 -0
- package/GlobalDialogUtils.js +110 -0
- package/GoToDialog.js +25 -0
- package/HorizontalPanelDragHandle.js +35 -0
- package/Keyboard.js +85 -0
- package/Labels.js +327 -0
- package/Ladder.css +20 -0
- package/Ladder.js +303 -0
- package/MeltingTemp.js +85 -0
- package/Menlo.ttf +0 -0
- package/Minimap.js +515 -0
- package/Mismatches.js +134 -0
- package/Monaco.ttf +0 -0
- package/MultipleSeqsDetectedOnImportDialog.js +74 -0
- package/Orf.js +109 -0
- package/OrfProperties.js +117 -0
- package/Orfs.js +35 -0
- package/PCRTool.js +179 -0
- package/PairwiseAlignmentView.js +68 -0
- package/Part.js +34 -0
- package/PartProperties.js +9 -0
- package/PassThrough.js +3 -0
- package/PerformantSelectionLayer.js +32 -0
- package/PinchHelper.js +24 -0
- package/PointedAnnotation.js +347 -0
- package/PositionAnnotationOnCircle.js +26 -0
- package/Primer.js +41 -0
- package/PrimerProperties.js +19 -0
- package/Reflex/index.d.ts +0 -1
- package/ReflexContainer.js +802 -0
- package/ReflexElement.js +160 -0
- package/ReflexEvents.js +77 -0
- package/ReflexSplitter.js +205 -0
- package/RenameSequenceDialog.js +7 -0
- package/RotateCircularViewSlider.js +93 -0
- package/RowView/index.d.ts +0 -1
- package/SelectDialog.js +150 -0
- package/SequenceName.js +15 -0
- package/SimpleCircularOrLinearView.js +381 -0
- package/SimpleOligoPreview.js +39 -0
- package/SingleEnzymeCutsiteInfo.js +139 -0
- package/ToolBar/ToolbarItem.d.ts +1 -3
- package/ToolbarItem.js +192 -0
- package/Translation.js +198 -0
- package/TranslationProperties.js +149 -0
- package/UncontrolledSliderWithPlusMinusBtns.css +5 -0
- package/UncontrolledSliderWithPlusMinusBtns.js +134 -0
- package/VeTopRightContainer.js +12 -0
- package/ZoomCircularViewSlider.js +62 -0
- package/ZoomLinearView.js +47 -0
- package/addAlignment.js +6 -0
- package/addMetaToActionCreators.js +12 -0
- package/addWrappedAddons.js +20 -0
- package/alignmentTool.js +503 -0
- package/alignments.js +379 -0
- package/annotationLabelVisibility.js +2 -0
- package/annotationSearchSelector.js +24 -0
- package/annotationTypes.js +35 -0
- package/annotationVisibility.js +196 -0
- package/annotationsToSupport.js +104 -0
- package/arrayToObjWithIds.js +17 -0
- package/arrayUtils.js +19 -0
- package/array_move.js +10 -0
- package/calculateTickMarkPositionsForGivenRange.js +47 -0
- package/caretPosition.js +27 -0
- package/cdsFeaturesSelector.js +9 -0
- package/charWidth.js +22 -0
- package/circular.js +19 -0
- package/circularSelector.js +4 -0
- package/clickAndDragUtils.js +576 -0
- package/coerceInitialValue.js +7 -0
- package/combineReducersDontIgnoreKeys.js +12 -0
- package/commandUtils.js +20 -0
- package/constants.js +2 -0
- package/copyOptions.js +34 -0
- package/createFragmentLines.js +120 -0
- package/createMergedDefaultStateReducer.js +30 -0
- package/createMetaAction.js +12 -0
- package/createSequenceInputPopup.js +290 -0
- package/createSequenceInputPopupStyle.css +87 -0
- package/createSimpleDialog.js +89 -0
- package/createYourOwnEnzyme.js +39 -0
- package/cutsiteLabelColorSelector.js +6 -0
- package/cutsiteTool.js +88 -0
- package/cutsitesByRangeSelector.js +5 -0
- package/cutsitesSelector.js +61 -0
- package/darkmode.css +98 -0
- package/defaultConfig.js +150 -0
- package/deletionLayers.js +36 -0
- package/description.js +21 -0
- package/digestTool.js +34 -0
- package/dnaToColor.js +17 -0
- package/downloadTool.js +39 -0
- package/draggableClassnames.js +5 -0
- package/drawAnnotations.js +440 -0
- package/drawDirectedPiePiece.js +142 -0
- package/editTool.js +49 -0
- package/editorSelector.js +2 -0
- package/editorUtils.js +205 -0
- package/estimateRowHeight.js +184 -0
- package/featureLengthsToHide.js +27 -0
- package/featureTool.js +34 -0
- package/features.js +19 -0
- package/featuresSelector.js +8 -0
- package/filteredCutsitesSelector.js +136 -0
- package/filteredFeaturesSelector.js +32 -0
- package/filteredPartsSelector.js +57 -0
- package/filteredPrimersSelector.js +27 -0
- package/filteredRestrictionEnzymesSelector.js +1 -0
- package/find.png +0 -0
- package/findTool.js +79 -0
- package/findToolConstants.js +1 -0
- package/frameTranslations.js +52 -0
- package/fullscreen.png +0 -0
- package/getAdditionalEnzymesSelector.js +46 -0
- package/getAngleForPositionMidpoint.js +3 -0
- package/getAnnotationClassnames.js +12 -0
- package/getAnnotationNameAndStartStopString.js +61 -0
- package/getBpsPerRow.js +19 -0
- package/getCutsiteLabelHeights.js +56 -0
- package/getGapMap.js +12 -0
- package/getGaps.js +27 -0
- package/getInternalLabel.js +40 -0
- package/getOveHotkeyDefs.js +12 -0
- package/getPairwiseOverviewLinearViewOptions.js +38 -0
- package/getRangeAnglesSpecial.js +12 -0
- package/getStructuredBases.js +97 -0
- package/getTrackFromEvent.js +25 -0
- package/getVisibleStartEnd.js +7 -0
- package/getXStartAndWidthFromNonCircularRange.js +12 -0
- package/getXStartAndWidthOfRangeWrtRow.js +27 -0
- package/getXStartAndWidthOfRowAnnotation.js +19 -0
- package/getYOffset.js +15 -0
- package/hoveredAnnotation.js +24 -0
- package/{html2canvas.esm--JN4fLQL.js → html2canvas.esm-DiGWN1gP.js} +187 -229
- package/{html2canvas.esm-B7d7VJmQ.cjs → html2canvas.esm-J1esNpMJ.cjs} +187 -229
- package/importTool.js +27 -0
- package/index.cjs.js +48165 -47142
- package/index.es.js +47699 -46676
- package/index.js +71 -0
- package/inlineFindTool.js +38 -0
- package/isElementInViewport.js +29 -0
- package/isEnzymeFilterAndSelector.js +1 -0
- package/isTargetWithinEl.js +6 -0
- package/labelLineIntensity.js +25 -0
- package/labelSize.js +23 -0
- package/ladderDefaults.js +25 -0
- package/lastSavedId.js +20 -0
- package/lineageLines.js +11 -0
- package/linear.png +0 -0
- package/makeStore.js +34 -0
- package/massageTickSpacing.js +19 -0
- package/materiallyAvailable.js +19 -0
- package/middleware.js +112 -0
- package/minimumOrfSize.js +24 -0
- package/minimumOrfSizeSelector.js +2 -0
- package/modalActions.js +3 -0
- package/moveCaret.js +58 -0
- package/name.js +19 -0
- package/normalizeAngle.js +3 -0
- package/normalizeAngleRange.js +9 -0
- package/oligoTool.js +30 -0
- package/onlyUpdateForKeysDeep.js +31 -0
- package/orfFrameToColorMap.js +10 -0
- package/orfTool.js +136 -0
- package/orfsSelector.js +15 -0
- package/ove.css +12107 -0
- package/package.json +6 -5
- package/panelsShown.js +294 -0
- package/partLengthsToHide.js +23 -0
- package/partOverhangs.js +6 -0
- package/partTagSearch.js +69 -0
- package/partTool.js +45 -0
- package/parts.js +19 -0
- package/partsSelector.js +8 -0
- package/pie.png +0 -0
- package/polarToSpecialCartesian.js +7 -0
- package/positionCutsites.js +6 -0
- package/prepareRowData.js +64 -0
- package/primerBases.js +221 -0
- package/primerLengthsToHide.js +27 -0
- package/primers.js +19 -0
- package/primersSelector.js +8 -0
- package/print.png +0 -0
- package/printTool.js +31 -0
- package/propertiesTool.js +40 -0
- package/proteinUtils.js +3 -0
- package/pureNoFunc.js +18 -0
- package/readOnly.js +25 -0
- package/redoTool.js +30 -0
- package/reflex-styles.css +128 -0
- package/reflex-styles.css.map +9 -0
- package/relaxLabelAngles.js +157 -0
- package/relaxLabels_DEPRECATED.js +105 -0
- package/replacementLayers.js +36 -0
- package/restrictionEnzymes.js +52 -0
- package/restrictionEnzymesSelector.js +34 -0
- package/rowviewContants.js +3 -0
- package/ruler.css +89 -0
- package/save.png +0 -0
- package/saveTool.js +44 -0
- package/searchLayersSelector.js +71 -0
- package/selectedAnnotations.js +89 -0
- package/selectedAnnotationsSelector.js +1 -0
- package/selectedCutsitesSelector.js +21 -0
- package/selectedPartTags.js +21 -0
- package/selectionLayer.js +25 -0
- package/selectors/annotationSearchSelector.d.ts +1 -1
- package/sequence.js +12 -0
- package/sequenceDataHistory.js +43 -0
- package/sequenceDataSelector.js +2 -0
- package/sequenceLengthSelector.js +5 -0
- package/sequenceSelector.js +4 -0
- package/sharedActionCreators.js +0 -0
- package/shouldFlipText.js +4 -0
- package/shouldRerender.js +27 -0
- package/showFileDialog.js +25 -0
- package/showGCContent.js +23 -0
- package/show_cut_sites.png +0 -0
- package/show_features.png +0 -0
- package/show_orfs.png +0 -0
- package/show_primers.png +0 -0
- package/simpleDialog.css +13 -0
- package/specialCutsiteFilterOptions.js +22 -0
- package/src/Editor/DropHandler.js +2 -1
- package/src/Editor/index.js +0 -2
- package/src/RowItem/StackedAnnotations/getStructuredBases.js +20 -6
- package/src/ToolBar/cutsiteTool.js +1 -1
- package/src/helperComponents/PropertiesDialog/TranslationProperties.js +2 -1
- package/style.css +3 -12100
- package/tagsToBoldSelector.js +2 -0
- package/toggle_views.svg +1 -0
- package/toolBar.js +23 -0
- package/translationSearchMatchesSelector.js +14 -0
- package/translations.js +20 -0
- package/translationsRawSelector.js +8 -0
- package/translationsSelector.js +137 -0
- package/typeField.js +24 -0
- package/undoTool.js +30 -0
- package/updateEditor.d.ts +1 -3
- package/updateEditor.js +200 -0
- package/updateLabelsForInViewFeatures.js +55 -0
- package/updateLabelsForInViewFeaturesCircView.js +41 -0
- package/updateTrackHelper.js +58 -0
- package/uppercaseSequenceMapFont.js +25 -0
- package/upsertDeleteActionGenerator.js +31 -0
- package/useAAColorType.js +8 -0
- package/useAdditionalOrfStartCodons.js +24 -0
- package/useAnnotationLimits.js +42 -0
- package/useChromatogramPrefs.js +31 -0
- package/useFormValue.js +7 -0
- package/useLadders.js +6 -0
- package/useMeltingTemp.js +7 -0
- package/useTmType.js +10 -0
- package/userDefinedHandlersAndOpts.js +61 -0
- package/utils/getAnnotationNameAndStartStopString.d.ts +1 -5
- package/utils/selectionLayer.d.ts +2 -2
- package/utils.js +37 -0
- package/versionHistory.js +26 -0
- package/versionHistoryTool.js +21 -0
- package/viewSubmenu.js +479 -0
- package/visibilityTool.js +39 -0
- package/withEditorInteractions/getBpsPerRow.d.ts +1 -3
- package/withHover.js +113 -0
- package/withRestrictionEnzymes.js +15 -0
- package/index.umd.js +0 -188322
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
import { compose } from "recompose";
|
|
2
|
+
import { wrapDialog, DropdownButton } from "@teselagen/ui";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Classes, Icon, Menu, MenuItem, Tag } from "@blueprintjs/core";
|
|
5
|
+
import withEditorProps from "../withEditorProps";
|
|
6
|
+
import specialCutsiteFilterOptions from "../constants/specialCutsiteFilterOptions";
|
|
7
|
+
import {
|
|
8
|
+
differenceBy,
|
|
9
|
+
find,
|
|
10
|
+
flatMap,
|
|
11
|
+
forEach,
|
|
12
|
+
intersectionBy,
|
|
13
|
+
map,
|
|
14
|
+
noop,
|
|
15
|
+
sortBy
|
|
16
|
+
} from "lodash-es";
|
|
17
|
+
import SingleEnzymeCutsiteInfo from "../helperComponents/PropertiesDialog/SingleEnzymeCutsiteInfo";
|
|
18
|
+
import { showDialog } from "../GlobalDialogUtils";
|
|
19
|
+
|
|
20
|
+
import {
|
|
21
|
+
aliasedEnzymesByName,
|
|
22
|
+
cutSequenceByRestrictionEnzyme,
|
|
23
|
+
defaultEnzymesByName
|
|
24
|
+
} from "@teselagen/sequence-utils";
|
|
25
|
+
import { withRestrictionEnzymes } from "./withRestrictionEnzymes";
|
|
26
|
+
import { getEnzymeAliases } from "../utils/editorUtils";
|
|
27
|
+
|
|
28
|
+
function getUserEnzymeGroups(p) {
|
|
29
|
+
return p.enzymeGroupsOverride || window.getExistingEnzymeGroups();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function isGroup({ cutsiteOrGroupKey }) {
|
|
33
|
+
const isUserCreatedGroup = cutsiteOrGroupKey.startsWith("__userCreatedGroup");
|
|
34
|
+
const specialCutsiteFilterOption =
|
|
35
|
+
specialCutsiteFilterOptions[cutsiteOrGroupKey];
|
|
36
|
+
return isUserCreatedGroup || specialCutsiteFilterOption;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export const AdditionalCutsiteInfoDialog = compose(
|
|
40
|
+
withEditorProps,
|
|
41
|
+
withRestrictionEnzymes,
|
|
42
|
+
wrapDialog({
|
|
43
|
+
isDraggable: true,
|
|
44
|
+
getDialogProps: props => {
|
|
45
|
+
if (isGroup(props)) {
|
|
46
|
+
return {
|
|
47
|
+
title: (
|
|
48
|
+
<div style={{ display: "flex" }}>
|
|
49
|
+
Group -
|
|
50
|
+
{getGroupElAndCutsites(props).title}
|
|
51
|
+
</div>
|
|
52
|
+
)
|
|
53
|
+
};
|
|
54
|
+
} else {
|
|
55
|
+
let c = props.allCutsites.cutsitesByName;
|
|
56
|
+
const name = props.cutsiteOrGroupKey.toLowerCase();
|
|
57
|
+
if (!c[name]) {
|
|
58
|
+
const e = aliasedEnzymesByName[name];
|
|
59
|
+
if (e) {
|
|
60
|
+
const res = cutSequenceByRestrictionEnzyme(
|
|
61
|
+
props.sequenceData.sequence,
|
|
62
|
+
true,
|
|
63
|
+
e
|
|
64
|
+
);
|
|
65
|
+
c = { ...c, [name]: res };
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
title: (
|
|
70
|
+
<div style={{ display: "flex" }}>
|
|
71
|
+
Enzyme -
|
|
72
|
+
<CutsiteTag
|
|
73
|
+
noClick
|
|
74
|
+
showActiveText
|
|
75
|
+
allRestrictionEnzymes={props.allRestrictionEnzymes}
|
|
76
|
+
cutsitesByNameActive={props.filteredCutsites.cutsitesByName}
|
|
77
|
+
cutsitesByName={c}
|
|
78
|
+
name={props.cutsiteOrGroupKey}
|
|
79
|
+
></CutsiteTag>
|
|
80
|
+
</div>
|
|
81
|
+
)
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
})
|
|
86
|
+
)(function (props) {
|
|
87
|
+
const {
|
|
88
|
+
dispatch,
|
|
89
|
+
editorName,
|
|
90
|
+
cutsiteOrGroupKey,
|
|
91
|
+
allCutsites: { cutsitesByName },
|
|
92
|
+
filteredCutsites: { cutsitesByName: cutsitesByNameActive },
|
|
93
|
+
selectedAnnotationId,
|
|
94
|
+
allRestrictionEnzymes
|
|
95
|
+
} = props;
|
|
96
|
+
|
|
97
|
+
let inner;
|
|
98
|
+
|
|
99
|
+
const userEnzymeGroups = getUserEnzymeGroups(props);
|
|
100
|
+
if (isGroup(props)) {
|
|
101
|
+
//group case
|
|
102
|
+
const ret = getGroupElAndCutsites(props);
|
|
103
|
+
const enzymesThatCutInSeq = ret.enzymesThatCutInSeq;
|
|
104
|
+
const enzymesThatDontCutInSeq = ret.enzymesThatDontCutInSeq;
|
|
105
|
+
inner = (
|
|
106
|
+
<div>
|
|
107
|
+
<div>
|
|
108
|
+
<DropdownButton
|
|
109
|
+
minimal
|
|
110
|
+
menu={
|
|
111
|
+
<Menu>
|
|
112
|
+
{flatMap(
|
|
113
|
+
[
|
|
114
|
+
...map(specialCutsiteFilterOptions),
|
|
115
|
+
...map(userEnzymeGroups, (v, key) => ({
|
|
116
|
+
label: key,
|
|
117
|
+
value: "__userCreatedGroup" + key
|
|
118
|
+
}))
|
|
119
|
+
],
|
|
120
|
+
({ label, value }, key, i) => {
|
|
121
|
+
if (value === cutsiteOrGroupKey) return [];
|
|
122
|
+
return (
|
|
123
|
+
<MenuItem
|
|
124
|
+
onClick={() => {
|
|
125
|
+
showDialog({
|
|
126
|
+
dialogType: "CompareEnzymeGroupsDialog",
|
|
127
|
+
props: {
|
|
128
|
+
dialogProps: {
|
|
129
|
+
title: "Comparing Groups",
|
|
130
|
+
width: 450
|
|
131
|
+
},
|
|
132
|
+
group1: cutsiteOrGroupKey,
|
|
133
|
+
group2: value
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}}
|
|
137
|
+
key={i}
|
|
138
|
+
text={`vs ${label}`}
|
|
139
|
+
></MenuItem>
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
)}
|
|
143
|
+
</Menu>
|
|
144
|
+
}
|
|
145
|
+
text="Compare.."
|
|
146
|
+
></DropdownButton>
|
|
147
|
+
<br></br>
|
|
148
|
+
<br></br>
|
|
149
|
+
</div>
|
|
150
|
+
|
|
151
|
+
<div style={{ display: "flex", justifyContent: "space-between" }}>
|
|
152
|
+
{!!enzymesThatCutInSeq.length && (
|
|
153
|
+
<div>
|
|
154
|
+
<div
|
|
155
|
+
style={{
|
|
156
|
+
display: "flex",
|
|
157
|
+
flexDirection: "column",
|
|
158
|
+
overflow: "auto"
|
|
159
|
+
// maxHeight: 400
|
|
160
|
+
}}
|
|
161
|
+
>
|
|
162
|
+
{enzymesThatCutInSeq.map((e, i) => (
|
|
163
|
+
<CutsiteTag
|
|
164
|
+
allRestrictionEnzymes={props.allRestrictionEnzymes}
|
|
165
|
+
cutsitesByName={props.allCutsites.cutsitesByName}
|
|
166
|
+
cutsitesByNameActive={cutsitesByNameActive}
|
|
167
|
+
key={i}
|
|
168
|
+
{...e}
|
|
169
|
+
></CutsiteTag>
|
|
170
|
+
))}
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
)}
|
|
174
|
+
{enzymesThatDontCutInSeq && (
|
|
175
|
+
<div>
|
|
176
|
+
<div
|
|
177
|
+
style={{
|
|
178
|
+
display: "flex",
|
|
179
|
+
flexDirection: "column",
|
|
180
|
+
overflow: "auto"
|
|
181
|
+
}}
|
|
182
|
+
>
|
|
183
|
+
{enzymesThatDontCutInSeq.map((e, i) => (
|
|
184
|
+
<CutsiteTag
|
|
185
|
+
allRestrictionEnzymes={props.allRestrictionEnzymes}
|
|
186
|
+
cutsitesByName={props.allCutsites.cutsitesByName}
|
|
187
|
+
cutsitesByNameActive={cutsitesByNameActive}
|
|
188
|
+
key={i}
|
|
189
|
+
{...e}
|
|
190
|
+
></CutsiteTag>
|
|
191
|
+
))}
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
)}
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
);
|
|
198
|
+
} else if (
|
|
199
|
+
//single enzyme case
|
|
200
|
+
cutsitesByName[cutsiteOrGroupKey.toLowerCase()] ||
|
|
201
|
+
allRestrictionEnzymes[cutsiteOrGroupKey.toLowerCase()] ||
|
|
202
|
+
aliasedEnzymesByName[cutsiteOrGroupKey.toLowerCase()]
|
|
203
|
+
) {
|
|
204
|
+
const inTheseUserGroups = [];
|
|
205
|
+
const cutsiteGroup = cutsitesByName[cutsiteOrGroupKey.toLowerCase()] || [];
|
|
206
|
+
const enzyme = cutsiteGroup[0]
|
|
207
|
+
? cutsiteGroup[0].restrictionEnzyme
|
|
208
|
+
: allRestrictionEnzymes[cutsiteOrGroupKey.toLowerCase()] ||
|
|
209
|
+
aliasedEnzymesByName[cutsiteOrGroupKey.toLowerCase()];
|
|
210
|
+
|
|
211
|
+
if (cutsiteGroup.length && cutsiteGroup.length <= 3) {
|
|
212
|
+
const { el } = getGroupElAndCutsites({
|
|
213
|
+
...props,
|
|
214
|
+
cutsiteOrGroupKey: find(
|
|
215
|
+
specialCutsiteFilterOptions,
|
|
216
|
+
({ cutsThisManyTimes }) => cutsThisManyTimes === cutsiteGroup.length
|
|
217
|
+
).value
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
inTheseUserGroups.push(el);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
const enzymeName = enzyme.name;
|
|
224
|
+
|
|
225
|
+
forEach(userEnzymeGroups, (nameArray, name) => {
|
|
226
|
+
let isInGroup;
|
|
227
|
+
forEach(nameArray, n => {
|
|
228
|
+
if (n.toLowerCase() === enzymeName.toLowerCase()) {
|
|
229
|
+
isInGroup = true;
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
if (isInGroup) {
|
|
233
|
+
const cutsiteOrGroupKey = "__userCreatedGroup" + name;
|
|
234
|
+
|
|
235
|
+
const { el } = getGroupElAndCutsites({
|
|
236
|
+
...props,
|
|
237
|
+
cutsiteOrGroupKey
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
inTheseUserGroups.push(el);
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
inner = (
|
|
244
|
+
<div>
|
|
245
|
+
{!!inTheseUserGroups.length && (
|
|
246
|
+
<div style={{ marginBottom: 20 }}>{inTheseUserGroups}</div>
|
|
247
|
+
)}
|
|
248
|
+
<SingleEnzymeCutsiteInfo
|
|
249
|
+
{...{
|
|
250
|
+
dispatch,
|
|
251
|
+
editorName,
|
|
252
|
+
selectedAnnotationId,
|
|
253
|
+
cutsiteGroup,
|
|
254
|
+
enzyme,
|
|
255
|
+
allRestrictionEnzymes,
|
|
256
|
+
allCutsites: props.allCutsites,
|
|
257
|
+
filteredCutsites: props.filteredCutsites
|
|
258
|
+
}}
|
|
259
|
+
></SingleEnzymeCutsiteInfo>
|
|
260
|
+
</div>
|
|
261
|
+
);
|
|
262
|
+
} else {
|
|
263
|
+
console.error(`we shouldn't be here!:`, cutsiteOrGroupKey);
|
|
264
|
+
return null;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
return <div className={Classes.DIALOG_BODY}>{inner}</div>;
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
export const CompareEnzymeGroupsDialog = compose(
|
|
271
|
+
withEditorProps,
|
|
272
|
+
withRestrictionEnzymes,
|
|
273
|
+
wrapDialog({
|
|
274
|
+
isDraggable: true
|
|
275
|
+
})
|
|
276
|
+
)(function (props) {
|
|
277
|
+
const {
|
|
278
|
+
group1,
|
|
279
|
+
group2,
|
|
280
|
+
filteredCutsites: { cutsitesByName: cutsitesByNameActive }
|
|
281
|
+
} = props;
|
|
282
|
+
|
|
283
|
+
const g1 = getGroupElAndCutsites({
|
|
284
|
+
...props,
|
|
285
|
+
cutsiteOrGroupKey: group1
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
const g2 = getGroupElAndCutsites({
|
|
289
|
+
...props,
|
|
290
|
+
cutsiteOrGroupKey: group2
|
|
291
|
+
});
|
|
292
|
+
const byNameLower = n => n.name.toLowerCase();
|
|
293
|
+
const shared = intersectionBy(
|
|
294
|
+
g1.allEnzymesInGroup,
|
|
295
|
+
g2.allEnzymesInGroup,
|
|
296
|
+
byNameLower
|
|
297
|
+
);
|
|
298
|
+
|
|
299
|
+
const g1Only = differenceBy(g1.allEnzymesInGroup, shared, byNameLower);
|
|
300
|
+
const g2Only = differenceBy(g2.allEnzymesInGroup, shared, byNameLower);
|
|
301
|
+
return (
|
|
302
|
+
<div
|
|
303
|
+
style={{ display: "flex", justifyContent: "space-between" }}
|
|
304
|
+
className={Classes.DIALOG_BODY}
|
|
305
|
+
>
|
|
306
|
+
<Column
|
|
307
|
+
dataTest="tg-column-1"
|
|
308
|
+
title="In"
|
|
309
|
+
header={g1.el}
|
|
310
|
+
body={g1Only.map((e, i) => {
|
|
311
|
+
return (
|
|
312
|
+
<CutsiteTag
|
|
313
|
+
allRestrictionEnzymes={props.allRestrictionEnzymes}
|
|
314
|
+
cutsitesByName={props.allCutsites.cutsitesByName}
|
|
315
|
+
cutsitesByNameActive={cutsitesByNameActive}
|
|
316
|
+
key={i}
|
|
317
|
+
{...e}
|
|
318
|
+
></CutsiteTag>
|
|
319
|
+
);
|
|
320
|
+
})}
|
|
321
|
+
/>
|
|
322
|
+
|
|
323
|
+
<Column
|
|
324
|
+
dataTest="tg-column-2"
|
|
325
|
+
title="In Both"
|
|
326
|
+
header={
|
|
327
|
+
<div>
|
|
328
|
+
{g1.el} {g2.el}
|
|
329
|
+
</div>
|
|
330
|
+
}
|
|
331
|
+
body={shared.map((e, i) => {
|
|
332
|
+
return (
|
|
333
|
+
<CutsiteTag
|
|
334
|
+
allRestrictionEnzymes={props.allRestrictionEnzymes}
|
|
335
|
+
cutsitesByName={props.allCutsites.cutsitesByName}
|
|
336
|
+
cutsitesByNameActive={cutsitesByNameActive}
|
|
337
|
+
key={i}
|
|
338
|
+
{...e}
|
|
339
|
+
></CutsiteTag>
|
|
340
|
+
);
|
|
341
|
+
})}
|
|
342
|
+
/>
|
|
343
|
+
|
|
344
|
+
<Column
|
|
345
|
+
dataTest="tg-column-3"
|
|
346
|
+
title="In"
|
|
347
|
+
header={g2.el}
|
|
348
|
+
body={g2Only.map((e, i) => {
|
|
349
|
+
return (
|
|
350
|
+
<CutsiteTag
|
|
351
|
+
allRestrictionEnzymes={props.allRestrictionEnzymes}
|
|
352
|
+
cutsitesByName={props.allCutsites.cutsitesByName}
|
|
353
|
+
cutsitesByNameActive={cutsitesByNameActive}
|
|
354
|
+
key={i}
|
|
355
|
+
{...e}
|
|
356
|
+
></CutsiteTag>
|
|
357
|
+
);
|
|
358
|
+
})}
|
|
359
|
+
/>
|
|
360
|
+
</div>
|
|
361
|
+
);
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
function isUserEnzymeGroup(group) {
|
|
365
|
+
const isUserCreatedGroup = group.startsWith("__userCreatedGroup");
|
|
366
|
+
return isUserCreatedGroup;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
const getGroupElAndCutsites = ({
|
|
370
|
+
enzymeGroupsOverride,
|
|
371
|
+
cutsiteOrGroupKey,
|
|
372
|
+
filteredRestrictionEnzymes,
|
|
373
|
+
allCutsites
|
|
374
|
+
}) => {
|
|
375
|
+
const userEnzymeGroups =
|
|
376
|
+
enzymeGroupsOverride || window.getExistingEnzymeGroups();
|
|
377
|
+
|
|
378
|
+
let isGroupActive;
|
|
379
|
+
let label;
|
|
380
|
+
|
|
381
|
+
const enzymesThatDontCutInSeq = [];
|
|
382
|
+
let enzymesThatCutInSeq = [];
|
|
383
|
+
forEach(filteredRestrictionEnzymes, g => {
|
|
384
|
+
if (g.value === cutsiteOrGroupKey) {
|
|
385
|
+
isGroupActive = true;
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
if (cutsiteOrGroupKey === "type2s") {
|
|
390
|
+
const nameArray = flatMap(defaultEnzymesByName, e =>
|
|
391
|
+
e.isType2S ? e.name : []
|
|
392
|
+
);
|
|
393
|
+
label = "Type IIS Enzymes";
|
|
394
|
+
|
|
395
|
+
sortBy(nameArray).forEach(name => {
|
|
396
|
+
const cutsites = allCutsites.cutsitesByName[name.toLowerCase()];
|
|
397
|
+
if (!cutsites) {
|
|
398
|
+
enzymesThatDontCutInSeq.push({ name, sites: [] });
|
|
399
|
+
} else {
|
|
400
|
+
enzymesThatCutInSeq.push({ name, sites: cutsites });
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
} else if (isUserEnzymeGroup(cutsiteOrGroupKey)) {
|
|
404
|
+
const name = cutsiteOrGroupKey.replace("__userCreatedGroup", "");
|
|
405
|
+
const nameArray = userEnzymeGroups[name];
|
|
406
|
+
label = getUserGroupLabel({ name, nameArray });
|
|
407
|
+
|
|
408
|
+
sortBy(nameArray).forEach(name => {
|
|
409
|
+
const cutsites = allCutsites.cutsitesByName[name.toLowerCase()];
|
|
410
|
+
if (!cutsites) {
|
|
411
|
+
enzymesThatDontCutInSeq.push({ name, sites: [] });
|
|
412
|
+
} else {
|
|
413
|
+
enzymesThatCutInSeq.push({ name, sites: cutsites });
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
} else {
|
|
417
|
+
//it's a single/double/etc
|
|
418
|
+
const specialCutsiteFilterOption =
|
|
419
|
+
specialCutsiteFilterOptions[cutsiteOrGroupKey];
|
|
420
|
+
label = specialCutsiteFilterOption.label;
|
|
421
|
+
enzymesThatCutInSeq = map(allCutsites.cutsitesByName, cutsites =>
|
|
422
|
+
cutsites.length === specialCutsiteFilterOption.cutsThisManyTimes
|
|
423
|
+
? { name: cutsites[0].name, sites: cutsites }
|
|
424
|
+
: null
|
|
425
|
+
).filter(n => n !== null);
|
|
426
|
+
}
|
|
427
|
+
const title = (
|
|
428
|
+
<div style={{ display: "flex" }}>
|
|
429
|
+
{label}
|
|
430
|
+
{isGroupActive ? "" : "(inactive)"}
|
|
431
|
+
</div>
|
|
432
|
+
);
|
|
433
|
+
const el = addCutsiteGroupClickHandler({
|
|
434
|
+
cutsiteOrGroupKey,
|
|
435
|
+
el: (
|
|
436
|
+
<Tag minimal intent={isGroupActive && "primary"} style={{ margin: 3 }}>
|
|
437
|
+
{label}
|
|
438
|
+
</Tag>
|
|
439
|
+
),
|
|
440
|
+
title
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
return {
|
|
444
|
+
el,
|
|
445
|
+
title,
|
|
446
|
+
enzymesThatDontCutInSeq,
|
|
447
|
+
enzymesThatCutInSeq,
|
|
448
|
+
allEnzymesInGroup: [...enzymesThatCutInSeq, ...enzymesThatDontCutInSeq]
|
|
449
|
+
// cutsitesInGroup: [] //tnrtodo
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
export const CutsiteTag = ({
|
|
454
|
+
allRestrictionEnzymes,
|
|
455
|
+
showActiveText,
|
|
456
|
+
cutsitesByNameActive,
|
|
457
|
+
cutsitesByName,
|
|
458
|
+
name,
|
|
459
|
+
onWrapperClick,
|
|
460
|
+
doNotShowCuts,
|
|
461
|
+
noClick,
|
|
462
|
+
forceOpenCutsiteInfo
|
|
463
|
+
}) => {
|
|
464
|
+
const isHidden = getIsEnzymeHidden({ name, allRestrictionEnzymes });
|
|
465
|
+
|
|
466
|
+
let numCuts = (cutsitesByName[name.toLowerCase()] || []).length;
|
|
467
|
+
|
|
468
|
+
const aliases = getEnzymeAliases(name);
|
|
469
|
+
aliases.forEach(alias => {
|
|
470
|
+
if (numCuts === 0) {
|
|
471
|
+
numCuts = (cutsitesByName[alias.toLowerCase()] || []).length;
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
const isActive = numCuts
|
|
475
|
+
? cutsitesByNameActive[name.toLowerCase()]
|
|
476
|
+
? "primary"
|
|
477
|
+
: undefined
|
|
478
|
+
: undefined;
|
|
479
|
+
|
|
480
|
+
const el = (
|
|
481
|
+
<Tag
|
|
482
|
+
onClick={onWrapperClick}
|
|
483
|
+
intent={isActive}
|
|
484
|
+
style={{ margin: 3, opacity: isHidden ? 0.5 : 1 }}
|
|
485
|
+
>
|
|
486
|
+
<div style={{ display: "flex" }}>
|
|
487
|
+
{getCutsiteWithNumCuts({
|
|
488
|
+
name,
|
|
489
|
+
numCuts,
|
|
490
|
+
doNotShowCuts
|
|
491
|
+
})}
|
|
492
|
+
{showActiveText ? (
|
|
493
|
+
isHidden ? (
|
|
494
|
+
<span> hidden</span>
|
|
495
|
+
) : isActive ? (
|
|
496
|
+
<span> active</span>
|
|
497
|
+
) : (
|
|
498
|
+
<span> inactive</span>
|
|
499
|
+
)
|
|
500
|
+
) : null}
|
|
501
|
+
</div>
|
|
502
|
+
</Tag>
|
|
503
|
+
);
|
|
504
|
+
|
|
505
|
+
return addCutsiteGroupClickHandler({
|
|
506
|
+
el,
|
|
507
|
+
noClick,
|
|
508
|
+
cutsiteOrGroupKey: name,
|
|
509
|
+
forceOpenCutsiteInfo
|
|
510
|
+
});
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
export const getUserGroupLabel = ({ name, nameArray }) => (
|
|
514
|
+
<span
|
|
515
|
+
style={{ display: "flex", alignItems: "center" }}
|
|
516
|
+
title={`User created enzyme group ${name} -- ${nameArray.join(" ")}`}
|
|
517
|
+
>
|
|
518
|
+
<Icon size={10} icon="user"></Icon> {name}
|
|
519
|
+
</span>
|
|
520
|
+
);
|
|
521
|
+
|
|
522
|
+
export const getCutsiteWithNumCuts = ({ name, numCuts, doNotShowCuts }) => {
|
|
523
|
+
return (
|
|
524
|
+
<div
|
|
525
|
+
style={{
|
|
526
|
+
display: "flex",
|
|
527
|
+
alignItems: "center",
|
|
528
|
+
justifyContent: "space-between"
|
|
529
|
+
}}
|
|
530
|
+
>
|
|
531
|
+
{" "}
|
|
532
|
+
<div>{name}</div>{" "}
|
|
533
|
+
{!doNotShowCuts && (
|
|
534
|
+
<div style={{ fontSize: 12 }}>
|
|
535
|
+
({numCuts} cut{numCuts === 1 ? "" : "s"})
|
|
536
|
+
</div>
|
|
537
|
+
)}
|
|
538
|
+
</div>
|
|
539
|
+
);
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
export const addCutsiteGroupClickHandler = ({
|
|
543
|
+
closeDropDown = noop,
|
|
544
|
+
cutsiteOrGroupKey,
|
|
545
|
+
el,
|
|
546
|
+
noClick,
|
|
547
|
+
forceOpenCutsiteInfo
|
|
548
|
+
}) => (
|
|
549
|
+
<div
|
|
550
|
+
className={noClick ? "tg-cutsite-label" : "tg-clickable-cutsite-label"}
|
|
551
|
+
style={noClick ? {} : { cursor: "pointer" }}
|
|
552
|
+
onClick={
|
|
553
|
+
noClick
|
|
554
|
+
? undefined
|
|
555
|
+
: e => {
|
|
556
|
+
const isInMultiSelect = e.target.closest(
|
|
557
|
+
".bp3-multi-select-popover"
|
|
558
|
+
);
|
|
559
|
+
if (!forceOpenCutsiteInfo && isInMultiSelect) return true;
|
|
560
|
+
closeDropDown();
|
|
561
|
+
showDialog({
|
|
562
|
+
dialogType: "AdditionalCutsiteInfoDialog",
|
|
563
|
+
props: {
|
|
564
|
+
cutsiteOrGroupKey
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
>
|
|
570
|
+
{el}
|
|
571
|
+
</div>
|
|
572
|
+
);
|
|
573
|
+
|
|
574
|
+
function Column({ dataTest, header, body, title }) {
|
|
575
|
+
return (
|
|
576
|
+
<div data-test={dataTest} style={{ flexGrow: "1", flexBasis: "0" }}>
|
|
577
|
+
{title}:
|
|
578
|
+
<div
|
|
579
|
+
style={{
|
|
580
|
+
height: 60,
|
|
581
|
+
|
|
582
|
+
marginBottom: 20,
|
|
583
|
+
borderBottom: "1px solid lightgrey"
|
|
584
|
+
}}
|
|
585
|
+
>
|
|
586
|
+
{header}
|
|
587
|
+
</div>
|
|
588
|
+
{body}
|
|
589
|
+
</div>
|
|
590
|
+
);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
function getIsEnzymeHidden({ name, allRestrictionEnzymes }) {
|
|
594
|
+
let isHidden = true;
|
|
595
|
+
if (allRestrictionEnzymes[name.toLowerCase()]) {
|
|
596
|
+
isHidden = false;
|
|
597
|
+
}
|
|
598
|
+
return isHidden;
|
|
599
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from '../../../../node_modules/react';
|
|
2
2
|
declare const _default: import('../../../../node_modules/react-redux').ConnectedComponent<typeof Mismatches, {
|
|
3
|
-
context?:
|
|
4
|
-
store?: import('../../../../node_modules/redux').Store
|
|
3
|
+
context?: import('../../../../node_modules/react-redux/es/components/Context').ReactReduxContextInstance | undefined;
|
|
4
|
+
store?: import('../../../../node_modules/redux').Store | undefined;
|
|
5
5
|
} | {
|
|
6
|
-
store?: import('../../../../node_modules/redux').Store
|
|
6
|
+
store?: import('../../../../node_modules/redux').Store | undefined;
|
|
7
7
|
}>;
|
|
8
8
|
export default _default;
|
|
9
9
|
declare class Mismatches extends React.Component<any, any, any> {
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Button,
|
|
3
|
+
Popover,
|
|
4
|
+
Intent,
|
|
5
|
+
Tooltip,
|
|
6
|
+
Tag,
|
|
7
|
+
Menu,
|
|
8
|
+
MenuItem
|
|
9
|
+
} from "@blueprintjs/core";
|
|
10
|
+
import React from "react";
|
|
11
|
+
import { map, startCase } from "lodash-es";
|
|
12
|
+
import pureNoFunc from "../utils/pureNoFunc";
|
|
13
|
+
// import { fullSequenceTranslationMenu } from "../MenuBar/viewSubmenu";
|
|
14
|
+
|
|
15
|
+
export default pureNoFunc(function AlignmentVisibilityTool(props) {
|
|
16
|
+
return (
|
|
17
|
+
<Popover
|
|
18
|
+
minimal
|
|
19
|
+
position="bottom"
|
|
20
|
+
content={<VisibilityOptions {...props} />}
|
|
21
|
+
target={
|
|
22
|
+
<Tooltip content="Visibility Options">
|
|
23
|
+
<Button
|
|
24
|
+
className="tg-alignment-visibility-toggle"
|
|
25
|
+
small
|
|
26
|
+
rightIcon="caret-down"
|
|
27
|
+
intent={Intent.PRIMARY}
|
|
28
|
+
minimal
|
|
29
|
+
icon="eye-open"
|
|
30
|
+
/>
|
|
31
|
+
</Tooltip>
|
|
32
|
+
}
|
|
33
|
+
/>
|
|
34
|
+
);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
function VisibilityOptions({
|
|
38
|
+
// alignmentAnnotationVisibility = {},
|
|
39
|
+
alignmentAnnotationVisibilityToggle,
|
|
40
|
+
togglableAlignmentAnnotationSettings = {},
|
|
41
|
+
// alignmentAnnotationLabelVisibility = {},
|
|
42
|
+
// alignmentAnnotationLabelVisibilityToggle
|
|
43
|
+
annotationsWithCounts,
|
|
44
|
+
currentPairwiseAlignmentIndex
|
|
45
|
+
}) {
|
|
46
|
+
let annotationCountToUse = {};
|
|
47
|
+
if (currentPairwiseAlignmentIndex) {
|
|
48
|
+
annotationCountToUse = annotationsWithCounts[currentPairwiseAlignmentIndex];
|
|
49
|
+
} else {
|
|
50
|
+
annotationCountToUse = annotationsWithCounts[0];
|
|
51
|
+
}
|
|
52
|
+
return (
|
|
53
|
+
<Menu
|
|
54
|
+
style={{ padding: 10 }}
|
|
55
|
+
className="alignmentAnnotationVisibilityToolInner"
|
|
56
|
+
>
|
|
57
|
+
{map(togglableAlignmentAnnotationSettings, (visible, annotationName) => {
|
|
58
|
+
return (
|
|
59
|
+
<MenuItem
|
|
60
|
+
icon={visible ? "tick" : ""}
|
|
61
|
+
onClick={e => {
|
|
62
|
+
e.stopPropagation();
|
|
63
|
+
if (annotationName === "axis") {
|
|
64
|
+
return alignmentAnnotationVisibilityToggle({
|
|
65
|
+
axisNumbers: !visible,
|
|
66
|
+
axis: !visible
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
if (annotationName === "cdsFeatureTranslations" && !visible) {
|
|
70
|
+
return alignmentAnnotationVisibilityToggle({
|
|
71
|
+
cdsFeatureTranslations: !visible,
|
|
72
|
+
translations: !visible
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
alignmentAnnotationVisibilityToggle({
|
|
77
|
+
[annotationName]: !visible
|
|
78
|
+
});
|
|
79
|
+
}}
|
|
80
|
+
text={
|
|
81
|
+
<>
|
|
82
|
+
{startCase(annotationName)
|
|
83
|
+
.replace("Cds", "CDS")
|
|
84
|
+
.replace("Dna", "DNA")}
|
|
85
|
+
{annotationName in annotationCountToUse ? (
|
|
86
|
+
<Tag round style={{ marginLeft: 7 }}>
|
|
87
|
+
{annotationCountToUse[annotationName]}
|
|
88
|
+
</Tag>
|
|
89
|
+
) : (
|
|
90
|
+
""
|
|
91
|
+
)}
|
|
92
|
+
</>
|
|
93
|
+
}
|
|
94
|
+
key={annotationName}
|
|
95
|
+
></MenuItem>
|
|
96
|
+
);
|
|
97
|
+
})}
|
|
98
|
+
{/* <MenuItem icon="" text={fullSequenceTranslationMenu.text}>
|
|
99
|
+
{fullSequenceTranslationMenu.submenu.map(({ text, cmd }) => {
|
|
100
|
+
return <MenuItem key={cmd} text={text}></MenuItem>;
|
|
101
|
+
})}
|
|
102
|
+
</MenuItem> */}
|
|
103
|
+
</Menu>
|
|
104
|
+
);
|
|
105
|
+
}
|