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

Update verkko to v1.0 release #34374

Merged
merged 17 commits into from
Apr 21, 2022
1 change: 1 addition & 0 deletions azure-pipeline-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ jobs:

export OSTYPE="darwin"
export CI="true"
export HOME=`pwd`
bioconda-utils build recipes config.yml \
--anaconda-upload \
--git-range ${BUILD_SOURCEVERSION}~1 ${BUILD_SOURCEVERSION} \
Expand Down
1 change: 1 addition & 0 deletions azure-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ stages:

export OSTYPE="darwin"
export CI="true"
export HOME=`pwd`
bioconda-utils build recipes config.yml \
--git-range origin/"$SYSTEM_PULLREQUEST_TARGETBRANCH" HEAD
displayName: Test
Expand Down
12 changes: 11 additions & 1 deletion recipes/verkko/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/bin/bash
set -e
set -ex

# taken from yacrd recipe, see: https://github.com/bioconda/bioconda-recipes/blob/2b02c3db6400499d910bc5f297d23cb20c9db4f8/recipes/yacrd/build.sh
if [ "$(uname)" == "Darwin" ]; then

# apparently the HOME variable isn't set correctly, and circle ci output indicates the following as the home directory
export HOME=`pwd`
echo "HOME is $HOME"
mkdir -p $HOME/.cargo/registry/index/
fi


pushd src
make clean && make -j$CPU_COUNT
Expand Down
15 changes: 8 additions & 7 deletions recipes/verkko/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,29 @@ package:
version: {{ version }}

source:
url: https://github.com/marbl/{{ name }}/releases/download/v{{ version }}_beta2/{{ name }}-v{{ version }}.tar.gz
md5: f8b71dfbcfcdfa31fce5c14f75f41ef7
url: https://github.com/marbl/{{ name }}/releases/download/v{{ version }}/{{ name }}-v{{ version }}.tar.gz
md5: 3cb085c0e015f01f61be67ee80da632c

patches:
- version.patch

build:
number: 2
skip: True # [osx]
number: 3

requirements:
build:
- make
- llvm-openmp # [osx]
- libgomp # [linux]
- {{ compiler('cxx') }}
- rust
host:
- gsl
run:
- python >=3.7
- snakemake-minimal >=6.0.0
- graphaligner >=1.0.15
- mbg >=1.0.9
- snakemake-minimal >=7.0.0
- graphaligner >=1.0.16
- mbg >=1.0.10

test:
requires:
Expand Down
13 changes: 11 additions & 2 deletions recipes/verkko/run_test.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
#!/bin/bash
# stop on error
set -eu -o pipefail
set -exu -o pipefail

# taken from yacrd recipe, see: https://github.com/bioconda/bioconda-recipes/blob/2b02c3db6400499d910bc5f297d23cb20c9db4f8/recipes/yacrd/build.sh
if [ "$(uname)" == "Darwin" ]; then

# apparently the HOME variable isn't set correctly, and circle ci output indicates the following as the home directory
export HOME=`pwd`
echo "HOME is $HOME"
mkdir -p $HOME/.cargo/registry/index/
fi

# download and run a small assembly

rm -f ./hifi.fastq.gz ./ont.fastq.gz
curl -L https://obj.umiacs.umd.edu/sergek/shared/ecoli_hifi_subset24x.fastq.gz -o hifi.fastq.gz
curl -L https://obj.umiacs.umd.edu/sergek/shared/ecoli_ont_subset50x.fastq.gz -o ont.fastq.gz
verkko -d asm --correct-hash-bits 22 --hifi ./hifi.fastq.gz --nano ./ont.fastq.gz
verkko -d asm --no-correction --hifi ./hifi.fastq.gz --nano ./ont.fastq.gz

if [ ! -s asm/assembly.fasta ]; then
echo "Error: verkko assembly test failed!"
Expand Down
4 changes: 2 additions & 2 deletions recipes/verkko/version.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ index 5f33ff4..25c2285 100644
# Perform post-processing on global variables as needed.
DEFS := $(addprefix -D,${DEFS})
INCDIRS := $(addprefix -I,$(call CANONICAL_PATH,${INCDIRS}))
-VERSION := verkko release v1.0 beta2
+VERSION := bioconda $(PKG_NAME) bioconda $(PKG_VERSION) beta2
-VERSION := verkko release v1.0
+VERSION := bioconda $(PKG_NAME) bioconda $(PKG_VERSION)

# Define the "all" target (which simply builds all user-defined targets) as the
# default goal.