The cluster on which I am working provides datalad 0.12.0rc4 as a container. I expected, when I ran it as
$ datalad install https://github.com/OpenNeuroDatasets/ds000174.git
[INFO ] Cloning https://github.com/OpenNeuroDatasets/ds000174.git [1 other candidates] into '/home/bennet/ds000174'
[INFO ] Remote origin not usable by git-annex; setting annex-ignore
[INFO ] access to dataset sibling "s3-PRIVATE" not auto-enabled, enable with:
| datalad siblings -d "/home/bennet/ds000174" enable -s s3-PRIVATE
install(ok): /home/bennet/ds000174 (dataset)
that it would download the data into the current working directory. Instead I was quite surprised that it downloaded it into $HOME
.
I looked in the documentation installation instructions and I didn’t see anything near the top or easily accessible where it says there is a configuration file that could be used to set the default location, nor was I able to easily find a way to tell datalad
to install into the current directory.
The -C
option says, from --help
,
-C PATH run as if datalad was started in <path> instead of the
current working directory. When multiple -C options
are given, each subsequent non-absolute -C <path> is
interpreted relative to the preceding -C <path>. This
option affects the interpretations of the path names
in that they are made relative to the working
directory caused by the -C option
which seems to imply that datalad
would, in fact, use $PWD
rather than $HOME
.
On this particular cluster, the quota on my $HOME
is generous, but on others, it is tiny.
How would I configure datalad
to download to the current directory, or to some arbitrary directory?
Please also note, I have no use for datalad
to created data sets; it is only being used to fetch datasets, typically from OpenNeuro. I did not find a way to find the section in the documentation for using it (essentially) as a replacement for wget
and aws
.
Sorry if I missed something obvious.
I downloaded the same dataset with aws
, but it got the oldest version, not the latest, so I tried datalad
.
Thanks, – bennet