Skip to content

Commit

Permalink
Add recipe for CRAN package locuszoomr
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioCentorame committed Oct 23, 2024
1 parent e03a132 commit 845d318
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recipes/r-locuszoomr/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
export DISABLE_AUTOBREW=1
mv DESCRIPTION DESCRIPTION.old
grep -va '^Priority: ' DESCRIPTION.old > DESCRIPTION
${R} CMD INSTALL --build . ${R_ARGS}
78 changes: 78 additions & 0 deletions recipes/r-locuszoomr/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{% 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:
merge_build_host: True # [win]
number: 0

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

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

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

test:
commands:
- $R -e "library('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'

0 comments on commit 845d318

Please sign in to comment.