-
Notifications
You must be signed in to change notification settings - Fork 12
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
Use datalad-osf for already existing OSF repositories #97
Comments
Take a look at #100 |
@sappelhoff : Re importing existing OSF data into a dataset: The solution you found and described on NeuroStars does look good and I agree that this would have been the way to avoid the trouble in the first place. It could be made more convenient by integrating the necessary steps herein. Would be nice to have However, updating the other way around (assuming #100 and an annex on OSF is not an option) should use the "export" type osf-special-remote. Edit: Finally, re publish: |
Also note, that you can have several special remotes. And you can do the same with another subcomponent (or the actual project as described in the above post) to serve as target for an export remote, putting the worktree on OSF for human consumption. |
Thanks for your answers! I am a bit overwhelmed though and there seem to be many different ways to achieve what I want --> just not as simple as I'll need to play around with all the options to understand them. I hope to find some time for that soon and then get back. |
@sappelhoff
If you then look at what's being created at OSF, that should make things a bit clearer. |
Question
How can I turn an existing OSF repository into a datalad dataset and mirror it to GitHub?
Previous solution
I have an OSF repository with data: https://osf.io/cj2dr/
Several months after uploading this dataset on OSF, I wanted to easily download single files from it, and Datalad seemed a good way to do this.
So I did the following (felt very hacky, and still seems hacky to me):
datalad create eeg_matchingpennies
datalad addurls
I updated my new datalad dataset with the existing OSF filesdatalad install -s eeg_matchingpennies clone
cd clone
git annex dead origin
git remote rm origin
git remote add origin <put URL of new, empty GitHub repo here>
datalad publish --to origin
This worked nicely, and the result is here: https://github.com/sappelhoff/eeg_matchingpennies
Problems
datalad save
anddatalad publish
, there is no connection to the actual source of the data on OSF ...I imagine that this problem can now be solved using this new datalad extension. Is that correct? If yes, perhaps we can make a user case out of this for the documentation.
I could imagine that there are several people with already existing OSF datasets that would want to datalad-ify them.
In a few steps, what I imagine:
datalad install
from the GitHub like siteThe text was updated successfully, but these errors were encountered: