Virtual Scanner
Virtual Scanner: MRI on a Browser - Published in JOSS (2019)
Science Score: 95.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 2 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
✓Committers with academic emails
2 of 10 committers (20.0%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
Keywords from Contributors
Scientific Fields
Repository
An end-to-end hybrid MR simulator/console
Basic Info
- Host: GitHub
- Owner: imr-framework
- License: agpl-3.0
- Language: Jupyter Notebook
- Default Branch: master
- Size: 145 MB
Statistics
- Stars: 71
- Watchers: 5
- Forks: 21
- Open Issues: 14
- Releases: 2
Topics
Metadata Files
README.md
Virtual Scanner
Virtual Scanner is an end-to-end hybrid Magnetic Resonance Imaging (MRI) simulator/console designed to be zero-footprint, modular, and supported by open-source standards.
This project is a winning response to the ISMRM 2019 Junior Fellow Challenge (Africa), which poses the task of boosting accessibility to MRI training resources for underserved areas such as sub-Saharan Africa. We designed Virtual Scanner to help develop local expertise in these areas so that sustained deployment of MRI hardware is possible. Importantly, Virtual Scanner will be continually developed as a research tool that provides functionalities for simulating and prototyping MRI acquisition methods as well as services for sharing computational methods and resources with researchers around the world. Please read our publication in the journal of open source software here.
Virtual Scanner consists of two modes: in Standard Mode, a console-like GUI allows users to perform virtual scans and conduct basic analysis; in Advanced Mode, modular simulation/analysis of the entire signal chain may be performed.
Quick Start
If you just want to get started with using Virtual Scanner:
1. Install Python 3.6.x.
2. Create and activate a virtual environment of your choice.
3. In your terminal: pip install virtual-scanner, and finally,
4. In macOS, run the command: virtualscanner; in Windows, run this longer command within the main folder where you created your virtual environment: python Lib/site-packages/virtualscanner/coms/coms_ui/coms_server_flask.py
The browser application should have started running. To access the browser app, there are two ways:
* Local hosting (only on the laptop running the script): go to the generated link (http://0.0.0.0:5000/) if you are a mac user, and this link (http://127.0.0.1:5000) if you are a windows user.
* Remote hosting : look up your IP address. Suppose it's 123.45.67.890, then you can go to (http://123.45.67.890:5000) to connect to the server remotely, either on the serving machine or different machines on the same network.
Now you can start playing with Virtual Scanner! Log in with your email address, select Standard or Advanced mode, and click "Begin Scan". Instructions for each tab are given in the Wiki.
Docker Start
This would be a good solution if you don't want to install the large number of dependencies to your host. We have tested Docker on Windows and Mac.
If you use a Windows 10 Pro system, first download Docker desktop and then run the following in the command line:
bash
$ docker run -p 5000:5000 imrframework/virtual-scanner:latest
This downloads the pre-built image from Docker. You can then open up your browser to 127.0.0.1:5000 to see the interface.
If you use a Windows 10 Home system, please use an alternate approach (clone the repository or pip install) because Docker isn't supported on this system and we have not succeeded in using the image with Docker Toolbox.
If you use a Mac, you can either download the image as described above or you can locally build a Docker container to run the application in the following way:
First, build the container from the Dockerfile:
bash
$ docker build -t virtualscanner .
Then you can run the container and bind port 5000 to expose the application to the host:
bash
$ docker run -p 5000:5000 virtualscanner
And open up your browser to 0.0.0.0:5000to see the interface. The container is not intended for a production deployment, but rather is appropriate for local usage.
Pro Start
If you want to hack around with the code:
1. Install Python 3.6.x.
2. Create and activate a virtual environment of your choice. Here's a tutorial if you are using the
PyCharm IDE, for example.
3. Clone the repo and cd into it.
4. pip install -e ..
5. Open the repo in your favourite IDE, hack around with the code.
6. Run virtualscanner/coms/coms_ui/coms_server_flask.py to run your changes.
Read the API documentation here and run the Python test scripts in each module with more options available than allowed on the GUI.
Standard Mode
- The Register page allows you to choose a phantom for simulation. Its format is similar to the form for entering information of the subject when conducting real scans. Choose the "Numerical" phantom for all simulations now.
- The Acquire page allows the user to choose either a Gradient Echo (GRE) or a Spin Echo (SE, with optional inversion recovery) sequence, enter the parameters, and simulate them on a cylindrical phantom ("Numerical") containing spheres with different T1, T2, and PD values.
- The Analyze page allows the user to load a series of data acquired in ISMRM/NIST phantom for T1 or T2 mapping and conduct curve fitting to obtain T1 and T2 maps. In addition, it can detect spheres in the phantom, a feature useful for comparing generated parameter values to literature values.
Advanced Mode
- The Tx (RF transmit) page allows one to calculate and plot SAR from pulseq .seq files. This feature is under development.
- The Rx (RF receive) page allows one to visualize time-domain MR signal, generated from an arbitrary grayscale image, and see the effects of using different demodulation frequencies and ADC sampling rate. This feature is under development.
- Other features, including phantom and sequence viewers and reconstruction methods, are in active development.
Known Issues
Please refer to the Known Issues document.
Contributing
If you would like to contribute to Virtual Scanner, please take a look at the Community Guidelines document.
Owner
- Name: iMR Framework
- Login: imr-framework
- Kind: user
- Location: New York
- Repositories: 12
- Profile: https://github.com/imr-framework
JOSS Publication
Virtual Scanner: MRI on a Browser
Authors
Columbia Magnetic Resonance Research Center, Columbia University in the City of New York, New York, NY, USA
Columbia Magnetic Resonance Research Center, Columbia University in the City of New York, New York, NY, USA
Columbia Magnetic Resonance Research Center, Columbia University in the City of New York, New York, NY, USA
Columbia Magnetic Resonance Research Center, Columbia University in the City of New York, New York, NY, USA
Columbia Magnetic Resonance Research Center, Columbia University in the City of New York, New York, NY, USA
Plum Grove Junior High, Palatine, IL, USA
Tags
Accessible Magnetic Resonance Imaging Web Application PulseqGitHub Events
Total
- Issues event: 1
- Watch event: 11
- Member event: 1
- Issue comment event: 2
- Fork event: 4
Last Year
- Issues event: 1
- Watch event: 11
- Member event: 1
- Issue comment event: 2
- Fork event: 4
Committers
Last synced: 5 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Gehua Tong | t****8@g****m | 186 |
| Enlin Qian | e****4@c****u | 87 |
| Keerthi Sravan Ravi | s****3@g****m | 68 |
| Marina Manso Jimeno | m****6@g****m | 56 |
| Sairam Geethanath | s****h@g****m | 45 |
| iMR Framework | 3****k | 3 |
| dependabot[bot] | 4****] | 1 |
| Vanessa Sochat | v****t@s****u | 1 |
| Mathieu Boudreau | e****0@g****m | 1 |
| Kristen Thyng | k****g@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 39
- Total pull requests: 31
- Average time to close issues: 16 days
- Average time to close pull requests: 6 months
- Total issue authors: 11
- Total pull request authors: 6
- Average comments per issue: 3.36
- Average comments per pull request: 1.06
- Merged pull requests: 6
- Bot issues: 0
- Bot pull requests: 25
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 2.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- mathieuboudreau (10)
- ellieaniosis (10)
- tonggehua (6)
- vsoch (5)
- sravan953 (2)
- asgaspar (1)
- ShannonZ (1)
- Neurophydin (1)
- Mmj94 (1)
- sammmore (1)
- qianenlin (1)
Pull Request Authors
- dependabot[bot] (25)
- vsoch (2)
- sairamgeethanath (1)
- mathieuboudreau (1)
- imr-framework (1)
- kthyng (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 38 last-month
- Total dependent packages: 1
- Total dependent repositories: 1
- Total versions: 14
- Total maintainers: 1
pypi.org: virtual-scanner
Virtual Scanner educational tool for MRI
- Homepage: https://github.com/imr-framework/virtual-scanner
- Documentation: https://virtual-scanner.readthedocs.io/
- License: License :: OSI Approved :: GNU Affero General Public License v3
-
Latest release: 2.0.0
published over 3 years ago
Rankings
Maintainers (1)
Dependencies
- Click ==7.0
- Flask ==1.0.2
- Jinja2 ==2.10.1
- Keras ==2.2.4
- Keras-Applications >=1.0.7
- Keras-Preprocessing ==1.0.9
- Markdown ==3.1
- MarkupSafe ==1.1.1
- Pillow >=6.0.0
- PyYAML ==5.1
- Werkzeug ==0.15.2
- absl-py ==0.7.1
- astor ==0.7.1
- cycler ==0.10.0
- gast ==0.2.2
- grpcio ==1.20.0
- h5py ==2.9.0
- itsdangerous ==1.1.0
- kiwisolver ==1.0.1
- matplotlib >=3.3.4
- mock ==2.0.0
- nibabel ==2.4.0
- numpy >=1.16.2
- opencv-python ==4.0.0.21
- pbr ==5.1.3
- protobuf ==3.7.1
- pydicom ==1.2.2
- pyparsing ==2.3.1
- pypulseq ==1.3.1.post1
- python-dateutil ==2.8.0
- scikit-image ==0.15.0
- scipy >=1.2.1
- selenium ==3.141.0
- six ==1.12.0
- tensorboard >=1.13.1
- tensorflow ==1.15.2
- tensorflow-estimator >=1.13.0
- termcolor ==1.1.0
- actions/checkout v1 composite
- actions/setup-python v1 composite
- actions/checkout v1 composite
- actions/setup-python v1 composite
- python 3.6.3 build