AssertionError: Since you listed nonprimary rois ({'g1(R)'}), please specify include_nonprimary=True

52 views
Skip to first unread message

Miranda D

unread,
Mar 13, 2024, 11:11:09 AM3/13/24
to neuPrint
Hi Stuart,

I have the same error as this github error:

When trying to view synapses in one compartment of the gamma lobe I get this error:
AssertionError: Since you listed nonprimary rois ({'g1(R)'}), please specify include_nonprimary=True

My code:

import pandas as pd
import numpy as np

import neuprint
from neuprint.queries import fetch_synapse_connections, fetch_neurons, fetch_mitochondria, fetch_synapses_and_closest_mitochondria
from neuprint import Client, NeuronCriteria as NC, SynapseCriteria as SC
c = Client('neuprint.janelia.org', dataset='hemibrain:v1.2.1', token='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Im1pcmlkeXNvbkBnbWFpbC5jb20iLCJsZXZlbCI6Im5vYXV0aCIsImltYWdlLXVybCI6Imh0dHBzOi8vbGg0Lmdvb2dsZXVzZXJjb250ZW50LmNvbS8tZVg2SDZmci16OGsvQUFBQUFBQUFBQUkvQUFBQUFBQUFBQUEvQU1adXVja1hGbC1RVGdnZ21mbC1XSW5jYjdKQWVkRHRVQS9zOTYtYy9waG90by5qcGc_c3o9NTA_c3o9NTAiLCJleHAiOjE3OTIxMDA1NzB9.GHs-QXzzPPsh9x-xY9B_HjlfC_alapF7KSoSd_TWzao')
c.fetch_version()
from neuprint.utils import tqdm

#inputs in gamma from PPL1-01
from neuprint import fetch_synapse_connections, SynapseCriteria as SC
criteria=SC(rois=['g1(R)'])

fetch_synapse_connections(source_criteria=None, target_criteria=393766777, synapse_criteria=criteria)

Thank you,
Miranda

Berg, Stuart

unread,
Mar 13, 2024, 11:13:50 AM3/13/24
to Miranda D, neuPrint
Hi Miranda,

Your code references 'g1(R)'.  Did you mean 'gL(R)'?

-Stuart


On Mar 13, 2024, at 11:11 AM, Miranda D <miri...@gmail.com> wrote:

External Email: Use Caution


--
You received this message because you are subscribed to the Google Groups "neuPrint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neuprint+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/neuprint/8df0911a-6e75-40ec-b18e-30b1fcb1f39bn%40googlegroups.com.

Berg, Stuart

unread,
Mar 13, 2024, 12:07:39 PM3/13/24
to Miranda D, neuPrint
Hi again Miranda,

Sorry, I misunderstood the problem.  I'm working on a fix.  Please keep an eye on that github issue for updates.

-Stuart
Reply all
Reply to author
Forward
0 new messages