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

Add mumemto recipe #53000

Merged
merged 7 commits into from
Jan 2, 2025
Merged
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
19 changes: 19 additions & 0 deletions recipes/mumemto/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

mkdir build
cd build
cmake ..
make -j"${CPU_COUNT}" install
cd ..

mkdir -p $PREFIX/bin
mkdir -p $SP_DIR/mumemto
mkdir -p $PREFIX/share/licenses/$PKG_NAME

cp build/mumemto $PREFIX/bin/mumemto_exec
cp build/bin/newscanNT.x $PREFIX/bin/
cp mumemto/*.py $SP_DIR/mumemto/
cp mumemto/mumemto $PREFIX/bin/
cp LICENSE $PREFIX/share/licenses/$PKG_NAME/
chmod +x $PREFIX/bin/mumemto
touch $SP_DIR/mumemto/__init__.py
53 changes: 53 additions & 0 deletions recipes/mumemto/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{% set name = "mumemto" %}
{% set version = "1.1.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/vikshiv/mumemto/archive/refs/tags/v{{ version }}.tar.gz
sha256: 189591f01677c806982bdb63b87d15431afbaf32f226ca706d6b02847bac8ae2

build:
number: 0
pkg_format: '.conda'
run_exports:
- {{ pin_subpackage(name, max_pin='x.x') }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- {{ pin_subpackage(name, max_pin='x.x') }}
- {{ pin_subpackage(name, max_pin='x') }}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understand it, changing to 'x' would mean that this package would get pinned to the major version? I anticipate that "minor" (.X.) versions will be substantial and affect usage, so I would rather pin to the second version number. Is this a correct understanding? Thank you.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I apologize, I re-read the pull request information. My evidence for the minor version breakages is the current update. From v1.0.0 (not on bioconda) to v1.1.0 (first version on bioconda), the usage (flag parameters) and output format are significantly different and not interoperable. However, this is still an initial release so we want to keep the v1 tag. Thus our minor version updates will be substantial and break usage potentially, while our path updates will be for bug fixes.


requirements:
build:
- {{ compiler('cxx') }}
- cmake
- make
host:
- python
run:
- python
- matplotlib-base
- numpy
- tqdm
- numba
- plotly

test:
commands:
- mumemto --help
- mumemto viz --help
- mumemto coverage --help
- mumemto inversions --help
imports:
- mumemto.utils

about:
home: https://github.com/vikshiv/mumemto
summary: Finding maximal unique matches across pangenomes
description: |
Mumemto is a tool for finding a variety of matches across collections of sequences like a pangenome.
It includes a visualization tool for visualizing pangenome synteny.
license: GPL-3.0-only
license_file: LICENSE

extra:
recipe-maintainers:
- vikshiv