MyNixOS website logo
Description

Mass-Spectra Prediction Using the FIORA Model.

Provides a wrapper for the python module 'FIORA' as well as a 'shiny'-App to facilitate data processing and visualization. 'FIORA' allows to predict Mass-Spectra based on the SMILES code of chemical compounds. It is described in the Nature Communications article by Nowatzky (2025) <doi:10.1038/s41467-025-57422-4>.

{fioRa} 0.3.7

StaticBadge CRANstatus R-CMD-check Codecov testcoverage StaticBadge

FIORA is an in silico fragmentation algorithm designed to predict tandem mass spectra (MS/MS) with high accuracy. Using a graph neural network, FIORA models bond cleavages, fragment intensities, and estimates retention times (RT) and collision cross sections (CCS).

The original model and prediction algorithm is implemented in Python and can be found at its GitHub Repo. The full description of the algorithm is published in a Nature Communications article.

The R package {fioRa} provides a wrapper for FIORA, to either run the Python script using the R function run_script() or start a GUI (Shiny-App) using the R function run_app().

Installation

You can install the development version of {fioRa} from GitHub.

install.packages("devtools")
devtools::install_github("janlisec/fioRa")

Before first use you need to set up a python installation and a conda environment fiora which can be achieved from within R with the help of the reticulate package and a convenience function.

fioRa::install_fiora()
#> No valid 'default_path' provided, using reticulate::miniconda_path 'C:/Users/jlisec/AppData/Local/r-miniconda'.
#> $os
#> [1] "Windows"
#> 
#> $python
#> [1] "C:\\Users\\jlisec\\AppData\\Local\\r-miniconda\\envs\\fiora\\python.exe"
#> 
#> $script
#> [1] "C:\\Users\\jlisec\\AppData\\Local\\r-miniconda\\envs\\fiora\\Scripts\\fiora-predict"

Run

Now, you can launch the application as a Shiny-App.

fioRa::run_app()

Alternatively, you can use the exported function run_script() to work in the R command line directly. This will accept R styled input parameters, generate an appropriate temporary FIORA input file, process it, and return an R styled list including the predicted MS/MS spectrum.

x <- data.frame(
  Name = "Example_0",
  SMILES = "CC1=CC(=O)OC2=CC(OS(O)(=O)=O)=CC=C12",
  Precursor_type = "[M-H]-",
  CE = 17,
  Instrument_type = "HCD"
)
fioRa::run_script(x = x, annotation = TRUE)
#> No valid 'default_path' provided, using reticulate::miniconda_path 'C:/Users/jlisec/AppData/Local/r-miniconda'.
#> $Example_0
#> $Example_0$TITLE
#> [1] "Example_0"
#> 
#> $Example_0$SMILES
#> [1] "CC1=CC(=O)OC2=CC(OS(O)(=O)=O)=CC=C12"
#> 
#> $Example_0$FORMULA
#> [1] "C10H8O6S"
#> 
#> $Example_0$PRECURSOR_MZ
#> [1] "254.99688252391005"
#> 
#> $Example_0$PRECURSORTYPE
#> [1] "[M-H]-"
#> 
#> $Example_0$COLLISIONENERGY
#> [1] "17.0"
#> 
#> $Example_0$INSTRUMENTTYPE
#> [1] "HCD"
#> 
#> $Example_0$COMMENT
#> [1] "\"In silico generated spectrum by FIORA OS v1.0.0\""
#> 
#> $Example_0$spec
#>          mz         int                           SMILES  adduct  formula
#> 1  78.94844 0.013833499                      O=[SH](=O)O [M-3H]-    H2O3S
#> 2  79.95681 0.002825602                      O=[SH](=O)O [M-2H]-    H2O3S
#> 3 175.03897 0.899893463           Cc1cc(=O)oc2cc(O)ccc12  [M-H]-  C10H8O3
#> 4 254.99688 0.102497801 Cc1cc(=O)oc2cc(OS(=O)(=O)O)ccc12  [M-H]- C10H8O6S

About

You are reading the doc about version 0.3.7 compiled on 2026-01-23 13:28:55.965608.

Metadata

Version

0.3.7

License

Unknown

Platforms (78)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows