Skip to content

Commit

Permalink
create corona_lineage_dynamics (#53522)
Browse files Browse the repository at this point in the history
* create corona_lineage_dynamics

* Update recipes/corona_lineage_dynamics/build.sh

Co-authored-by: Martin Grigorov <[email protected]>

* Update recipes/corona_lineage_dynamics/meta.yaml

Co-authored-by: Martin Grigorov <[email protected]>

* fixing errors by bio-conda

* fixing errors

* Fixed issues as per review comments

* Fixed issues as per review comments

* library link changed

* Fixed issues as per review comments

* Fixed issues as per review comments

* Fixed issues as per review comments

* Fixed issues as per review comments

* Fixed issues as per review comments

* Cleanup meta.yaml

* Update meta.yaml

* Remove the version range for r-base

For some reason conda-build does not like it:
```
conda.exceptions.InvalidVersionSpec: Invalid version '>=4': invalid character(s)
```

* Do not build aarch64 and arm64. r-binom is not yet available for them

---------

Co-authored-by: Martin Grigorov <[email protected]>
  • Loading branch information
hforoughmand and martin-g authored Feb 5, 2025
1 parent 83cd982 commit 14ad606
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 0 deletions.
23 changes: 23 additions & 0 deletions recipes/corona_lineage_dynamics/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

${CXX} --std=c++17 scripts/count_lineages_country.cpp -o scripts/count_lineages_country -lstdc++ -lboost_regex ${CXXFLAGS} ${LDFLAGS}

# Define the target directory
TARGET_DIR=$PREFIX/share/corona_lineage_dynamics

# Create the target directory
mkdir -p $TARGET_DIR

# Copy the entire repository to the target directory
cp -r * $TARGET_DIR/

# Create the proxy script in $PREFIX/bin
mkdir -p $PREFIX/bin
cat > $PREFIX/bin/corona_lineage_dynamics <<EOF
#!/bin/bash
bash $TARGET_DIR/SDPlots_lineages_local.sh "\$@"
EOF

# Make the proxy script executable
chmod +x $PREFIX/bin/corona_lineage_dynamics

101 changes: 101 additions & 0 deletions recipes/corona_lineage_dynamics/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{% set version = "0.1.5" %}

package:
name: corona_lineage_dynamics
version: {{ version }}

source:
url: https://github.com/hzi-bifo/corona_lineage_dynamics/releases/download/v{{ version }}/corona_lineage_dynamics-v{{ version }}.tgz
sha256: c8afa72a1645036b69772bb4d2a2e02372f1f5c72fe46e1ba6d215a26c805f5f

build:
number: 0
run_exports:
- corona_lineage_dynamics >=0.1.2,<0.2

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- make
- pkg-config
host:
- r-base >=4
- zlib
- r-mass
- r-matrix
- r-xml2
- r-systemfonts
- r-ragg
- r-pkgdown
- r-devtools
- r-binom
- r-plotly
- r-htmlwidgets
- r-countrycode
- r-doparallel
- r-dplyr
- r-foreach
- r-htmltools
- r-plyr
- r-rcpp
- r-rcurl
- r-readr
- r-stringr
- r-tictoc
- r-tidyr
- r-xtable
- ta-lib # ['osx']
- r-lifecycle
- r-scales
- r-withr
- r-knitr
- r-d3heatmap
- libboost-devel
run:
- ta-lib # ['osx']
- boost
- zlib
- r-base
- r-mass
- r-matrix
- r-xml2
- r-systemfonts
- r-ragg
- r-pkgdown
- r-devtools
- r-binom
- r-plotly
- r-htmlwidgets
- r-countrycode
- r-doparallel
- r-dplyr
- r-foreach
- r-htmltools
- r-plyr
- r-rcpp
- r-rcurl
- r-readr
- r-stringr
- r-tictoc
- r-tidyr
- r-xtable
- r-lifecycle
- r-scales
- r-withr
- r-knitr
- r-d3heatmap
test:
commands:
- $PREFIX/share/corona_lineage_dynamics/scripts/count_lineages_country -h
- Rscript -e "library(scales); library(evaluate); library(knitr); library(lifecycle); library(fs); library(glue); library(gtable); library(withr)"
- corona_lineage_dynamics -h


about:
home: https://github.com/hzi-bifo/corona_lineage_dynamics
dev_url: https://github.com/hzi-bifo/corona_lineage_dynamics
license: ASL
license_file: LICENSE.md
summary: Analyzing and visualizing pangolin lineages of GISAID metadata.
license_family: OTHER

0 comments on commit 14ad606

Please sign in to comment.