Jupyter notebook execution
Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/jupyter-notebook-execution
Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder
npx -y skills add HolobiomicsLab/asb-skill-collections --skill jupyter-notebook-executionAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 14 stars14 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when when you have three coordinated mass spectrometry data tables (quantification, metadata, spectral) ready for integrated preprocessing and statistical analysis, and you need to generate a standardized JSON artifact for downstream interactive exploration rather than static tabular outputs.
The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
8.7 KB, as published. Nobody here has run it
jupyter-notebook-execution
Summary
Execute Jupyter notebooks within a conda-managed Python environment to process mass spectrometry data (quantification tables, metadata, spectral data) through the msFeaST pipeline, producing JSON output suitable for interactive dashboard visualization.
When to use
When you have three coordinated mass spectrometry data tables (quantification, metadata, spectral) ready for integrated preprocessing and statistical analysis, and you need to generate a standardized JSON artifact for downstream interactive exploration rather than static tabular outputs.
When NOT to use
- Input data is already in JSON dashboard format—skip directly to dashboard loading.
- Windows operating system—msFeaST preprocessing is tested only on macOS and Linux; Windows support is still being developed.
- R dependencies fail to install or sessionInfo() does not confirm globaltest, dplyr, tibble, readr, listenv, survival, and Matrix at required versions—execution will fail without correct R environment.
Inputs
- quantification_table (numeric matrix, e.g., feature-by-sample abundance)
- metadata_table (sample annotations and experimental design)
- spectral_data (mass spectrometry spectral records)
- msfeast_pipeline.ipynb (preprocessing Jupyter notebook)
Outputs
- dashboard_data.json (JSON text file conforming to msFeaST dashboard schema)
- processed feature and metadata tables (intermediate notebook outputs)
How to apply
Create and activate a conda environment (Python 3.10 with R 4.3.3 and msFeaST dependencies) on macOS or Linux. Open the msfeast_pipeline notebook in the activated environment and populate the magenta-italicized user input fields with paths to your quantification, metadata, and spectral data files. Execute the notebook cells sequentially; the pipeline integrates the three data sources and exports a JSON text file conforming to the dashboard data schema. Validate that the resulting JSON contains required fields (inspectable by loading into msFeaST_Dashboard_bundle.html in a desktop browser) before proceeding to interactive visualization.
Related tools
- jupyter-notebook (Interactive notebook interface for executing preprocessing and pipeline cells with user-defined parameters)
- msFeaST (Python module providing the data integration and statistical processing workflow; installed via pip from repository) — https://github.com/kevinmildau/msfeast
- conda (Environment and dependency manager ensuring isolated, reproducible Python/R versions and package pinning) — https://conda.io/projects/conda/en/latest/user-guide/install/index.html
- R (v4.3.3) (Statistical runtime for globaltest and related bioinformatic packages invoked from notebook cells)
Examples
conda activate msfeast_environment && jupyter-notebook && # then open msfeast_pipeline_mushroom_type_comparison.ipynb and update filepaths in magenta italics, execute all cells
Evaluation signals
- JSON file is successfully written to the specified output path with non-zero file size.
- JSON validates against the msFeaST dashboard schema (can be opened and parsed by msFeaST_Dashboard_bundle.html without schema errors).
- Interactive dashboard displays loaded data in the 'dataview' tab, confirming required fields (feature identifiers, abundance values, sample metadata) are present and correctly formatted.
- R sessionInfo() executed before notebook launch confirms all six required packages (dplyr, tibble, readr, listenv, globaltest, survival) are loaded and at development/pinned versions.
- Notebook execution completes without RuntimeError or ImportError related to msFeaST, R integration, or data schema mismatches.
Limitations
- Tested and working only on macOS and Linux; Windows support is still in development—users on Windows should expect setup failures or incompatibilities.
- R package installation via rscript can be derailed by cached R paths if terminal was previously used; resolving requires closing and reopening the terminal and reactivating conda environment.
- Some IDE terminals (e.g., VSCode) may default into conda environments automatically, causing R/rscript path misalignment; safest practice is to use a fresh terminal and activate the environment explicitly.
- No changelog is available; version pinning and reproducibility guarantees are not formally documented.
- If globaltest or other R dependencies fail to install at required versions, the entire notebook execution will fail because msFeaST statistical functions depend on them; no fallback mode is available.
Evidence
- [readme] The jupyter-notebook pipeline produces the a text file in json format that can be interactively explored in the interactive dashboard: "The jupyter-notebook pipeline produces the a text file in json format that can be interactively explored in the interactive dashboard"
- [readme] Complete example of quantification table, metadata table, and spectral data processing required for msFeaST: "notebooks contain a complete example of quantification table, metadata table, and spectral data processing required for msFeaST"
- [readme] To make use of your own data, change the data filepath arguments to your own data file location and run the pipeline. Text in magenta italics font highlights required user input for the pipeline.: "To make use of your own data, change the data filepath arguments to your own data file location and run the pipeline. Text in magenta italics font highlights required user input"
- [readme] conda create --name msfeast_environment python=3.10 and conda activate to manage environment isolation: "conda create --name msfeast_environment python=3.10; conda activate msfeast_environment; conda install conda-forge::r-base=4.3"
- [readme] The current msFeaST pre-processing and pipeline workflow has been tested on macos and should work identically on linux operating systems. Windows support is currently being worked on.: "The current msFeaST pre-processing and pipeline workflow has been tested on macos and should work identically on linux operating systems. Windows support is currently being worked on"
- [readme] To avoid rscript command caching problems, we recommend closing the terminal after this step and reopening it, and re-entering conda activate msfeast_environment: "To avoid rscript command caching problems, we recommend closing the terminal after this step and reopening it, and re-entering conda activate msfeast_environment"
- [readme] pip install git+https://github.com/kevinmildau/msfeast.git installs the Python module and dependencies: "pip install "git+https://github.com/kevinmildau/msfeast.git" to install the msFeaST python module and any required Python dependencies"