Antimony for Visual Studio CodeRepository | Issues | Code Examples | Antimony Reference | telluriumThe Antimony extension adds language support for Antimony to Visual Studio Code for building models in Systems Biology. The currently available version 0.2 is a public beta version developed by Longxuan Fan, Sai Anish Konanki, Eva Liu, Steve Ma, Gary Geng, Dr. Joseph Hellerstein, and Dr. Herbert Sauro at the University of Washington. Dr. Joseph Hellerstein is responsible for future releases, and please feel free to contact him if you have any questions. Please note that the current release does not support the complete Antimony grammar. While most grammar has been supported, more will be included in future releases. Flux balance constraints and submodeling are not supported currently. InstallationYou need Visual Studio Code and nothing else. 1. Install Visual Studio Code Download it from code.visualstudio.com and open it. 2. Install the Antimony Extension Pack Click the Extensions icon in the left sidebar, search for Antimony Extension Pack, and click Install. (We recommend installing the extension pack directly so you have full access to all of the features.)
3. Open a model file Open any The first time you do this, Antimony downloads the components it needs and shows a progress notification. It takes a minute or two, happens only once, and you can keep working in other files while it runs. Now, right clicking anywhere in the .ant file will display a list of features that can be accessed by users.
Supported systems
Intel Macs are not set up automatically. The extension still works on them, but you will need to install Python 3.10 yourself and point the extension at it. See Advanced setup. If something goes wrongOpen the Command Palette (Ctrl + Shift + P for Windows, Cmd + Shift + P for Mac), run Antimony: Reinstall Components, and reload when prompted. This clears the downloaded components and fetches them again. If your institution blocks downloads from GitHub, setup will fail. When it does, the error offers an Install from file... option: it copies a download link to your clipboard, and you can download that file any way you can and then select it. The file is checked before it is installed. If you used an earlier version of this extension, it created a folder called Advanced setupIf you manage your own Python environment, set FeaturesThe extension provides many convenient features for developing biological models with the Antimony language in tellurium. The current release focuses on the areas below. 1. SBML to Antimony Conversion and Editing
When an SBML file is opened, the editor will automatically convert the SBML file to the Antimony format. User can edit the Antimony file, and save the changes made to the Antimony model back to the original SBML file. ⚠️ Note: this feature can be disabled in settings
2. Browsing BiomodelsThe extension allows a user to browse for different biomodels from the BioModels database. The user can query for models with a string or a model number. The chosen model will be displayed in Antimony, which can be saved as SBML or Antimony.
3. Syntax recognition and highlights
⚠️ Note: the default syntax highlighting for Antimony is provided by a separate extension Antimony Syntax, and is also available in the Antimony Extension Pack 4. Automatic annotation creation with database recommendationThe extension can recognize different types of variables, and recommend databases based on the OMEX metadata specification.
5. Hover messages
6. Code navigation
7. Error detectionThe extension supports various warning and error detections to help modelers debug their model during development. Our design principle for whether an issue should be a warning or an error entirely depends on the logic of tellurium. Our extension will mark the subject as an error if tellurium throws an error while rendering the model, with a red underline. An example would be calling a function that does not exist (usually due to a typo, which is extremely common during development. Read more in my thesis).
On the other hand, certain issues are not errors in tellurium, but we thought it would be worthwhile to have the user's attention. For example, missing initial values for species and overriding a previously defined value.
The extension supports a wide range of errors and warnings, and we plan to support more in the upcoming releases. Read more in issues. 8. Converter between Antimony and SBML
9. Antimony/SBML preview
10. Automatic creation of rate laws
11. Annotation recommender for species
12. Highlight indication for annotated species
Known IssuesI have an open issue for manually curating models from BioModels to test the extension. Please feel free to contribute and submit issues.
Release Notes0.3.0
0.2.10
0.2.4
0.2.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
|