fafbseg.synapses.query_synapses¶
-
fafbseg.synapses.
query_synapses
(seg_ids, pre=True, post=True, score_thresh=30, ret='brief', downcast=True, db=None)[source]¶ Fetch synapses for given segment IDs.
- Parameters
seg_ids (int | list of int) – Segment IDs to fetch synapses for.
pre/post (bool) – Whether to fetch pre- and/or postsynapses.
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