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

Add recipe for HELIANO, a tool for the detection of helitrons in diverse genomes #51129

Merged
merged 35 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
2b09e68
Create build.sh
TobyBaril Oct 3, 2024
0eae1b9
Create meta.yaml
TobyBaril Oct 3, 2024
084f442
Update build.sh
TobyBaril Oct 3, 2024
de70e78
Update meta.yaml
TobyBaril Oct 3, 2024
f375ffb
Update meta.yaml
TobyBaril Oct 3, 2024
90bda7d
Update meta.yaml
TobyBaril Oct 3, 2024
a94e867
Update meta.yaml
TobyBaril Oct 3, 2024
821eece
Update build.sh
TobyBaril Oct 3, 2024
ca6688d
Update build.sh
TobyBaril Oct 3, 2024
b3c86f7
Update build.sh
TobyBaril Oct 3, 2024
ad5420d
Update meta.yaml
TobyBaril Oct 3, 2024
4053f90
Update meta.yaml
TobyBaril Oct 4, 2024
7483565
Update meta.yaml
TobyBaril Oct 4, 2024
12c5f16
Update meta.yaml
TobyBaril Oct 4, 2024
81130ae
Update meta.yaml
TobyBaril Oct 4, 2024
06f61a0
Update meta.yaml
TobyBaril Oct 4, 2024
3101fcb
Update meta.yaml
TobyBaril Oct 4, 2024
4c28e54
Create LICENSE.txt
TobyBaril Oct 4, 2024
c9f4d8d
Merge branch 'bioconda:master' into master
TobyBaril Oct 4, 2024
b87956a
Update meta.yaml
TobyBaril Oct 4, 2024
999106e
Update meta.yaml
TobyBaril Oct 4, 2024
a5107f2
Update build.sh
TobyBaril Oct 4, 2024
9b4fff0
Update meta.yaml
TobyBaril Oct 4, 2024
45406d5
Update build.sh
TobyBaril Oct 7, 2024
f3503ba
Update build.sh
TobyBaril Oct 7, 2024
ff8b150
Update meta.yaml
TobyBaril Oct 7, 2024
6aa5aa8
Update build.sh
TobyBaril Oct 7, 2024
dc2a087
Apply suggestions from code review
TobyBaril Oct 7, 2024
bb1d44d
Update build.sh
TobyBaril Oct 7, 2024
7d577de
Update meta.yaml
TobyBaril Oct 7, 2024
ce74a48
Update meta.yaml
TobyBaril Oct 7, 2024
c5e1114
Update meta.yaml
TobyBaril Oct 7, 2024
97fa755
Update meta.yaml
TobyBaril Oct 7, 2024
ff0cbe7
Update meta.yaml
TobyBaril Oct 7, 2024
7329d2d
Merge branch 'master' into master
TobyBaril Oct 7, 2024
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
46 changes: 46 additions & 0 deletions recipes/heliano/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/bash
#Based on https://github.com/TobyBaril/EarlGrey/blob/main/configure
set -x

# Define paths
PACKAGE_HOME=${PREFIX}/share/${PKG_NAME}-${PKG_VERSION}-${PKG_BUILDNUM}

# create directories
mkdir -p ${PREFIX}/bin
mkdir -p ${PACKAGE_HOME}

# put package in share directory
cp -rf * ${PACKAGE_HOME}/

# fix file paths
BCHECK=${PACKAGE_HOME}/heliano_bcheck.R
FISHER=${PACKAGE_HOME}/heliano_fisher.R
HMMmodel=${PACKAGE_HOME}/RepHel.hmm
Headermodel=${PACKAGE_HOME}/tclcv.txt
SPLIT=${PACKAGE_HOME}/SplitJoint.R
SORT=${PACKAGE_HOME}/Sort.sh
myPYTHON_PATH=`which python3`

sed -i.bak "s|_INTERPRETERPYTHON_PATH_|${myPYTHON_PATH}|" ${PACKAGE_HOME}/heliano.py
sed -i.bak "s|_HMM_|${HMMmodel}|" ${PACKAGE_HOME}/heliano.py
sed -i.bak "s|_HEADER_|${Headermodel}|" ${PACKAGE_HOME}/heliano.py
sed -i.bak "s|_FISHER_|${FISHER}|" ${PACKAGE_HOME}/heliano.py
sed -i.bak "s|_BOUNDARY_|${BCHECK}|" ${PACKAGE_HOME}/heliano.py
sed -i.bak "s|_SPLIT_JOINT_|${SPLIT}|" ${PACKAGE_HOME}/heliano.py
sed -i.bak "s|_SORTPRO_|${SORT}|" ${PACKAGE_HOME}/heliano.py

# set permissions to files
cp ${PACKAGE_HOME}/heliano.py ${PACKAGE_HOME}/heliano
cp ${PACKAGE_HOME}/heliano_cons.py ${PACKAGE_HOME}/heliano_cons
chmod +x ${PACKAGE_HOME}/heliano
chmod +x ${PACKAGE_HOME}/heliano_cons

# test for conda
df -h

# put files in the executable bin
cd ${PREFIX}/bin
ln -sf ${PACKAGE_HOME}/heliano
ln -sf ${PACKAGE_HOME}/heliano_cons

echo "Succeed! Please find programs in bin/ directory."
55 changes: 55 additions & 0 deletions recipes/heliano/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{% set name = "heliano" %}
{% set version = "1.2.0" %}
{% set sha256 = "65db4bb60701219ebb512f53ef95a8afa51135bb0492caf68f19e6d9ba2b5179" %}

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

source:
url: https://github.com/Zhenlisme/heliano/archive/refs/tags/v{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
number: 0
run_exports:
- {{ pin_subpackage('heliano', max_pin='x') }}
noarch: generic

requirements:
run:
- python =3.9
- r-base
- biopython
- pybedtools
- r-bedtoolsr
- r-seqinr
- bedtools
- dialign2
- mafft
- cd-hit
- blast
- emboss
- hmmer
- genometools-genometools
- rnabob

test:
commands:
- df -h
- heliano -h

about:
home: "https://github.com/Zhenlisme/heliano"
dev_url: "https://github.com/Zhenlisme/heliano"
license: GPL-3
summary: "HELIANO: A fast and accurate tool for detection of Helitron-like elements"
description: |
Helitron-like elements (HLE1 and HLE2) are DNA transposons.
They have been found in diverse species and seem to play significant roles in the evolution of host genomes.
Although known for over twenty years, Helitron sequences are still challenging to identify.
Here, we propose HELIANO (Helitron-like elements annotator) as an efficient solution for detecting Helitron-like elements.

extra:
identifiers:
- doi:10.1093/nar/gkae679
Loading