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

recipe for scROSHI package based on CRAN repo #52783

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions recipes/r-scroshi/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# 'Autobrew' is being used by more and more packages these days
# to grab static libraries from Homebrew bottles. These bottles
# are fetched via Homebrew's --force-bottle option which grabs
# a bottle for the build machine which may not be macOS 10.9.
# Also, we want to use conda packages (and shared libraries) for
# these 'system' dependencies. See:
# https://github.com/jeroen/autobrew/issues/3
export DISABLE_AUTOBREW=1

# R refuses to build packages that mark themselves as Priority: Recommended
mv DESCRIPTION DESCRIPTION.old
grep -va '^Priority: ' DESCRIPTION.old > DESCRIPTION
# shellcheck disable=SC2086
${R} CMD INSTALL --build . ${R_ARGS}

# Add more build steps here, if they are necessary.

# See
# https://docs.conda.io/projects/conda-build
# for a list of environment variables that are set during the build process.
54 changes: 54 additions & 0 deletions recipes/r-scroshi/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{% set version = '1.0.0.0' %}

package:
name: r-scroshi
version: {{ version|replace("-", "_") }}

source:
url:
- {{ cran_mirror }}/src/contrib/scROSHI_{{ version }}.tar.gz
- {{ cran_mirror }}/src/contrib/Archive/scROSHI/scROSHI_{{ version }}.tar.gz
sha256: 332ed379c27d4becfae31f164e6267850cd927dbb357c3a77de1f320d65baf96

build:
number: 0
run_exports:
- {{ pin_subpackage("r-scroshi", max_pin="x") }}
rpaths:
- lib/R/lib/
- lib/
noarch: generic

requirements:
host:
- r-base ==4.3.2
- bioconductor-s4vectors ==0.40.2
- bioconductor-singlecellexperiment ==1.24.0
- bioconductor-summarizedexperiment ==1.32.0
- bioconductor-limma ==3.58.1
- r-uwot ==0.1.16

run:
- r-base ==4.3.2
- bioconductor-s4vectors ==0.40.2
- bioconductor-singlecellexperiment ==1.24.0
- bioconductor-summarizedexperiment ==1.32.0
- bioconductor-limma ==3.58.1
- r-uwot ==0.1.16

test:
commands:
- $R -e "library('scROSHI')" # [not win]
- "\"%R%\" -e \"library('scROSHI')\"" # [win]

about:
home: https://CRAN.R-project.org/package=scROSHI
license: MIT
summary: 'scROSHI: robust supervised hierarchical identification of single cells'
license_family: MIT
license_file:
- '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
- LICENSE
extra:
identifiers:
- doi:10.1093/nargab/lqad058
Loading