From aa5c39d8bbe3d3a2971a8d0c9d90c9a3c44849d5 Mon Sep 17 00:00:00 2001 From: Romain Feron Date: Wed, 28 Aug 2019 18:45:03 +0200 Subject: [PATCH] Smudgeplot (#17140) * First attempt at recipe * Added R package dependencies * Added numpy dependency * Added scipy * Fixed test * Testing suggestions from PR * Final polishing after PR comments - passed local tests * Get the R stuff in the right place to ensure the pinning works --- recipes/smudgeplot/build.sh | 10 +++++++++ recipes/smudgeplot/meta.yaml | 39 ++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 recipes/smudgeplot/build.sh create mode 100644 recipes/smudgeplot/meta.yaml diff --git a/recipes/smudgeplot/build.sh b/recipes/smudgeplot/build.sh new file mode 100644 index 0000000000000..758b23ba13f0e --- /dev/null +++ b/recipes/smudgeplot/build.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +mkdir -p $PREFIX/bin + +# Install the current codebase as an R package +Rscript install.R + +# Install executables +install -C exec/smudgeplot.py $PREFIX/bin +install -C exec/smudgeplot_plot.R $PREFIX/bin diff --git a/recipes/smudgeplot/meta.yaml b/recipes/smudgeplot/meta.yaml new file mode 100644 index 0000000000000..fd60335389929 --- /dev/null +++ b/recipes/smudgeplot/meta.yaml @@ -0,0 +1,39 @@ +{% set version = "0.2.1" %} + +package: + name: smudgeplot + version: {{ version }} + +build: + number: 0 + +source: + url: https://github.com/KamilSJaron/smudgeplot/archive/v{{ version }}.tar.gz + sha256: 2445564d12a852dcd5ade521b522cabde0df23512687b4ab5b46f73f9b315608 + +requirements: + build: + - {{ compiler('c') }} + - make + host: + - r-devtools + - r-argparse + - r-base + - r-viridis + run: + - python >=3.6 + - r-base + - r-viridis + - r-argparse + - numpy + - scipy + +test: + commands: + - smudgeplot.py --version 2>&1 | grep 'Running' + +about: + home: https://github.com/KamilSJaron/smudgeplot + license: Apache-2.0 + license_file: LICENSE + summary: Inference of ploidy and heterozygosity structure using whole genome sequencing data