You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For reference, query for purging patient nodes with no samples attached:
MATCH (p:Patient)<-[:IS_ALIAS]-(pa:PatientAlias)
OPTIONAL MATCH (p)-[:HAS_SAMPLE]->(s:Sample) // using OPTIONAL MATCH so patients without samples are included
WITH p, pa, COUNT(s) AS sampleCount
WHERE sampleCount = 0
DETACH DELETE p, pa // using DETACH to delete p-pa edges as well
TODO
The text was updated successfully, but these errors were encountered: