|
@@ -8,9 +8,6 @@ import { MolScriptBuilder } from '../../../mol-script/language/builder';
|
|
|
const B = MolScriptBuilder;
|
|
|
import { PropertyDict } from '../types';
|
|
|
|
|
|
-// const reFloat = /[-+]?[0-9]*\.?[0-9]+/;
|
|
|
-// const rePosInt = /[0-9]+/;
|
|
|
-
|
|
|
function atomNameListMap(x: string) { return x.split(',').map(B.atomName); }
|
|
|
function listMap(x: string) { return x.split(',').map(x => x.replace(/^["']|["']$/g, '')); }
|
|
|
function rangeMap(x: string) {
|
|
@@ -44,19 +41,6 @@ function elementListMap(x: string) {
|
|
|
return x.split(',').map(B.struct.type.elementSymbol);
|
|
|
}
|
|
|
|
|
|
-// const sstrucDict: { [k: string]: string } = {
|
|
|
-// H: 'helix',
|
|
|
-// S: 'beta',
|
|
|
-// L: 'none'
|
|
|
-// };
|
|
|
-// function sstrucListMap(x: string) {
|
|
|
-// return {
|
|
|
-// flags: B.struct.type.secondaryStructureFlags(
|
|
|
-// x.toUpperCase().split('+').map(ss => sstrucDict[ss] || 'none')
|
|
|
-// )
|
|
|
-// };
|
|
|
-// }
|
|
|
-
|
|
|
export const macroproperties: PropertyDict = {
|
|
|
symbol: {
|
|
|
'@desc': 'chemical-symbol-list: list of 1- or 2-letter chemical symbols from the periodic table',
|