From 6b333c83faa9dfe99fd2b7f7f71b382162efc959 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 10 Nov 2023 12:32:53 -0500 Subject: [PATCH] ENH: Annex TSV files in phenotype directory --- docs/git.md | 12 ++++++++---- services/datalad/datalad_service/tasks/dataset.py | 1 + services/datalad/hooks/pre-receive | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/git.md b/docs/git.md index f10d3429a2..787109f7e1 100644 --- a/docs/git.md +++ b/docs/git.md @@ -18,14 +18,18 @@ OpenNeuro validates the size of regular git (non-annexed) files and a subset of A recommended `.gitattributes` configuration for git-annex to automate annexing the correct files when using `git add` or `datalad save` ``` -* annex.largefiles=largerthan=1mb +* annex.backend=SHA256E +**/.git* annex.largefiles=nothing *.bval annex.largefiles=nothing *.bvec annex.largefiles=nothing -*.json annex.largefiles=nothing -*.tsv annex.largefiles=nothing +*.json annex.largefiles=largerthan=1mb +phenotype/*.tsv annex.largefiles=anything +*.tsv annex.largefiles=largerthan=1mb +dataset_description.json annex.largefiles=nothing .bidsignore annex.largefiles=nothing CHANGES annex.largefiles=nothing -README annex.largefiles=nothing +README* annex.largefiles=nothing +LICENSE annex.largefiles=nothing ``` ## Credential Helper diff --git a/services/datalad/datalad_service/tasks/dataset.py b/services/datalad/datalad_service/tasks/dataset.py index 7f7c0ecd87..43b806d24b 100644 --- a/services/datalad/datalad_service/tasks/dataset.py +++ b/services/datalad/datalad_service/tasks/dataset.py @@ -18,6 +18,7 @@ *.bval annex.largefiles=nothing *.bvec annex.largefiles=nothing *.json annex.largefiles=largerthan=1mb +phenotype/*.tsv annex.largefiles=anything *.tsv annex.largefiles=largerthan=1mb dataset_description.json annex.largefiles=nothing .bidsignore annex.largefiles=nothing diff --git a/services/datalad/hooks/pre-receive b/services/datalad/hooks/pre-receive index e27cde9e10..acf3227436 100755 --- a/services/datalad/hooks/pre-receive +++ b/services/datalad/hooks/pre-receive @@ -20,6 +20,7 @@ readonly GIT_ATTRIBUTES="* annex.backend=SHA256E *.bval annex.largefiles=nothing *.bvec annex.largefiles=nothing *.json annex.largefiles=largerthan=1mb +phenotype/*.tsv annex.largefiles=anything *.tsv annex.largefiles=largerthan=1mb dataset_description.json annex.largefiles=nothing .bidsignore annex.largefiles=nothing