Skip to content

Commit

Permalink
Merge pull request #30 from pdimens/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
pdimens authored Feb 16, 2024
2 parents 861adb8 + a8dac1f commit fd3dd25
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 7 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/createrelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Create Release

on:
push:
branches:
- 'main'
tags:
- v*

permissions:
contents: write

jobs:
release:
name: Release pushed tag
runs-on: ubuntu-22.04
steps:
- name: Create release
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes
- name: build artifacts
run: tar --exclude="test" --exclude=".git" --exclude=".github" --exclude=".snakemake" -zcvf harpy.${{tag#v}}.tar.gz .
- name: upload tarball
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./harpy.${{tag#v}}.tar.gz
asset_name: harpy.${{tag#v}}.tar.gz
asset_content_type: application/gzip
4 changes: 2 additions & 2 deletions .github/workflows/impute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ jobs:
- name: impute
shell: micromamba-shell {0}
run: harpy impute --vcf test/vcf/test.bcf -d test/bam -p test/stitch.params -q -s "--show-failed-logs"
run: harpy impute --vcf test/vcf/test.bcf -d test/bam -p test/stitch.params -s "--show-failed-logs"

- name: impute from vcf
shell: micromamba-shell {0}
if: always()
run: |
rm -rf Impute
harpy impute --vcf-samples --vcf test/vcf/test.bcf -d test/bam -p test/stitch.params -q -s "--show-failed-logs"
harpy impute --vcf-samples --vcf test/vcf/test.bcf -d test/bam -p test/stitch.params -s "--show-failed-logs"
4 changes: 2 additions & 2 deletions resources/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
mkdir -p ${PREFIX}/bin

# install harpy proper
${PREFIX}/bin/python -m pip install . --no-deps -vv
${PYTHON} -m pip install . --no-deps -vvv

# rules
cp workflow/rules/*.smk ${PREFIX}/bin/

# associated scripts
chmod +x workdflow/scripts/*
chmod +x workflow/scripts/*
cp workflow/scripts/* ${PREFIX}/bin/

# reports
Expand Down
13 changes: 11 additions & 2 deletions resources/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,17 @@ test:
- "harpy --version"
about:
home: "https://github.com/pdimens/harpy/"
license: MIT
license: GPL-3.0-or-later
license_family: GPL3
license_file: LICENSE
summary: "Process raw haplotagging data, from raw sequences to phased haplotypes."
description: |
Harpy is a command-line tool to easily process haplotag or 10x linked-read data. It uses
Snakemake under the hood to execute different workflows (quality control, trimming,
alignment, variant calling, phasing, etc.), but the user is rarely, if ever, exposed
to Snakemake directly. With an emphasis on user-friendliness, parallelization, transparency,
and reproducibility, Harpy aims to quickly handle data processing so that you can focus more
on analyzing your data.
doc_url: https://pdimens.github.io/harpy/
dev_url: https://github.com/pdimens/harpy

Expand All @@ -46,4 +55,4 @@ extra:
recipe-maintainers:
- pdimens
# skip-lints:
# - should_be_noarch_generic
# - should_be_noarch_generic
3 changes: 2 additions & 1 deletion workflow/envs/harpy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ dependencies:
- bcftools =1.19
- mamba
- multiqc
- pandas
- pysam =0.22
- python
- rich-click
- snakemake
- snakemake-minimal
- samtools
- seqtk
- tabix

0 comments on commit fd3dd25

Please sign in to comment.