45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
datalad --version
|
|
datalad --help
|
|
datalad wtf
|
|
git config --get user.name
|
|
git config --get user.email
|
|
git config --global user.name "Stephan Heunis"
|
|
git config --global user.email "s.heunis@fz-juelich.de"
|
|
datalad create -c yoda my-analysis
|
|
cd my-analysis
|
|
ls -la .
|
|
|
|
|
|
echo "# My example DataLad dataset" > README.md
|
|
datalad status
|
|
datalad save -m "Add a short README"
|
|
echo "Contains a small data analysis for my project" >> README.md
|
|
datalad save -m "Add information on the dataset contents to the README"
|
|
git log
|
|
|
|
datalad download-url -m "Add an analysis script" \
|
|
-O code/classification_analysis.py \
|
|
https://raw.githubusercontent.com/datalad-handbook/resources/master/classification_analysis.py
|
|
git log code/classification_analysis.py
|
|
datalad run -m "Reformat code with black" \
|
|
"black code/classification_analysis.py"
|
|
git show
|
|
datalad rerun
|
|
|
|
datalad clone -d . \
|
|
https://github.com/datalad-handbook/iris_data.git \
|
|
input/
|
|
datalad subdatasets
|
|
cat iris.csv
|
|
datalad get iris.csv
|
|
datalad drop iris.csv
|
|
|
|
datalad containers-add python-env --url shub://adswa/resources:2
|
|
datalad containers-run -m "rerun analysis in container" \
|
|
--container-name python-env \
|
|
--input "input/iris.csv" \
|
|
--output "pairwise_relationships.png" \
|
|
--output "prediction_report.csv" \
|
|
"python3 code/classification_analysis.py {inputs} {outputs}"
|
|
|
|
datalad create-sibling-gin Meng_Psychedelics_lean --access-protocol ssh --private
|