-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 r-saccharis #51468
Open
AlexSCFraser
wants to merge
36
commits into
bioconda:master
Choose a base branch
from
saccharis:rsaccharis
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+69
−0
Open
Add r-saccharis #51468
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
cb93e7e
Add recipe for saccharis 2.0 dev18 build 1 to bioconda
AlexSCFraser f6f773d
updated to use git tag
AlexSCFraser e647f0b
Merge branch 'master' into saccharis
AlexSCFraser d37cc1b
updated to use a python package generated from setuptools build, with…
AlexSCFraser 25078ad
Merge remote-tracking branch 'origin/saccharis' into saccharis
AlexSCFraser ae1285b
lowercased hash, since it's case-sensitive
AlexSCFraser a7ddfe6
added filename as "fn: saccharis-{{ version }}.tar.gz"
AlexSCFraser ebbdbc4
removed filename since bioconda considers it an error
AlexSCFraser 3e3a965
update url link
AlexSCFraser 4696ace
update sha256
AlexSCFraser e68ac62
remove unneeded comments
AlexSCFraser a5b62b4
remove tests which write files
AlexSCFraser f2ff867
remove tests which write files, with comment
AlexSCFraser 675e10e
Merge branch 'master' into saccharis
AlexSCFraser 9ce1b21
Merge branch 'saccharis' of https://github.com/saccharis/bioconda-rec…
AlexSCFraser 83b518b
add new release data to bioconda recipe
AlexSCFraser 93dc1ee
Merge branch 'master' into saccharis
AlexSCFraser 7e31b96
change build number to zero to satisfy bioconda linter
AlexSCFraser a383bb2
Merge remote-tracking branch 'origin/saccharis' into saccharis
AlexSCFraser 68d2dec
Merge branch 'master' into saccharis
AlexSCFraser 9ab5ebd
add blast dependency
AlexSCFraser 12f9814
Merge remote-tracking branch 'origin/saccharis' into saccharis
AlexSCFraser 678ec9e
Merge branch 'master' into saccharis
AlexSCFraser 84a1857
add run_exports breaking change behaviour
AlexSCFraser e8bbcb9
Merge branch 'master' of https://github.com/bioconda/bioconda-recipes
AlexSCFraser ccce12d
add r-saccharis package to bioconda-recipes
AlexSCFraser d5b5f11
add run_exports to r-saccharis
AlexSCFraser cfc4f4e
Merge branch 'master' into rsaccharis
AlexSCFraser cebb1b2
fix meta.yaml brackets
AlexSCFraser ff358fe
Merge remote-tracking branch 'origin/rsaccharis' into rsaccharis
AlexSCFraser b62d03e
remove numpy spec
AlexSCFraser c9f6de1
Merge branch 'master' into rsaccharis
AlexSCFraser 07d93d6
update licence identifier
AlexSCFraser cb3324a
Merge remote-tracking branch 'origin/rsaccharis' into rsaccharis
AlexSCFraser 938cd94
try commenting out magicfor from host because build server doesn't ha…
AlexSCFraser 8d253b5
add pre-link.sh to add r channel
AlexSCFraser 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,2 @@ | ||
#!/bin/bash | ||
$R CMD INSTALL --build . |
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,2 @@ | ||
r_base: | ||
- 3.6.3 |
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,64 @@ | ||
{% set version = "1.0.4" %} | ||
{% set name = "r-saccharis" %} | ||
{% set build_number = 0%} | ||
{% set filehash = "F02EC69008F688440D7D4230751D1A8C9501F24F2382F399317591C4005DF19F"%} | ||
|
||
package: | ||
name: '{{ name|lower }}' | ||
version: '{{ version }}' | ||
|
||
source: | ||
url: | ||
- 'https://github.com/saccharis/rsaccharis/releases/download/{{ version }}/rsaccharis_{{ version }}.tar.gz' | ||
sha256: {{ filehash|lower}} | ||
|
||
build: | ||
noarch: generic | ||
number: {{ build_number }} | ||
rpaths: | ||
- lib/R/lib/ | ||
- lib/ | ||
run_exports: | ||
- {{ pin_subpackage("r-saccharis", max_pin="x.x") }} | ||
|
||
requirements: | ||
host: | ||
- r-base | ||
- r-jsonlite | ||
- r-ape | ||
- r-stringr | ||
# - r-magicfor | ||
- r-knitr | ||
- r-dplyr | ||
- r-magrittr | ||
- r-rcolorbrewer | ||
- r-ggnewscale | ||
- r-ggplot2 | ||
- bioconductor-ggtree | ||
run: | ||
- r-base | ||
- r-jsonlite | ||
- r-ape | ||
- r-stringr | ||
- r-magicfor | ||
- r-knitr | ||
- r-dplyr | ||
- r-magrittr | ||
- r-rcolorbrewer | ||
- r-ggnewscale | ||
- r-ggplot2 | ||
- bioconductor-ggtree | ||
|
||
test: | ||
commands: | ||
- 'Rscript -e "library(rsaccharis)"' | ||
|
||
about: | ||
home: 'https://github.com/saccharis/rsaccharis' | ||
license: 'GPL-3.0-or-later' | ||
license_family: GPL | ||
summary: 'A rendering package for creating phylogenetic trees from SACCHARIS .json and .tree files, in the R statistical computing language.' | ||
description: 'This package will use metadata .json and .tree files output from SACCHARIS v2 to generate annotated phylogenetic tree PDF files. | ||
Highly customizable, as the formatting of the tree is done using ggplot2. Of course plotting functions can easily be manipulated as desired. | ||
To use, call A_load_data() and B_plots_all() and follow prompts. Our default plots used for publication are domain_ECno_numeric.' | ||
license_file: LICENSE.md |
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 @@ | ||
conda config --append channels r | ||
Oops, something went wrong.
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.
🛠️ Refactor suggestion
Consider improving error handling and idempotency.
While the current implementation works, it could be improved to handle errors and avoid duplicate entries in the conda config.
Consider refactoring the script as follows:
This refactored version:
set -e
to exit on any error.🧰 Tools
🪛 Shellcheck
Add a shebang to improve portability.
The script is missing a shebang, which could lead to inconsistent behavior across different environments.
Add the following shebang at the beginning of the file:
+#!/bin/bash conda config --append channels r
📝 Committable suggestion
🧰 Tools
🪛 Shellcheck