Browse Source

ui, print length of sequences that are too long

Alexander Rose 5 years ago
parent
commit
453d60060a
1 changed files with 3 additions and 1 deletions
  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