From 19a15a95fef2ae1c8ab332cb07702c665535cff4 Mon Sep 17 00:00:00 2001 From: Sam Ireland Date: Tue, 14 May 2019 15:01:32 +0100 Subject: [PATCH] Split specification --- specification/files.txt | 23 ++++++++++++++++++++++ specification/{spec.txt => models.txt} | 27 ++------------------------ specification/querying.txt | 6 ++++++ 3 files changed, 31 insertions(+), 25 deletions(-) create mode 100644 specification/files.txt rename specification/{spec.txt => models.txt} (93%) create mode 100644 specification/querying.txt diff --git a/specification/files.txt b/specification/files.txt new file mode 100644 index 00000000..91f0d5b4 --- /dev/null +++ b/specification/files.txt @@ -0,0 +1,23 @@ +File + code + title + deposition_date + classification + keywords + authors + + technique + source_organisms + expression_systems + missing_residues + + resolution + rvalue + rfree + + assembly_matrices + unit_cell + space_group + + models + model diff --git a/specification/spec.txt b/specification/models.txt similarity index 93% rename from specification/spec.txt rename to specification/models.txt index 65fd54cd..163e0b1b 100644 --- a/specification/spec.txt +++ b/specification/models.txt @@ -123,6 +123,8 @@ Atom mass --> mass based on element is_metal --> true if metal based on element + is_backbone --> based on atom name and het + is_sidechain --> based on atom name and het chain --> chain above model --> model above @@ -136,28 +138,3 @@ Atom rotate() --> rotates atom around axis trim() --> trims atom coordinates copy() --> creates copy of atom - - - -File - code - title - deposition_date - classification - keywords - authors - - technique - source_organisms - expression_systems - - resolution - rvalue - rfree - - assembly_matrices - unit_cell - space_group - - models - model diff --git a/specification/querying.txt b/specification/querying.txt new file mode 100644 index 00000000..92ab1d2d --- /dev/null +++ b/specification/querying.txt @@ -0,0 +1,6 @@ +Methods which return structures take parameters which can filter them + +property=x --> Only those with poperty value x +porperty__gt=x --> Only those where the numerical value of property is greater than x +property__regex=x --> Only those where the string value of property matches regex +structure__property__xyz=x --> Only those belonging to a structure whose property matches x when filtered