PDBE-4072: Fixed issue with pdbe_pages annotations call, filtered few more annotations

parent 84c09b59
......@@ -870,7 +870,7 @@ def get_annotations(pdb_id, entity_id):
query = """
MATCH (entry:Entry {ID:$pdb_id})-[:HAS_ENTITY]->(entity:Entity {ID:$entity_id})-[:HAS_PDB_RESIDUE]->(pdb_res:PDBResidue)<-[res_rel:FUNPDBE_ANNOTATION_FOR {CHAIN_LABEL:entity.BEST_CHAIN_ID}]-(fun_group:FunPDBeResidueGroup)-[:FUNPDBE_RESIDUE_GROUP_OF]->(fun_entry:FunPDBeEntry)
WHERE NOT fun_entry.DATA_RESOURCE IN ["FoldX", "3Dcomplex"]
WHERE NOT fun_entry.DATA_RESOURCE IN ["FoldX", "3Dcomplex","MetalPDB","ChannelsDB","POPScomp_PDBML","Missense3D"]
WITH DISTINCT fun_entry.DATA_RESOURCE AS data_resource, fun_group.ORDINAL_ID AS ordinal_id, fun_group.LABEL AS group_label, fun_entry.RESOURCE_ENTRY_URL AS resource_url, toInteger(pdb_res.ID) AS pdb_res_id, pdb_res.CHEM_COMP_ID AS pdb_res_code, res_rel.CONFIDENCE_CLASSIFICATION AS conf_level, res_rel.CONFIDENCE_SCORE AS conf_score, res_rel.RAW_SCORE AS raw_score ORDER BY toInteger(pdb_res_id)
RETURN DISTINCT data_resource, ordinal_id, group_label, resource_url, pdb_res_id AS pdb_residue, pdb_res_code AS pdb_residue_code, conf_level, conf_score, raw_score ORDER BY pdb_res_id
"""
......
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