Explorar el Código

ui, print length of sequences that are too long

Alexander Rose hace 5 años
padre
commit
453d60060a
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/mol-plugin/ui/sequence.tsx

+ 3 - 1
src/mol-plugin/ui/sequence.tsx

@@ -51,7 +51,9 @@ function getSequenceWrapper(state: SequenceViewState, structureSelection: Struct
             // check if entity sequence is available
             if (!entitySeq) return 'No sequence available'
             // check if sequence is too long
-            if (entitySeq.sequence.length > MaxDisplaySequenceLength) return 'Sequence too long'
+            if (entitySeq.sequence.length > MaxDisplaySequenceLength) {
+                return `Sequence too long (${entitySeq.sequence.length} residues)`
+            }
         }
 
         const Wrapper = unit.polymerElements.length ? PolymerSequenceWrapper : HeteroSequenceWrapper