Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sipros #50631

Closed
wants to merge 16 commits into from
24 changes: 24 additions & 0 deletions recipes/sipros/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
MIT License

Copyright (c) 2023 Phase Technician XYZ

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Code written for the MSToolkit uses the Apache License, Version 2.0. All 3rd
party software included in the MSToolkit library retains its original license.
9 changes: 9 additions & 0 deletions recipes/sipros/Raxport.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
mono $DIR/Raxport.exe $@
16 changes: 16 additions & 0 deletions recipes/sipros/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
set -e

mkdir -p "$PREFIX/bin"
chmod u+x bin/*
cp -r bin/* "$PREFIX/bin"

cp -r EnsembleScripts "$PREFIX"
cp -r V4Scripts "$PREFIX"

cp -r configTemplates "$PREFIX"

cp $RECIPE_DIR/Raxport.sh "$PREFIX/bin/Raxport"
chmod +x "$PREFIX/bin/Raxport"

ln -s "$PREFIX"/EnsembleScripts/sipros_psm_tabulating.py "$PREFIX"/bin/sipros_psm_tabulating.py
ln -s "$PREFIX"/V4Scripts/sipros_peptides_filtering.py "$PREFIX"/bin/sipros_peptides_filtering.py
65 changes: 65 additions & 0 deletions recipes/sipros/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{% set name = "sipros" %}
{% set version = "4.01" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/thepanlab/Sipros4/releases/download/{{ version }}/siprosRelease.zip
sha256: 10030671b94a8a2ab354396178f35c30a8e8e0c633864533690c1ff285906c9c

build:
noarch: generic
number: 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noarch ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback.

I tried noarch: generic here -- without success.

But in my intuition noarch makes no sense, because the package ships binaries which will only work on linux (in addition to some auxiliary python and R scripts).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case you need to add:

extra:
  skip-lints:
    - should_be_noarch_generic

run_exports:
- {{ pin_subpackage('sipros', max_pin="x") }}

requirements:
host:
- python <3
- numpy
- scikit-learn ==0.20.3
- mono
- r-base
- r-stringr ==1.5
- r-tidyr ==1.3
- bioconductor-biostrings
run:
- python <3
- numpy
- scikit-learn ==0.20.3
- mono
- r-base
- r-stringr ==1.5
- r-tidyr ==1.3
- bioconductor-biostrings

test:
commands:
- configGenerator -h
- SiprosEnsembleOMP --help
- SiprosV4OMP --help
- Raxport -h
- python $CONDA_PREFIX/EnsembleScripts/sipros_psm_tabulating.py -v
- python $CONDA_PREFIX/V4Scripts/sipros_peptides_filtering.py -v

about:
home: https://github.com/thepanlab/Sipros4
license: MIT
# currently include in the recipe folder because from the release (https://github.com/thepanlab/Sipros4/issues/3)
license_file: LICENSE
summary: "Tools for stable isotopic mass spectrometry-based metaproteomics"
description: |
"Tools for stable isotopic mass spectrometry-based metaproteomics research developed by Sipros team. These include Raxport, SiprosV4, SiprosEnsemble and some python / R scripts."

extra:
recipe-maintainers:
- bernt-matthias
- yi-xiong
skip-lints:
- should_be_noarch_generic
- should_not_be_noarch_source
identifiers:
- biotools:sipros
- doi:10.1186/s40168-024-01866-1
Loading