Skip to content

FindBlob

Chaunte W. Lacewell edited this page Apr 17, 2023 · 1 revision

FindBlob Command

Works in a similar manner as FindEntity with the exception of returning blobs.

Parameters

  • [optional] _ref: local id to be used as reference for a given entity.
  • [optional] unique: [True or False]. Indicates whether a single element is expected to match that condition.

Blocks

  • [optional] results
  • [optional] constraints
  • [optional] link

If limit (m) is provided, the number of entries returned will be n <= m (which is the actually matched quantity)

Examples

Find a blob based on some of its properties (patient_id)

query = {
    "FindBlob": {
        "constraints" : {
            "patient_id": [ "==", "TCGA-02-0070" ]
        },
        "result": {
            "list": ["file", "length"],
            "limit": 1,
        }
    }
}
response, response_arr = db.query([query])
Clone this wiki locally