-
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 Gapseq #47417
Merged
Merged
Add Gapseq #47417
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c2fde19
init
cmkobel 5fde5e3
passes bioconda-utils lint
cmkobel 6ce29f5
works too
cmkobel 4af805b
polishing
cmkobel 27a8ba0
final test
cmkobel 1172052
ensure correct pinning
cmkobel 675aedd
minor tweaks
cmkobel fa6ec10
Merge branch 'master' into gapseq
cmkobel a665327
test was too long.
cmkobel 5a72846
amend
cmkobel 914ba7e
work on tests after package has been published
cmkobel 6fe72b3
updates according to bgruening's comments
cmkobel 7113d80
r-chnosz is now available on conda-forge
cmkobel b8c8bba
amend
cmkobel 2fa38ca
reset build number
cmkobel 5cc1933
Update recipes/gapseq/meta.yaml
cmkobel c411e3d
Merge branch 'master' into gapseq
cmkobel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Installation instructions taken from https://github.com/jotech/gapseq/blob/master/docs/install.md#conda April 2024 by cmkobel | ||
|
||
# Copy contents to conda prefix | ||
mkdir -p ${PREFIX}/gapseq/ | ||
cp ISSUE_TEMPLATE.MD LICENSE README.md gapseq gapseq_env.yml ${PREFIX}/gapseq/ | ||
cp -r dat/ docs/ src/ toy/ unit/ ${PREFIX}/gapseq/ | ||
|
||
|
||
# Installing the CRAN archived sybilSBML package here requires a bunch of debugging to set the lib paths in R. That time is probably better spend fixing the package (sybilSBML) in the first place. So here is a quick workaround that makes this process a bit easier for the user. SybilSBML is not strictly necessary so I think the priority should be to get the main package (gapseq) working first. | ||
echo '''#!/usr/bin/env bash | ||
wget https://cran.r-project.org/src/contrib/Archive/sybilSBML/sybilSBML_3.1.2.tar.gz | ||
R CMD INSTALL --configure-args=" \ | ||
--with-sbml-include=$CONDA_PREFIX/include \ | ||
--with-sbml-lib=$CONDA_PREFIX/lib" sybilSBML_3.1.2.tar.gz | ||
rm sybilSBML_3.1.2.tar.gz | ||
''' > ${PREFIX}/gapseq/src/install_archived_sybilSBML.sh | ||
chmod +x ${PREFIX}/gapseq/src/install_archived_sybilSBML.sh | ||
# Now the user can "easily" install this after installing the bioconda package with install_archived_sybilSBML.sh (This file will be linked to bin/). | ||
|
||
|
||
# Download reference sequence data | ||
# To install the database, we must call the installed file as it uses its own path to place the files correctly. | ||
bash ${PREFIX}/gapseq/src/update_sequences.sh | ||
|
||
|
||
# Final setup - Make binary available | ||
mkdir -p ${PREFIX}/bin | ||
ln -sr ${PREFIX}/gapseq/gapseq ${PREFIX}/bin/ | ||
ln -sr ${PREFIX}/gapseq/src/update_sequences.sh ${PREFIX}/bin/ | ||
ln -sr ${PREFIX}/gapseq/src/install_archived_sybilSBML.sh ${PREFIX}/bin/ | ||
|
||
|
||
# --- | ||
|
||
|
||
# Build at home with (before submitting to azure): | ||
# conda activate bioconda-utils | ||
# bioconda-utils lint --git-range master | ||
# bioconda-utils build --mulled-test --git-range master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{% set version = "1.2" %} | ||
|
||
package: | ||
name: gapseq | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/jotech/gapseq/archive/refs/tags/v{{ version}}.tar.gz | ||
sha256: 061799f8e0406662450dd3d8d61d824220670fb23231895deecd490a5cbdf7cf | ||
|
||
build: | ||
number: 0 | ||
run_exports: | ||
- {{ pin_subpackage('gapseq', max_pin="x") }} | ||
skip: True # [osx] | ||
|
||
requirements: | ||
run: | ||
- r-base | ||
- perl | ||
- parallel | ||
- gawk | ||
- sed | ||
- grep | ||
- bc | ||
- git | ||
- coreutils | ||
- wget | ||
- openssl | ||
- barrnap | ||
- bedtools | ||
- exonerate | ||
- glpk | ||
- hmmer | ||
- blast | ||
- libsbml | ||
- r-data.table | ||
- r-stringr | ||
- r-stringi | ||
- r-getopt | ||
- r-doParallel | ||
- r-foreach | ||
- r-r.utils | ||
- r-sybil | ||
- r-biocmanager | ||
- bioconductor-biostrings | ||
- r-jsonlite | ||
- r-renv | ||
- r-glpkapi | ||
- r-rcurl | ||
- r-httr | ||
- r-chnosz | ||
build: | ||
- wget | ||
|
||
test: | ||
commands: | ||
- gapseq test | ||
|
||
about: | ||
home: https://github.com/jotech/gapseq | ||
summary: Informed prediction and analysis of bacterial metabolic pathways and genome-scale networks | ||
license_family: GPL | ||
license: AGPL-3.0-only | ||
license_file: LICENSE | ||
extra: | ||
skip-lints: | ||
- should_be_noarch_generic | ||
recipe-maintainers: | ||
- cmkobel | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
why is it not noarch: generic?
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.
Because the linter gives this error, even though it is not noarch_generic (doesn't work on macos).