-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 NGSPlotDB-hg19-data recipe #9157
Changes from all commits
f0180d7
f4d66f2
1975340
e9bd34b
3d214fb
e486e49
f5af8a9
3ead683
b1ae475
cf50794
ae6e95a
1590814
e4eb39e
721e3a2
054a918
a76b668
2a7f5e4
484b1f2
e16b597
95efbc3
9c44497
b35f91a
05101fa
8fb135d
30d2a97
9b168e6
7977757
a40cf32
f097068
de5d1a6
88af4ed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% set version = "3.00" %} | ||
{% set name = "ngsplotdb-hg19" %} | ||
|
||
package: | ||
name: 'ngsplotdb-{{ name|lower }}' | ||
version: '{{ version }}' | ||
build: | ||
number: 0 | ||
requirements: | ||
run: | ||
- r-ngsplot | ||
- r-base | ||
- wget | ||
test: | ||
commands: | ||
- (ngsplotdb.py list | grep -qF "hg19" || ngsplotdb.py list) | ||
about: | ||
home: 'https://github.com/shenlab-sinai/ngsplot' | ||
license: GPL-2.0 | ||
summary: 'HG19 genome database for NGSplot' |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -0,0 +1,44 @@ | ||||
#!/bin/bash | ||||
FN="ngsplotdb_hg19_75_3.00.tar.gz" | ||||
URLS=( | ||||
"https://drive.google.com/uc?export=download&id=0B5hDZ2BucCI6SURYWW5XdUxnbW8" | ||||
) | ||||
MD5="172a6a93de3d1ae8a3ad6d6d79e911f7" | ||||
|
||||
# Use a staging area in the conda dir rather than temp dirs, both to avoid | ||||
# permission issues as well as to have things downloaded in a predictable | ||||
# manner. | ||||
STAGING=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM | ||||
mkdir -p $STAGING | ||||
TARBALL=$STAGING/$FN | ||||
|
||||
SUCCESS=0 | ||||
for URL in ${URLS[@]}; do | ||||
wget -O- -q ${URL} > $TARBALL | ||||
[[ $? == 0 ]] || continue | ||||
|
||||
# Platform-specific md5sum checks. | ||||
if [[ $(uname -s) == "Linux" ]]; then | ||||
if md5sum -c <<<"$MD5 $TARBALL"; then | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you use a sha256 hash, you'll have to use
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed back to md5 |
||||
SUCCESS=1 | ||||
break | ||||
fi | ||||
else if [[ $(uname -s) == "Darwin" ]]; then | ||||
if [[ $(md5 $TARBALL | cut -f4 -d " ") == "$MD5" ]]; then | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sha256, see above There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed to md5 |
||||
SUCCESS=1 | ||||
break | ||||
fi | ||||
fi | ||||
fi | ||||
done | ||||
|
||||
if [[ $SUCCESS != 1 ]]; then | ||||
echo "ERROR: post-link.sh was unable to download any of the following URLs with the md5sum $MD5:" >> "${PREFIX}/.messages.txt" 2>&1 | ||||
printf '%s\n' "${URLS[@]}" >> "${PREFIX}/.messages.txt" 2>&1 | ||||
exit 1 | ||||
fi | ||||
|
||||
# Install and clean up | ||||
ngsplotdb.py install "${TARBALL}" >> "${PREFIX}/.messages.txt" 2>&1 | ||||
rm $TARBALL | ||||
rmdir $STAGING |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ngsplotdb.py remove hg19 >> "${PREFIX}/.messages.txt" 2>&1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder: does the database have another home URL? Is the database itself also licensed under the
GPL-2.0
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, they are on GDrive and linked from the same Github repository - so I think its fine to use the same licence (as they didn't state explicitly another one).
Thanks for all the help - learned a lot here and will add two more databases today to finalize things here :-)