catalystneuro / ndx-ibl Goto Github PK
View Code? Open in Web Editor NEWCustom extension for special IBL neurodata types. Used in the ibl-lab-to-nwb project.
License: Other
Custom extension for special IBL neurodata types. Used in the ibl-lab-to-nwb project.
License: Other
IblSessionData
session_data.subject - > Subject.subject_id
session_data.procedures -> NWBFile.session_description
session_data.number -> NWBFile.session_id
session_data.narrative -> NWBFile.notes
session_data.end_type needs to be a date time (Low priority)
IblSubject should keep the name=“subject” of the Subject class it inherited from
Subject.death_date should be a datetime (Low priority)
subject_data = {'age': str(subject_table.get('age_weeks', '')),
'subject_id' : subject_table.get('id', ''),
'description': subject_table.get('description', ''),
'genotype': ','.join(subject_table.get('genotype'), []),
'sex': subject_table.get('sex', ''),
'species': subject_table.get('species', ''),
'weight': str(subject_table.get('reference_weight', '')),
'date_of_birth': datetime.datetime.strptime(subject_table.get('birth_date'), format='%Y-%m-%d')
'nickname': subject_table.get('nickname', ''),
'url': subject_table.get('url', ''),
"responsible_user": subject_table.get('responsible_user', ''),
"death_date": subject_table.get('death_date', ''),
"litter": subject_table.get('litter', ''),
"strain": subject_table.get('strain', ''),
"source": subject_table.get('source', ''),
"line": subject_table.get('line', ''),
"projects": subject_table.get('projects', ''),
"session_projects": subject_table.get('session_projects', ''),
"lab": subject_table.get('lab', ''),
"alive": subject_table.get('alive', False),
"last_water_restriction": subject_table.get('last_water_restriction', null),
"expected_water": subject_table.get('expected_water', np.nan),
"remaining_water": subject_table.get('remaining_water', np.nan),
'weighings': [str(i) for i in subject_table['IBLSubject']['weighings']],
'water_administrations': [str(i) for i in subject_table['water_administrations']]
}
Don't use empty strings. use None
instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.