Commit 7af6c016 authored by Sreenath Sasidharan Nair's avatar Sreenath Sasidharan Nair

Merge branch 'production_ready' into 'master'

PDBE-4162: Fixed residue range check for PRO accessions in superposition call

See merge request pdbe-kb/services/pdbe-graph-api!392
parents 958d0831 f9462c4c
......@@ -2924,7 +2924,7 @@ def get_superposition_api(uniprot_accession):
MATCH (:UniProt {ACCESSION:$uniprot_accession})<-[rel:IS_A_POLYPROTEIN_OF]-(u:UniProt)
WITH u, toInteger(rel.UNP_START) AS unpStart, toInteger(rel.UNP_END) AS unpEnd
MATCH (u)-[:HAS_STRUCTURAL_CLUSTER]->(cluster:StructuralCluster)
MATCH (cluster)-[:SEGMENT_START]->(startRes:UNPResidue), (cluster)-[:SEGMENT_END]->(endRes:UNPResidue) WHERE unpStart <= toInteger(startRes.ID) AND unpEnd >= toInteger(endRes.ID)
MATCH (cluster)-[:SEGMENT_START]->(startRes:UNPResidue), (cluster)-[:SEGMENT_END]->(endRes:UNPResidue) WHERE unpStart >= toInteger(startRes.ID) AND unpEnd <= toInteger(endRes.ID)
WITH cluster.ID AS clusterId, toInteger(startRes.ID) AS startResId , toInteger(endRes.ID) AS endResId,
[(cluster)<-[:IS_PART_OF]-(chain:Chain) | chain] AS chains,
[(cluster)-[:HAS_REPRESENTATIVE]->(repChain:Chain) | repChain.UNIQID][0] AS repChain
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment