How to get the proportions of primary and secondary structure at injections site

I am trying to retrieve the percentages that can be found on the AAV Injection Site section, when using the Atlas.

Can I retrieve the proportion of injection at primary and secondary structures, as data in the allensdk library or somewhere else?
Or does it have to be extracted from special calculations, and if so how?

Thanks!

1 Like

Hi,
Thank you for your question. The information is in the Allensdk library, and it can be retrieved with some relatively simple calculations. One scientist on the team has some code that she is willing to share to facilitate those calculations. The code is python and in a Jupyter notebook. If you are willing to try this approach, let me know and I can send you the notebook.
Thank you.

Hi Susan!

Thank you for your answer, I’m glad to know I can retrieve the info and I would love to be able to look at the code for that, it would really be helpful for me!
Thanks again

Hi

Please email me at susans
Then @
Followed by alleninstitute.org

I will then send you the file. I cannot do that in this forum.

Thank you,

Susan

Hi Susan,
I’m also looking for the same data @LevArth asked for.
Is it possible to have the Python code as well?

thank you very much!

best,
Davide

Hi Davide,

Are you referring to this question:
"I am trying to retrieve the percentages that can be found on the AAV Injection Site section, when using the Atlas.

Can I retrieve the proportion of injection at primary and secondary structures, as data in the allensdk library or somewhere else?
Or does it have to be extracted from special calculations, and if so how?"

I want to make sure that I understand what you are asking for.

Thank you,

Susan

Hi Susan,

yes exactly. Given some specific experiments, I’d like to have the information on the percentage of the injection in the various areas in the inj_site (both the so-called primary and secondary injection areas).

thanks!

Best,
Davide

Thanks, @Susan.Sunkin for the notebook you sent me via email, with the information on retrieving the injection fraction.

I have a question regarding your code related to calculating structure_unionizes. In the snippet below, you select Isocortex IDs as structure_ids :

isocortex = structure_tree.get_structures_by_name(['Isocortex'])[0]
# find how much signal there was in injection sites in a given experiment
# take a look at what we know about an experiment with a posteromedial visual area injection
structure_unionizes = mcc.get_structure_unionizes([ 301618122 ],
                                                  is_injection=True,
                                                  structure_ids=isocortex,
                                                  include_descendants=True)

If I understand correctly, this operation retrieves connection data for experiment #301618122 as a source, projecting to the Isocortex areas, correct? I’m curious if there’s a specific reason for selecting this subset.

I attempted a similar approach using structure_ids=None , which should retrieve projections to all brain areas. However, I found that it also included a small percentage of injection into ID: 1009, which is part of the fiber tract, with a low percentage of injection (0.0568%). I’m wondering why this was excluded from the injection_structures in the all_experiments dataframe.

Your clarification on this matter would be greatly appreciated, as I need to define a function to calculate the percentage of injection for multiple experiments and won’t be able to check each one manually.

Thank you again for the help!

Davide