Skip to content

Commit f8b0fe6

Browse files
committed
Trying to merge conflicts
2 parents db9154a + 32f6db5 commit f8b0fe6

File tree

3 files changed

+39
-37
lines changed

3 files changed

+39
-37
lines changed

_episodes/02-vcs.md

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,12 @@ control over your digital research artifacts and notes
7979
> To gain good general working knowledge of VCSs and Git, please go through the following lessons/tutorials:
8080
>
8181
> - [Software Carpentry: Version Control with Git (full: 2:30h, familiarize: 20m)](http://swcarpentry.github.io/git-novice/) --
82-
> a thorough lesson on the main git commands and workflows; please
83-
> complete the lesson until at least the `Licensing` submodule, which will be
84-
> covered in a separate lesson.
82+
> a thorough lesson of the main Git commands and workflows; please
83+
> complete the lesson until at least the `Licensing` submodule, which will be a
84+
> covered in a separate lecture.
8585
> - [Curious Git: A Curious Tale (full: 30m, familiarize: 10m)](https://matthew-brett.github.io/curious-git/curious_journey.html)
86-
> -- useful read if "git internals" feel like a black box to you; this example guides you through the principles of Git without talking about Git.
86+
> -- useful read if you feel that "Git internals" look like a black box to you; this example guides you through
87+
> the principles of Git without talking about Git.
8788
> - (very optional, since this module is Git-based) [Software Carpentry: Version Control with Mercurial (full: 4h)](http://swcarpentry.github.io/hg-novice/)
8889
{: .callout}
8990

@@ -115,14 +116,14 @@ control over your digital research artifacts and notes
115116
>
116117
{: .challenge}
117118
118-
> ## Exercise: exploiting git history
119+
> ## Exercise: exploiting Git history
119120
>
120-
> Determine how the estimate for the Left-Amygdala changed in AnnArbor_sub16960
121-
> from release 1.0.0 to 1.1.0.
122-
> > ## Solution
123-
> > git diff allows us to see the differences between points in the git history
124-
> > and to optionally restrict the search to the specific file(s);
125-
> > use `git tag` and `git grep`:
121+
> Goal: determine how the estimate for the Left-Amygdala changed in the AnnArbor_sub16960
122+
> subject from release 1.0.0 to 1.1.0.
123+
> > ## Answer
124+
> > git diff allows us to see the differences between points in the Git history
125+
> > and to optionally restrict the search to the specific file(s), so the answers to the
126+
> > challenge were `git tag` and `git grep`:
126127
> > ~~~
127128
> > % git diff 1.0.0..1.1.0 -- expected_output/AnnArbor_sub16960/segstats.json
128129
> > ...
@@ -245,7 +246,7 @@ commands to merge the `git-annex` branch correctly.
245246
{: .callout}
246247
247248
> ## Exercise: getting data files controlled by git-annex
248-
>:
249+
>
249250
> Using git/git-annex commands
250251
>
251252
> 1. “Download" a [BIDS](http://bids.neuroimaging.io) dataset from https://github.com/datalad/ds000114
@@ -259,9 +260,9 @@ commands to merge the `git-annex` branch correctly.
259260
> > ~~~
260261
> > % git clone https://github.com/datalad/ds000114 # 1.
261262
> > % cd ds000114
262-
> > % git annex get sub-\*/anat/sub-\*\_T1w.nii.gz # 2.
263+
> > % git annex get sub-\*/anat/sub-\*\_T1w.nii.gz # 2.
263264
> > % git annex get derivatives/freesurfer/sub-\*/mri/T1.mgz # 3. (should fail)
264-
> > % git remote add datalad datasets.datalad.org/workshops/nipype-2017/ds000114/.git
265+
> > % git remote add datalad http://datasets.datalad.org/workshops/nipype-2017/ds000114/.git
265266
> > % git fetch datalad
266267
> > % git annex get derivatives/freesurfer/sub-\*/mri/T1.mgz # 4. (should succeed)
267268
> > ~~~
@@ -282,22 +283,18 @@ commands to merge the `git-annex` branch correctly.
282283
> ### Advanced method (for all future `git annex add` calls)
283284
> If you want to
284285
> [automate such "decision making"](http://git-annex.branchable.com/tips/largefiles/)
285-
> based on either file extension
286-
> and/or size, you can specify those rules within a `.gitattributes` file
287-
> (which also needs to be `git add`-ed), e.g.:
286+
> based on either file extensions
287+
> and/or their sizes, you can specify those rules within a `.gitattributes` file.
288+
> Adding the following two lines would instruct the `git annex add` command to add all non-text and all files having the `.dat` extension to `git-annex` and the rest to
289+
> git:
288290
> ~~~
289-
> % cat << EOF > .gitattributes
290-
> * annex.largefiles=(not(mimetype=text/\*))
291+
> * annex.largefiles=((mimeencoding=binary)and(largerthan=0))
291292
> \*.dat annex.largefiles=anything
292-
> EOF
293293
> ~~~
294294
> {: .bash}
295-
> This instructs the `git annex add` command to add all non-text (according to the
296-
> auto-detected [MIME-type](https://en.wikipedia.org/wiki/Media_type) of their
297-
> content) and all files having the `.dat` extension to `git-annex` and the rest to
298-
> `git`:
295+
> Note that the `.gitattributes` file needs to be added and committed in order to come into effect:
299296
> ~~~
300-
> % git add .gitattributes # to add to git the new .gitattributes
297+
> % git add .gitattributes # to add the new .gitattributes to git
301298
> % git annex add a.txt b.dat
302299
> ~~~
303300
> {: .bash}
@@ -313,14 +310,19 @@ crawlers" for existing data portals, it provides unified access to over
313310
50TB of data from various initiatives (such as CRCNS, OpenfMRI, etc.).
314311
315312
> ## External teaching materials
316-
> - [DataLad lecture and demo (full: 55 min)](https://www.youtube.com/watch?v=sDP1jhRkKRo) --
317-
> describes the goals and basic principles of DataLad with demos on discovery and installation of datasets.
318-
> - [DataLad feature demos (full: 30 min, review: 10 min)](http://datalad.org/features.html) --
313+
> - [The DataLad Handbook](https://handbook.datalad.org) is a code-along crash-course
314+
> on the basic and advanced principles of DataLad, and the most up-to-date and
315+
> most comprehensive user-documentation that exists for DataLad. The section
316+
> [Basics (Full: One day)](https://handbook.datalad.org/en/latest/basics/intro.html) demonstrates
317+
> and teaches the core commands of the tool, and the section
318+
>[usecases (each usecase: 10-30 min)](https://handbook.datalad.org/en/latest/usecases/intro.html)
319+
> gives an overview of what is possible.
320+
> - [DataLad lecture and demo (Full: 55 min)](https://www.youtube.com/watch?v=sDP1jhRkKRo)
321+
> This lecture describes the goals and basic principles of DataLad, and presents
322+
> the first of the demos on discovery and installation of the datasets.
323+
> - [DataLad demos of the features (Full: 30 min, review: 10 min)](http://datalad.org/features.html)
319324
> provides an [asciinema](http://asciinema.org) (and shell script versions) introduction
320325
> to major features of DataLad
321-
> - [Example of a DataLad collaborative workflow (full: 10 min)](http://docs.datalad.org/en/latest/generated/examples/3rdparty_analysis_workflow.html) --
322-
> presents a simple workflow using DataLad to fully version-control
323-
> data and collaborate efficiently
324326
{: .callout}
325327
326328

_episodes/03-packages.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,12 @@ for installation and management. Although largely Python-oriented,
145145
`conda` distributions are not limited to Python-based projects.
146146

147147
> ## External teaching materials
148-
> - [Conda Cheatsheet (review: 5 min, print: 2 pages)](https://conda.io/docs/_downloads/conda-cheatsheet.pdf) --
149-
> a concise list of the most common conda commands.
150-
> - [Conda: Myths and Misconceptions by Jake Vanderplas (full: 20 min, review: 4 min)](https://jakevdp.github.io/blog/2016/08/25/conda-myths-and-misconceptions/) --
148+
> - [Conda: Chatsheet (review: 5 min, print: 2 pages)](https://docs.conda.io/projects/conda/en/latest/user-guide/cheatsheet.html)
149+
> a concise list of the most common conda commands.
150+
> - [Conda: Myths and Misconceptions by Jake Vanderplas (full: 20 min, review: 4 min)](https://jakevdp.github.io/blog/2016/08/25/conda-myths-and-misconceptions/ )
151151
> summarizes central features of conda and its relationship to
152-
> Anaconda, pip, pypi; if you're not sure how these relate, we
153-
> recommend you read the post.
152+
> Anaconda, pip, and pypi; if you're not sure how these relate, we
153+
> recommend that you read the post.
154154
155155

156156
## DataLad
@@ -165,7 +165,7 @@ and a dataset containing other datasets is called a
165165
[superdataset](http://docs.datalad.org/en/latest/glossary.html) in DataLad.
166166
One such super-dataset is provided from http://datasets.datalad.org and
167167
aggregates hundreds of neuroscience datasets over 50TB in size altogether.
168-
To learn about DataLad, please refer to the [VCS lesson: DataLad](/02-vcs/#datalad).
168+
To learn about DataLad, please refer to the [VCS lesson:DataLad](../02-vcs/#datalad).
169169

170170

171171
[conda]: https://en.wikipedia.org/wiki/Conda_(package_manager)
File renamed without changes.

0 commit comments

Comments
 (0)