Skip to content
Snippets Groups Projects
Commit bf5f26cb authored by yakomaxa's avatar yakomaxa
Browse files

Remove comment-out lines. Moved un-bracketed residue name to the supported feature

parent ccbcef7e
No related branches found
No related tags found
No related merge requests found
...@@ -30,10 +30,10 @@ const general = { ...@@ -30,10 +30,10 @@ const general = {
' [ALA] and [VAL]', ' [ALA] and [VAL]',
// within with whitespaces // within with whitespaces
'within ( 5 , [HEM] ) ', 'within ( 5 , [HEM] ) ',
],
unsupported: [
// un-braketed residue name // un-braketed residue name
'LEU and ILE', 'LEU and ILE',
],
unsupported: [
// un-parenthesized residue index // un-parenthesized residue index
'100-120', '100-120',
// within in the head or the middle of sentence // within in the head or the middle of sentence
......
...@@ -8,9 +8,6 @@ import { MolScriptBuilder } from '../../../mol-script/language/builder'; ...@@ -8,9 +8,6 @@ import { MolScriptBuilder } from '../../../mol-script/language/builder';
const B = MolScriptBuilder; const B = MolScriptBuilder;
import { PropertyDict } from '../types'; 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 atomNameListMap(x: string) { return x.split(',').map(B.atomName); }
function listMap(x: string) { return x.split(',').map(x => x.replace(/^["']|["']$/g, '')); } function listMap(x: string) { return x.split(',').map(x => x.replace(/^["']|["']$/g, '')); }
function rangeMap(x: string) { function rangeMap(x: string) {
...@@ -44,19 +41,6 @@ function elementListMap(x: string) { ...@@ -44,19 +41,6 @@ function elementListMap(x: string) {
return x.split(',').map(B.struct.type.elementSymbol); 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 = { export const macroproperties: PropertyDict = {
symbol: { symbol: {
'@desc': 'chemical-symbol-list: list of 1- or 2-letter chemical symbols from the periodic table', '@desc': 'chemical-symbol-list: list of 1- or 2-letter chemical symbols from the periodic table',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment