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 longreadsum to v1.5.0 #53468

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions recipes/longreadsum/build.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
#!/bin/bash

# Build the C++ library

# Add the library path to the LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${PREFIX}/lib

# Ensure the lib directory exists
mkdir -p "${SRC_DIR}"/lib

# Generate the SWIG files
echo "Generating SWIG files..."
swig -c++ -python -outdir "${SRC_DIR}"/lib -I"${SRC_DIR}"/include -I"${PREFIX}"/include -o "${SRC_DIR}"/src/lrst_wrap.cpp "${SRC_DIR}"/src/lrst.i

# Generate the shared library
echo "Building the shared library..."
$PYTHON setup.py -I"${PREFIX}"/include -L"${PREFIX}"/lib install

# Create the src directory
mkdir -p "${PREFIX}"/src

# Copy source files to the bin directory
echo "Copying source files..."
cp -r "${SRC_DIR}"/src/*.py "${PREFIX}"/bin

# Copy the SWIG generated library to the lib directory
echo "Copying SWIG generated library..."
cp -r "${SRC_DIR}"/lib/*.py "${PREFIX}"/lib
cp -r "${SRC_DIR}"/lib/*.so "${PREFIX}"/lib

echo "Build complete."
42 changes: 26 additions & 16 deletions recipes/longreadsum/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set version = "1.3.1" %}
{% set sha256 = "eb4c7677d43d80d19ddbac11900ae3a14efd6f2a3c4cc8bbc08e063a81e0e1df" %}
{% set version = "1.5.0" %}
{% set sha256 = "fe3acc37bdd5e703033b9e370f635ab9fe06ba09fd69e01fc00bc70ff6d8395a" %}

package:
name: longreadsum
Expand All @@ -9,8 +9,15 @@ source:
url: https://github.com/WGLab/LongReadSum/archive/refs/tags/v{{ version }}.tar.gz
sha256: '{{ sha256 }}'

channels:
- conda-forge
- jannessp # for pod5
- bioconda
- defaults

build:
number: 3
number: 0
skip: true # [py2k]
entry_points:
- longreadsum = entry_point:main
run_exports:
Expand All @@ -21,33 +28,36 @@ requirements:
- {{ compiler('cxx') }}
- make
host:
- python
- python =3.9
- swig
- hdf5
- htslib
- zlib
- setuptools
- htslib =1.20
- ont_vbz_hdf_plugin # Contains HDF5 as a dependency as well
- jannessp::pod5
- jannessp::lib-pod5
run:
- python
- python =3.9
- numpy
- hdf5
- htslib
- ont_vbz_hdf_plugin
- bioconda::htslib =1.20
- plotly
- jannessp::pod5
- jannessp::lib-pod5
- pyarrow

test:
commands:
- longreadsum --help

commands:
- export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
- longreadsum --help
about:
home: https://github.com/WGLab/LongReadSum
license: MIT
summary: 'Long read sequencing data quality control tool'
summary: 'Long read sequencing quality control tool'
description: |
A fast and flexible QC tool for long read sequencing data.
dev_url: https://github.com/WGLab/LongReadSum
doc_url: https://github.com/WGLab/LongReadSum#readme

extra:
extra:
additional-platforms:
- linux-aarch64
- osx-arm64
Loading