incf-nidash / nidmresults Goto Github PK
View Code? Open in Web Editor NEWRead/Write NIDM-Results in Python
Home Page: http://nidm.nidash.org/specs/nidm-results.html
License: MIT License
Read/Write NIDM-Results in Python
Home Page: http://nidm.nidash.org/specs/nidm-results.html
License: MIT License
As discussed with @mih at cmaumet#2 (comment), we need to implement "how to properly inject an ID namespace in the NIDM context. But for now search&replace is good enough."
nidmresults lacks documentation. It would be great to create an examples
folder containing jupyter notebooks.
The first example could be a demonstration of how to read a NIDM pack and retrieve the statistic map (example datasets are available at: https://neurovault.org/collections/1425/).
Check if whenever we create a new PR in this repo we could run the FSL's exporter tests to check that both modules are still compatible.
The python file https://github.com/incf-nidash/nidm/blob/master/nidm/nidm-results/test/TestResultDataModel.py should be moved over here as all the NIDM-Results exporter repositories now depend on the nidmresults
module.
After discussion at NIDM sprint we decided to implement easy to use functions for common NIDM Results queries. This should lower the access barrier for new developer. Those functions can live in the nidmresults
package. They could immediately replace some sparql queries in NeuroVault and nidmviewer (maintained by @vsoch).
get_statmaps()
https://github.com/NeuroVault/NeuroVault/blob/0ba7f42a11d703ee608317fe7f0c24fd62d48fc5/neurovault/apps/statmaps/nidm_results.py#L64
as well as https://github.com/vsoch/nidmviewer/blob/882f5201354135ff4dc6ec8739621a94341d0fef/nidmviewer/sparql.py#L43
(this could be split into more functions if that makes sense)
get_coordinates()
https://github.com/vsoch/nidmviewer/blob/882f5201354135ff4dc6ec8739621a94341d0fef/nidmviewer/sparql.py#L28
nidm-results.owl
(released versions) should be included in the nidmresults library so that we can look up labels and avoid dependency on nidm
repository.
Let's make our project more welcoming!
First steps, adding:
Some resources: Open source guide, Mozilla open leadership training: write a great project readme and README checklist.
As agreed in incf-nidash/nidm-specs#378, provn serialisation should be removed.
Reading is quite slow... is there anything we can do to have read faster. Maybe by updating the queries / checking which query if run when / relying on the JSON when available.
get_excursion_set_maps() returns a dictionary and get_statistic_maps() returns a list
(instead of nidm version in the exported document).
I would like to suggest a modification to owl_reader.py. Right now any modifications to the nidm-experiment owl or import files fails due to the string cast here. The files pass the Travis checking if the cast to string is removed. This was discussed awhile ago, but it was never changed. IIRC the reason for the cast was not clear at the time. @cmaumet is there any reason not to make this modification?
(so that we can version control differences in exported files)
Just discussed with @nicholst: when an error is thrown (e.g. no number of subjects for a group analysis), the created temporary nidm folder should be deleted before returning.
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.