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

blockclust #12111

Merged
merged 20 commits into from
Nov 17, 2018
Merged
Show file tree
Hide file tree
Changes from 15 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
7 changes: 7 additions & 0 deletions recipes/blockclust/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sed -i.bak "s/CXX=g++//" Makefile
make
mkdir -p ${PREFIX}/bin
mkdir -p ${PREFIX}/share/blockclust_data
cp blockclust scripts/blockclust.py scripts/blockclust_plot.r ${PREFIX}/bin
cp blockclust_data/blockclust.config blockclust_data/rfam_map.txt ${PREFIX}/share/blockclust_data

6 changes: 6 additions & 0 deletions recipes/blockclust/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
c_compiler:
- gcc # [linux]
- clang # [osx]
cxx_compiler:
- gxx # [linux]
- clangxx # [osx]
39 changes: 39 additions & 0 deletions recipes/blockclust/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package:
name: blockclust
version: 1.1.0

source:
git_url: https://github.com/pavanvidem/blockclust
git_rev: c4b8a985fcb615b2b4356a242ff1bc60b672f8e1
Copy link
Member

Choose a reason for hiding this comment

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

it is recommended to use following url format: https://github.com/pavanvidem/blockclust/archive/c4b8a985fcb615b2b4356a242ff1bc60b672f8e1.tar.gz instead of git_url.

Copy link
Member

Choose a reason for hiding this comment

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

It is of course even better if you could tag a release.


build:
number: 0
skip: True # [osx]

requirements:
build:
- {{ compiler('cxx') }}
run:
- python
- scikit-learn >=0.20.0
Copy link
Member

Choose a reason for hiding this comment

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

you probably also need wget as runtime dependency

- r-dendextend >=1.8.0
- mcl >=14.137
- eden >=1.1
- pysam >=0.15.0

test:
commands:
blockclust 2>&1 | grep "clustering and classification" >/dev/null

about:
home: https://github.com/pavanvidem/blockclust
license: GPL
license_file: LICENSE
summary: Efficient clustering and classification of non-coding RNAs from short read RNA-seq profiles.

extra:
identifiers:
- doi:10.1093/bioinformatics/btu270
skip-lints:
- uses_git_url
- missing_hash
10 changes: 10 additions & 0 deletions recipes/blockclust/post-link.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
wget https://github.com/bgruening/download_store/raw/master/blockclust/blockclust-data-1.0/annotations/dm3.tar.gz -P ${PREFIX}/share/blockclust_data
wget https://github.com/bgruening/download_store/raw/master/blockclust/blockclust-data-1.0/annotations/hg19.tar.gz -P ${PREFIX}/share/blockclust_data
wget https://github.com/bgruening/download_store/raw/master/blockclust/blockclust-data-1.0/annotations/mm10.tar.gz -P ${PREFIX}/share/blockclust_data
wget https://github.com/bgruening/download_store/raw/master/blockclust/blockclust-data-1.0/annotations/panTro4.tar.gz -P ${PREFIX}/share/blockclust_data
wget https://github.com/bgruening/download_store/raw/master/blockclust/blockclust-data-1.0/annotations/rheMac3.tar.gz -P ${PREFIX}/share/blockclust_data
wget https://github.com/bgruening/download_store/raw/master/blockclust/blockclust-data-1.0/annotations/celWS235.tar.gz -P ${PREFIX}/share/blockclust_data
wget https://github.com/bgruening/download_store/raw/master/blockclust/blockclust-data-1.0/annotations/tair10.tar.gz -P ${PREFIX}/share/blockclust_data
wget https://github.com/bgruening/download_store/raw/master/blockclust/blockclust-data-1.0/models.tar.gz -P ${PREFIX}/share/blockclust_data

for i in ${PREFIX}/share/blockclust_data/*.tar.gz; do tar -xf $i -C ${PREFIX}/share/blockclust_data;rm $i;done
1 change: 1 addition & 0 deletions recipes/blockclust/pre-unlink.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rm -rf ${PREFIX}/share/blockclust_data