fafbseg.synapses.query_connections

fafbseg.synapses.query_connections(pre_ids, post_ids, score_thresh=30, ret='brief', downcast=True, db=None)[source]

Fetch synaptic connections between given segment IDs.

Parameters
  • pre/post_ids (int | list of int) – Pre- and postsynaptic segment IDs to search for.

  • score_thresh (int, optional) – If provided will only return synapses with a cleft score of this or higher. The default of 30 is used in the original Buhmann et al paper.

  • ret ("brief" | "full") – If “full” will return all fields. If “brief” will omit some of the less relevant fields.

  • downcast (bool) – If True, will downcast some columns to a more reasonable (and compact) datatype (usually int/float64 -> int/float32).

  • db (str, optional) – Must point to SQL database containing the synapse data. If not provided will look for a BUHMANN_SYNAPSE_DB environment variable.

Returns

Return type

pd.DataFrame