-
Notifications
You must be signed in to change notification settings - Fork 26
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 utility downloader #29
base: master
Are you sure you want to change the base?
Conversation
Merge remote-tracking branch 'upstream/master'
Any thoughts on merging this? Also - do you think adding in the option to |
Hey, sorry for the delay just looking at this now. Good idea. Mainly updating documentation and style. Will push commits to your branch shortly. |
Edited code style to match ukbtools package, and ukbtools and UKB naming conventions. Also added documentation for each function.
Could you separate "utilities" and "withdrawals" additions, preferrably to separate feature branches? We may be able to incorporate the withdrawals additions before the utilities – I could not get noah to work on macOS 10.14.6 mojave. More generally I'm concerned that noah is archived and therefore no longer supported, and my problems with noah are in fact an unresolved issue #43. I think I'm inclined to take the addition of utilies in a different direction: I've created a docker image which contains all the md5 checksum'd programs and utilities. It's seems far easier to bind mount to a local directory and Depending how well that works, we may still use your "direct" approach for linux and windows users. |
I don't have the time to separate them out right now. I think Docker is
fine, and while I agree it's a straightforward install, I think 1) it's a
heavy lift for most users, 2) if you're working with this data it's likely
on a cluster (aka linux) and probably can't use docker (but probably can
use singularity), but I agree that you lose out on macOS users (but UK
Biobank made that decision really for you).
If you go down the Docker road, I think
https://rdrr.io/cran/xaringan/man/decktape.html is a good example of it
used in a package.
Best,
John
…On Tue, Sep 1, 2020 at 8:19 AM Ken Hanscombe ***@***.***> wrote:
Could you separate "utilities" and "withdrawals" additions, preferrably to
separate feature branches?
We may be able to incorporate the withdrawals additions before the
utilities – I could not get noah to work on macOS 10.14.6 mojave. More
generally I'm concerned that noah is archived and therefore no longer
supported, and my problems with noah are in fact an unresolved issue #43
<linux-noah/noah#43>.
I think I'm inclined to take the addition of utilies in a different
direction: I've created a docker image
<https://hub.docker.com/repository/docker/onekenken/alpine-ukb-progs>
which contains all the md5 checksum'd programs and utilities. It's seems
far easier to bind mount to a local directory and ukbunpack, ukbconv,
etc. using the linux container (regardless of local operating system). Yes,
it will require users to install docker but that's straightforward and
supported. Will push this functionality to a feature branch shortly.
Depending how well that works, we may still use your "direct" approach for
linux and windows users.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIGPLRYURNVOEWXYAEZGULSDTRGVANCNFSM4OFBDVDA>
.
|
I guess my overall recommendation is to do an OS switch and use Docker for
OSX users. I don't know what you'd want to do for Solaris and other OSes
that CRAN supports, however.
Best,
John
…On Tue, Sep 1, 2020 at 8:53 AM John Muschelli ***@***.***> wrote:
I don't have the time to separate them out right now. I think Docker is
fine, and while I agree it's a straightforward install, I think 1) it's a
heavy lift for most users, 2) if you're working with this data it's likely
on a cluster (aka linux) and probably can't use docker (but probably can
use singularity), but I agree that you lose out on macOS users (but UK
Biobank made that decision really for you).
If you go down the Docker road, I think
https://rdrr.io/cran/xaringan/man/decktape.html is a good example of it
used in a package.
Best,
John
On Tue, Sep 1, 2020 at 8:19 AM Ken Hanscombe ***@***.***>
wrote:
> Could you separate "utilities" and "withdrawals" additions, preferrably
> to separate feature branches?
>
> We may be able to incorporate the withdrawals additions before the
> utilities – I could not get noah to work on macOS 10.14.6 mojave. More
> generally I'm concerned that noah is archived and therefore no longer
> supported, and my problems with noah are in fact an unresolved issue #43
> <linux-noah/noah#43>.
>
> I think I'm inclined to take the addition of utilies in a different
> direction: I've created a docker image
> <https://hub.docker.com/repository/docker/onekenken/alpine-ukb-progs>
> which contains all the md5 checksum'd programs and utilities. It's seems
> far easier to bind mount to a local directory and ukbunpack, ukbconv,
> etc. using the linux container (regardless of local operating system). Yes,
> it will require users to install docker but that's straightforward and
> supported. Will push this functionality to a feature branch shortly.
>
> Depending how well that works, we may still use your "direct" approach
> for linux and windows users.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#29 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAIGPLRYURNVOEWXYAEZGULSDTRGVANCNFSM4OFBDVDA>
> .
>
|
Thanks, John. I think you're right; we'll have to use an OS switch of sorts with docker for mac OS – singularity will work for linux but not for mac (beta version exists but future seems uncertain). Not sure about other OSs. I'm pretty sure I can hide the docker interactions in the backend so that users are only exposed to (pretty much) the list of functions you wrote. Considering above, I'll work on incorporating the OS switch option (with docker for mac OS, and any other OSs that support docker) into your PR. Will push when I have something substantive. |
I added functions to download the utilities so that if
ukbmd5
and such would be in your PATH, thenSys.which
finds it, it will use that. Otherwise, it will download that binary file and runSys.chmod
so that it can run it as an executable. By default, it downloads them to the temporary directory to not violate CRAN policy.For example: