-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 pantax #50983
add pantax #50983
Changes from 11 commits
5268cf5
26c947f
3ea2ff2
cf7ac6c
dea4574
5b16876
fe19494
15006dd
fa9a0c5
dfb06a8
1bef665
3825b81
4a53b89
60d398c
80218be
10c9f3a
9b9dd6c
41021f1
83fa662
ac057c5
34e2e53
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ "$(uname)" == "Darwin" ]; then | ||
cp -rf $SRC_DIR $PREFIX | ||
else | ||
martin-g marked this conversation as resolved.
Show resolved
Hide resolved
zwh82 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cd ${SRC_DIR}/gurobi11 | ||
${PYTHON} -m pip install gurobipy-11.0.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it is not allowed to install dependencies with Pip like this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where does it install it, by the way ? It looks like it is no inside There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why? Are there any rules that restrict this installation behavior? I have already installed the artifact locally and tested it sucessfully, and PanTax is works well. Gurobipy, as a Python package, should be installed in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. About the question of |
||
rm gurobipy-11.0.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | ||
martin-g marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
mkdir -p ${PREFIX}/bin/tools | ||
cd ${SRC_DIR}/vg | ||
cp vg* ${PREFIX}/bin/tools/vg | ||
chmod +x ${PREFIX}/bin/tools/vg | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Improve vg installation process with error handling and specific file copying The current vg installation process lacks error handling and uses wildcards for copying, which might include unnecessary files. Consider the following improvements: mkdir -p "${PREFIX}/bin/tools" || exit 1
cd "${SRC_DIR}/vg" || exit 1
cp vg vg_* "${PREFIX}/bin/tools/" || exit 1
chmod +x "${PREFIX}/bin/tools/vg"* || exit 1 This ensures that the script fails if any critical operation fails and only copies the necessary files. Adjust the 🧰 Tools🪛 Shellcheck
|
||
|
||
cd ${SRC_DIR}/scripts | ||
chmod +x pantax | ||
chmod +x data_preprocessing | ||
cp ${SRC_DIR}/scripts/pantax ${SRC_DIR}/scripts/data_preprocessing ${PREFIX}/bin | ||
cp ${SRC_DIR}/scripts/*py ${PREFIX}/bin | ||
zwh82 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
cd ${SRC_DIR}/tools/fastix | ||
cargo install fastix --root ./ | ||
zwh82 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cp ${SRC_DIR}/tools/fastix/bin/fastix ${PREFIX}/bin/tools | ||
martin-g marked this conversation as resolved.
Show resolved
Hide resolved
zwh82 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{% set name = "pantax" %} | ||
{% set version = "1.0.1" %} | ||
|
||
package: | ||
name: {{ name }} | ||
version: {{ version }} | ||
|
||
source: | ||
- url: https://github.com/LuoGroup2023/PanTax/releases/download/v{{ version }}/{{ name }}.tar.gz | ||
sha256: c14a46b41f580cf39ad502049d267cd31bbfd4dc05028215cc669c0e52f58ce7 | ||
|
||
- url: https://files.pythonhosted.org/packages/07/0f/6039cf6e22f9cbec57cdedff103949e4856c18fd2cb714bc70cdc8b52941/gurobipy-11.0.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please require this as a dependency and do not pip install them There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gurobipy can be install with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can use only dependencies from |
||
sha256: 164e72462c2f1a705fcec73acc060aa639e745827bfe877714ff7b2ccabc5237 | ||
folder: gurobi11 | ||
|
||
- url: https://github.com/vgteam/vg/releases/download/v1.52.0/vg | ||
sha256: 07776b51aa6494b45982e4134eb84005ddc743e81c67e61fa52bff211d81777c | ||
folder: vg | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you instead require VG in the requirements section? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is impossible. The requirement PGGB works with vg 1.40, but I need updated versions (vg 1.52) in other parts of my codes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://anaconda.org/bioconda/vg provides a newer version |
||
|
||
build: | ||
skip: True # [osx] | ||
number: 0 | ||
run_exports: | ||
- {{ pin_subpackage(name, max_pin="x.x") }} | ||
zwh82 marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Review pin_subpackage directive and remove trailing space. The build section is generally well-defined. However, consider the following points:
Consider updating the run_exports:
- {{ pin_subpackage(name, max_pin="x") }} This change allows for minor version updates while still maintaining compatibility. 🧰 Tools🪛 yamllint
|
||
|
||
requirements: | ||
build: | ||
- {{ compiler('rust') }} | ||
host: | ||
- python ==3.10 | ||
- pip | ||
run: | ||
- python =3.10 | ||
martin-g marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- samtools =1.19.2 | ||
- bcftools =1.19 | ||
- htslib =1.19.1 | ||
- pggb =0.5.4 | ||
- graphaligner =1.0.17 | ||
- h5py =3.10.0 | ||
- pandas =2.2.0 | ||
- tqdm =4.66.1 | ||
- numpy =1.26.3 | ||
- networkx =3.2.1 | ||
- pyarrow =14.0.2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Review dependency version constraints. The run requirements section is comprehensive, but there are some points to consider:
Consider relaxing version constraints where appropriate to improve maintainability while preserving compatibility. 🧰 Tools🪛 yamllint
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Review dependency version constraints and remove trailing spaces. The requirements section is comprehensive, but there are some points to consider:
Here's an example of how you might adjust the Python version constraint: host:
- python >=3.10,<3.11
- pip
run:
- python >=3.10,<3.11
# Other dependencies... Consider applying similar adjustments to other dependencies where appropriate. 🧰 Tools🪛 yamllint
|
||
|
||
test: | ||
commands: | ||
- pantax -h | ||
zwh82 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
about: | ||
home: https://github.com/LuoGroup2023/PanTax | ||
license: GPL-3.0-or-later | ||
zwh82 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
summary: Strain-level taxonomic classification of metagenomic data using pangenome graphs | ||
|
||
extra: | ||
skip-lints: | ||
- should_be_noarch_python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The meta.yaml says to skip OSX