|
@@ -29,7 +29,7 @@ import { ViewerState } from '../types';
|
|
|
const ABSOLUTE_ADVANCED_SEARCH_URL = 'https://rcsb.org/search?query=';
|
|
|
const RELATIVE_ADVANCED_SEARCH_URL = '/search?query=';
|
|
|
const RETURN_TYPE = '&return_type=assembly';
|
|
|
-const MIN_MOTIF_SIZE = 3;
|
|
|
+const MIN_MOTIF_SIZE = 2;
|
|
|
const MAX_MOTIF_SIZE = 10;
|
|
|
export const MAX_EXCHANGES = 4;
|
|
|
const MAX_MOTIF_EXTENT = 15;
|
|
@@ -217,7 +217,7 @@ class SubmitControls extends PurePluginUIComponent<{}, { isBusy: boolean, residu
|
|
|
|
|
|
if (!contact) {
|
|
|
const { residueId } = coordinates[i];
|
|
|
- alert(`Residue ${residueId.label_seq_id} | ${residueId.label_asym_id} | ${residueId.struct_oper_id} needs to be less than 15 \u212B from another residue - Consider adding more residues to connect far-apart residues.`);
|
|
|
+ alert(`Residue ${residueId.label_seq_id} | ${residueId.label_asym_id} | ${residueId.struct_oper_id} needs to be less than ${MAX_MOTIF_EXTENT} \u212B from another residue - Consider adding more residues to connect far-apart residues.`);
|
|
|
return;
|
|
|
}
|
|
|
}
|