-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into bump/regenie
- Loading branch information
Showing
20 changed files
with
950 additions
and
67 deletions.
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,13 @@ | ||
#!/bin/bash | ||
|
||
TGT="$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM" | ||
[ -d "$TGT" ] || mkdir -p $TGT | ||
[ -d "${PREFIX}/bin" ] || mkdir -p "${PREFIX}/bin" | ||
|
||
cd "${SRC_DIR}" | ||
mv jar/chord*.jar $TGT/chord.jar | ||
${R} CMD INSTALL --build src/chord/src/main/R/mutSigExtractor | ||
${R} CMD INSTALL --build src/chord/src/main/R/CHORD | ||
|
||
cp $RECIPE_DIR/chord.sh $TGT/chord | ||
ln -s $TGT/chord ${PREFIX}/bin/ |
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,69 @@ | ||
#!/bin/bash | ||
# hmftools CHORD executable shell script | ||
# https://github.com/hartwigmedical/hmftools/tree/master/chord | ||
set -eu -o pipefail | ||
|
||
export LC_ALL=en_US.UTF-8 | ||
|
||
# Find original directory of bash script, resolving symlinks | ||
# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in/246128#246128 | ||
SOURCE="${BASH_SOURCE[0]}" | ||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | ||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" | ||
SOURCE="$(readlink "$SOURCE")" | ||
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located | ||
done | ||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" | ||
|
||
JAR_DIR=$DIR | ||
ENV_PREFIX="$(dirname $(dirname $DIR))" | ||
# Use Java installed with Anaconda to ensure correct version | ||
java="$ENV_PREFIX/bin/java" | ||
|
||
# if JAVA_HOME is set (non-empty), use it. Otherwise keep "java" | ||
if [ -n "${JAVA_HOME:=}" ]; then | ||
if [ -e "$JAVA_HOME/bin/java" ]; then | ||
java="$JAVA_HOME/bin/java" | ||
fi | ||
fi | ||
|
||
# extract memory and system property Java arguments from the list of provided arguments | ||
# http://java.dzone.com/articles/better-java-shell-script | ||
default_jvm_mem_opts="-Xms512m -Xmx1g" | ||
jvm_mem_opts="" | ||
jvm_prop_opts="" | ||
pass_args="" | ||
for arg in "$@"; do | ||
case $arg in | ||
'-D'*) | ||
jvm_prop_opts="$jvm_prop_opts $arg" | ||
;; | ||
'-XX'*) | ||
jvm_prop_opts="$jvm_prop_opts $arg" | ||
;; | ||
'-Xm'*) | ||
jvm_mem_opts="$jvm_mem_opts $arg" | ||
;; | ||
*) | ||
if [[ ${pass_args} == '' ]] #needed to avoid preceeding space on first arg e.g. ' MarkDuplicates' | ||
then | ||
pass_args="$arg" | ||
else | ||
pass_args="$pass_args \"$arg\"" #quotes later arguments to avoid problem with ()s in MarkDuplicates regex arg | ||
fi | ||
;; | ||
esac | ||
done | ||
|
||
if [ "$jvm_mem_opts" == "" ]; then | ||
jvm_mem_opts="$default_jvm_mem_opts" | ||
fi | ||
|
||
pass_arr=($pass_args) | ||
if [[ ${pass_arr[0]:=} == com.hartwig.* ]] | ||
then | ||
eval "$java" $jvm_mem_opts $jvm_prop_opts -cp "$JAR_DIR/chord.jar" $pass_args | ||
else | ||
eval "$java" $jvm_mem_opts $jvm_prop_opts -jar "$JAR_DIR/chord.jar" $pass_args | ||
fi | ||
exit |
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,51 @@ | ||
{% set version = "2.1.0_beta" %} | ||
{% set sha256_jar = "26d0a40e20635c4b797d28e0c7819b1653c9f8fa28180b9a556215d22387968c" %} | ||
{% set sha256_src = "ed039e7b405130a1e52df71c3535c6a5ed8aab0f80724bc83df88ae14aeaa257" %} | ||
|
||
package: | ||
name: hmftools-chord | ||
version: '{{ version }}' | ||
|
||
source: | ||
- folder: jar | ||
url: https://github.com/hartwigmedical/hmftools/releases/download/chord-v{{ version }}/chord-{{ version }}.jar | ||
sha256: '{{ sha256_jar }}' | ||
- folder: src | ||
url: https://github.com/hartwigmedical/hmftools/archive/refs/tags/chord-v{{ version }}.tar.gz | ||
sha256: '{{ sha256_src }}' | ||
|
||
build: | ||
noarch: generic | ||
number: 0 | ||
run_exports: | ||
- {{ pin_subpackage("hmftools-chord", max_pin="x.x") }} | ||
|
||
requirements: | ||
host: | ||
- r-base | ||
- r-randomforest | ||
- r-stringr | ||
- bioconductor-bsgenome | ||
- bioconductor-bsgenome.hsapiens.ucsc.hg19 | ||
- bioconductor-bsgenome.hsapiens.ucsc.hg38 | ||
run: | ||
- openjdk >=8 | ||
- r-base | ||
- r-randomforest | ||
- r-stringr | ||
- bioconductor-bsgenome | ||
- bioconductor-bsgenome.hsapiens.ucsc.hg19 | ||
- bioconductor-bsgenome.hsapiens.ucsc.hg38 | ||
|
||
test: | ||
commands: | ||
- $R -e "library('CHORD')" | ||
- $R -e "library('mutSigExtractor')" | ||
- 'chord com.hartwig.hmftools.chord.ChordRunner -version | grep CHORD' | ||
|
||
about: | ||
home: https://github.com/hartwigmedical/hmftools/blob/master/chord/ | ||
license: GPL-3.0-only | ||
license_family: GPL3 | ||
license_file: LICENSE | ||
summary: Predict HRD using somatic mutations contexts |
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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/bin/bash | ||
|
||
make CXX="${CXX} ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS}" | ||
set -xe | ||
|
||
make -j ${CPU_COUNT} CXX="${CXX} ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS}" | ||
install -d "${PREFIX}/bin" | ||
install kmercamel "${PREFIX}/bin/" |
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
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
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,45 @@ | ||
{% set name = "patchify" %} | ||
{% set version = "0.2.3" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/patchify-{{ version }}.tar.gz | ||
sha256: 6cc409124f34ceee672f1931d818923f88f5116f323ac7bb9be7e6c5d0845502 | ||
|
||
build: | ||
noarch: python | ||
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation | ||
number: 0 | ||
run_exports: | ||
- {{ pin_subpackage('patchify', max_pin="x.x") }} | ||
|
||
requirements: | ||
host: | ||
- python >=3.7,<4.0 | ||
- poetry >=0.12 | ||
- poetry-core | ||
- pip | ||
run: | ||
- python >=3.7.0,<4.0.0 | ||
- numpy >=1.0.0,<2.0.0 | ||
|
||
test: | ||
imports: | ||
- patchify | ||
commands: | ||
- pip check | ||
requires: | ||
- pip | ||
|
||
about: | ||
home: https://github.com/dovahcrow/patchify.py | ||
summary: A library that helps you split image into small, overlappable patches, and merge patches back into the original image. | ||
license: MIT | ||
license_file: LICENSE | ||
|
||
extra: | ||
recipe-maintainers: | ||
- hexylena |
Oops, something went wrong.