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 recipe for CRAN package locuszoomr #51580

Merged
merged 9 commits into from
Nov 16, 2024
9 changes: 9 additions & 0 deletions recipes/r-locuszoomr/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
export DISABLE_AUTOBREW=1
GiulioCentorame marked this conversation as resolved.
Show resolved Hide resolved
if [ ! -f DESCRIPTION ]; then
echo "Error: DESCRIPTION file not found"
exit 1
fi
mv DESCRIPTION DESCRIPTION.old || exit 1
grep -va '^Priority: ' DESCRIPTION.old > DESCRIPTION || exit 1
${R} CMD INSTALL --build . ${R_ARGS}
83 changes: 83 additions & 0 deletions recipes/r-locuszoomr/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{% set version = '0.3.5' %}

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

source:
url:
- {{ cran_mirror }}/src/contrib/locuszoomr_{{ version }}.tar.gz
- {{ cran_mirror }}/src/contrib/Archive/locuszoomr/locuszoomr_{{ version }}.tar.gz
sha256: 92c8bb3a84ceed82e3cf142129eb83c21a1eb780cd6c0fb4b084e099917c2c3d

build:
run_exports:
- {{ pin_subpackage("r-locuszoomr", max_pin="x.x") }}
noarch: generic
merge_build_host: True # [win]
number: 0

rpaths:
- lib/R/lib/
- lib/

requirements:
host:
- r-base
- bioconductor-annotationfilter
- bioconductor-biocgenerics
- bioconductor-genomeinfodb
- bioconductor-genomicranges
- bioconductor-iranges
- r-ldlinkr
- r-cowplot
- r-dplyr
- bioconductor-ensembldb
- r-gggrid
- r-ggplot2
- r-ggrepel
- r-memoise
- r-plotly
- r-rlang
- bioconductor-rtracklayer
- r-zoo

run:
- r-base
- bioconductor-annotationfilter
- bioconductor-biocgenerics
- bioconductor-genomeinfodb
- bioconductor-genomicranges
- bioconductor-iranges
- r-ldlinkr
- r-cowplot
- r-dplyr
- bioconductor-ensembldb
- r-gggrid
- r-ggplot2
- r-ggrepel
- r-memoise
- r-plotly
- r-rlang
- bioconductor-rtracklayer
- r-zoo

test:
commands:
- $R -e "library('locuszoomr')"
- $R -e "packageVersion('locuszoomr')"
- $R -e "help(package = 'locuszoomr')"

about:
home: https://github.com/myles-lewis/locuszoomr
license: GPL-3
summary: Publication-ready regional gene locus plots similar to those produced by the web interface
'LocusZoom' <https://my.locuszoom.org>, but running locally in R. Genetic or genomic
data with gene annotation tracks are plotted via R base graphics, 'ggplot2' or 'plotly',
allowing flexibility and easy customisation including laying out multiple locus
plots on the same page. It uses the 'LDlink' API <https://ldlink.nih.gov/?tab=apiaccess>
to query linkage disequilibrium data from the 1000 Genomes Project and can overlay
this on plots.
license_family: GPL3
license_file:
- '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'
Loading