Skip to content
Snippets Groups Projects
Commit 391d6da8 authored by David Sehnal's avatar David Sehnal
Browse files

wip Model Server

parent d3ebab03
No related branches found
No related tags found
No related merge requests found
// TODO
\ No newline at end of file
...@@ -77,7 +77,7 @@ const QueryMap: { [id: string]: Partial<QueryDefinition> } = { ...@@ -77,7 +77,7 @@ const QueryMap: { [id: string]: Partial<QueryDefinition> } = {
}, },
'symmetryMates': { 'symmetryMates': {
niceName: 'Symmetry Mates', niceName: 'Symmetry Mates',
description: 'Computes crystal symmetry mates within the specified radius', description: 'Computes crystal symmetry mates within the specified radius.',
query: () => Queries.generators.all, query: () => Queries.generators.all,
structureTransform(p, s) { structureTransform(p, s) {
return StructureSymmetry.builderSymmetryMates(s, p.radius).run(); return StructureSymmetry.builderSymmetryMates(s, p.radius).run();
...@@ -85,11 +85,18 @@ const QueryMap: { [id: string]: Partial<QueryDefinition> } = { ...@@ -85,11 +85,18 @@ const QueryMap: { [id: string]: Partial<QueryDefinition> } = {
}, },
'assembly': { 'assembly': {
niceName: 'Assembly', niceName: 'Assembly',
description: 'Computes crystal symmetry mates within the specified radius', description: 'Computes structural assembly.',
query: () => Queries.generators.all, query: () => Queries.generators.all,
structureTransform(p, s) { structureTransform(p, s) {
return StructureSymmetry.builderSymmetryMates(s, p.radius).run(); return StructureSymmetry.buildAssembly(s, '' + p.name).run();
}, },
params: [{
name: 'name',
type: QueryParamType.String,
defaultValue: '1',
exampleValues: ['1'],
description: 'Assembly name.'
}]
}, },
'residueInteraction': { 'residueInteraction': {
niceName: 'Residues Inside a Sphere', niceName: 'Residues Inside a Sphere',
......
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