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

Dropseq tools #10170

Merged
merged 12 commits into from
Aug 1, 2018
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions recipes/Drop-seq_tools/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash
set -eu -o pipefail

declare -a PROGRAMS=(
'BAMTagHistogram'
'BAMTagofTagCounts'
'BaseDistributionAtReadPosition'
'CollapseBarcodesInPlace'
'CollapseTagWithContext'
'ConvertToRefFlat'
'CreateIntervalsFiles'
'DetectBeadSynthesisErrors'
'DigitalExpression'
'FilterBAM'
'FilterBAMByTag'
'GatherGeneGCLength'
'GatherMolecularBarcodeDistributionByGene'
'GatherReadQualityMetrics'
'PolyATrimmer'
'ReduceGTF'
'SelectCellsByNumTranscripts'
'SingleCellRnaSeqMetricsCollector'
'TagBamWithReadSequenceExtended'
'TagReadWithGeneExon'
'TagReadWithInterval'
'TrimStartingSequence'
'ValidateReference'
)

outdir=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM
mkdir -p $outdir
bindir=$PREFIX/bin
mkdir -p $bindir
cp -r ./* $outdir/

for PROG in "${PROGRAMS[@]}"
do
sed -i'.bak' -E 's@^thisdir=.+@thisdir='$outdir'@g' "${outdir}/${PROG}"
rm -f "${outdir}/${PROG}.bak"
ln -s "${outdir}/${PROG}" "${bindir}/${PROG}"
chmod 0755 "${bindir}/${PROG}"
done

54 changes: 54 additions & 0 deletions recipes/Drop-seq_tools/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{% set name = "Drop-seq_tools" %}
Copy link
Member

Choose a reason for hiding this comment

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

Can we have small letters here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the name is used to build the file name to download from their web site. I'd rather keep it like this if possible.

{% set version = "1.13" %}
{% set versiongrep = "1.13(7bed8f4_1513008033)" %}

about:
home: http://mccarrolllab.com/dropseq/
license: MIT License
license_family: MIT
summary: |
Package fot the analysis of Drop-seq data developed by Jim Nemesh in the McCarroll Lab
package:
name: dropseq_tools
version: {{ version }}

build:
number: 0

source:
url: http://mccarrolllab.com/download/1276/{{ name }}-{{ version }}.zip
md5: 28533edd82867ed75867b05785cf8834

requirements:
run:
- openjdk >=7

test:
commands:
- 'BAMTagHistogram -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'BAMTagofTagCounts -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'BaseDistributionAtReadPosition -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'CollapseBarcodesInPlace -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'CollapseTagWithContext -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'ConvertToRefFlat -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'CreateIntervalsFiles -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'DetectBeadSynthesisErrors -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'DigitalExpression -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'FilterBAM -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'FilterBAMByTag -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'GatherGeneGCLength -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'GatherMolecularBarcodeDistributionByGene -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'GatherReadQualityMetrics -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'PolyATrimmer -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'ReduceGTF -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'SelectCellsByNumTranscripts -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'SingleCellRnaSeqMetricsCollector -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'TagBamWithReadSequenceExtended -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'TagReadWithGeneExon -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'TagReadWithInterval -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'TrimStartingSequence -- --help 2>&1 | grep "{{ versiongrep }}"'
- 'ValidateReference -- --help 2>&1 | grep "{{ versiongrep }}"'

extra:
notes: |
Drop-seq_tools utilities are wrapper shell scripts. To get help on individual tool, use e.g. `PolyATrimmer -- --help`