Skip to content
Snippets Groups Projects
Commit 453d6006 authored by Alexander Rose's avatar Alexander Rose
Browse files

ui, print length of sequences that are too long

parent 901fac97
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment