psychoinformatics-de / ClusteredNetwork_pub

0 stars 1 forks source link

Separate out a true source dataset #7

Open mih opened 4 months ago

mih commented 4 months ago

Here is a log of what was done.

# create a new dataset, no git-annex, the data is small,
# public and can live in any place that supports git-hosting
❯ datalad create --no-annex joe_and_lili_pickle
❯ cd joe_and_lili_pickle
# link the source dataset on GIN
❯ datalad clone -d . https://gin.g-node.org/nawrotlab/EI_clustered_network.git  source/EI_clustered_network
# extract the pickled source data
# capture provenance record of that
❯ datalad run -i source/EI_clustered_network/pickle -o data 'sh -c "cp -LRv {inputs} {outputs}"'
# also document the origin of the license
❯ datalad run -i source/EI_clustered_network/LICENSE -o LICENSE 'sh -c "cp -LRv {inputs} {outputs}"'
# push to github
❯ git remote add origin git@github.com:psychoinformatics-de/joe_and_lili_pickle.git
❯ git branch -M main
❯ git push -u origin main

The outcome is: https://github.com/psychoinformatics-de/joe_and_lili_pickle