Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand tables to include other NWB items (e.g., pharmacology, slices) #9

Open
CBroz1 opened this issue Jan 11, 2022 · 0 comments
Open
Labels
enhancement New feature or request NWB

Comments

@CBroz1
Copy link
Contributor

CBroz1 commented Jan 11, 2022

  • NWB items discussed as part of element-lab PR 11 could be included in element-session.
  • Viruses, in particular, could be fully specified by a separate schema, example here.
#example table definition
pharmacology = ''  : varchar(2048) # Drugs used, how/when administered
slices=''          : varchar(2048) # If slicing, preparation thickness, orientation, temperature, and bath solution
surgery=''         : varchar(2048) # Description of surger(y/ies), who performed, when relative to other events
->virus.Viruses='' : varchar(2048) # ID, source, date made, injection loc, volume

# example export feature
def SessionGeneral_to_nwb_dict(session_key=None):
    """
    Generate a dictionary object containing relevant project information
        (e.g., experimental description, related publications, etc.).
    :param session_key: Key specifying one entry in element_session.Session
    :return: dictionary with NWB parameters
    """
    if session_key is not None:
        sess_info = (session.Session & session_key).fetch1()
        return dict(
            pharmacology=sess_info.get('pharmacology', ''),
            slices=sess_info.get('slices', ''),
            source_script=sess_info.get('repositoryurl', ''),
            surgery=sess_info.get('surgery', ''),
            virus=sess_info.get('virus', '') # needs more specification
        )
    else: return {}
@CBroz1 CBroz1 added the enhancement New feature or request label Jan 11, 2022
@CBroz1 CBroz1 self-assigned this May 4, 2022
@CBroz1 CBroz1 added this to the NIH U24 Year 3 milestone May 4, 2022
@CBroz1 CBroz1 added the NWB label May 6, 2022
@CBroz1 CBroz1 modified the milestones: 2022Q2, 2023Q2+ May 6, 2022
@kabilar kabilar removed this from the 2023Q2+ milestone Feb 18, 2023
@CBroz1 CBroz1 removed their assignment Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request NWB
Projects
None yet
Development

No branches or pull requests

2 participants