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

Ltr retriever #19910

Merged
merged 4 commits into from Jan 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 31 additions & 0 deletions recipes/ltr_retriever/build.sh
@@ -0,0 +1,31 @@
#!/bin/sh
set -x -e

LTRR_DIR=${PREFIX}/share/LTR_retriever

mkdir -p ${PREFIX}/bin
mkdir -p ${LTRR_DIR}
cp -r * ${LTRR_DIR}

# -----------------
# Deal with main scripts "LTR_retriever LAI"
cat <<END >>${PREFIX}/bin/LTR_retriever
#!/bin/bash
NAME=\$(basename \$0)
perl ${LTRR_DIR}/\${NAME} \$@
END

chmod a+x ${PREFIX}/bin/LTR_retriever
ln -s ${PREFIX}/bin/LTR_retriever ${PREFIX}/bin/LAI

# -----------------
# Deal with bin scripts "convert_ltr_struc.pl convert_MGEScan3.0.pl convert_ltrdetector.pl"
cat <<END >>${PREFIX}/bin/convert_ltr_struc.pl
#!/bin/bash
NAME=\$(basename \$0)
perl ${LTRR_DIR}/bin/\${NAME} \$@
END

chmod a+x ${PREFIX}/bin/convert_ltr_struc.pl
ln -s ${PREFIX}/bin/convert_ltr_struc.pl ${PREFIX}/bin/convert_MGEScan3.0.pl
ln -s ${PREFIX}/bin/convert_ltr_struc.pl ${PREFIX}/bin/convert_ltrdetector.pl
34 changes: 34 additions & 0 deletions recipes/ltr_retriever/meta.yaml
@@ -0,0 +1,34 @@
{% set name = "LTR_retriever" %}
{% set version = "2.8" %}
{% set sha256 = "4e10c4df03cd84a841f90a0ac636a04863279b85ad6cfc155905e7ac29d46a8b" %}

package:
name: "{{ name|lower }}"
version: "{{ version }}"

source:
url: https://github.com/oushujun/LTR_retriever/archive/v{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
number: 0
noarch: generic

requirements:
run:
- perl
- perl-text-soundex
- cd-hit
- repeatmasker

test:
commands:
- LTR_retriever -h 2>&1 | grep -i usage

about:
home: https://github.com/oushujun/LTR_retriever
license: GPLv3
license_family: GPL
license_file: LICENSE
summary: Identification of LTR retrotransposons
dev_url: https://github.com/oushujun/LTR_retriever