Skip to content

Commit 9778366

Browse files
committed
Add mermaid diagram from Jamie and fix descriptions for transfer
1 parent 7675e1f commit 9778366

File tree

2 files changed

+53
-16
lines changed

2 files changed

+53
-16
lines changed

mkdocs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ extra_javascript:
1212
markdown_extensions:
1313
- toc:
1414
anchorlink: true
15+
- pymdownx.superfences:
16+
custom_fences:
17+
- name: mermaid
18+
class: mermaid
19+
format: !!python/name:pymdownx.superfences.fence_code_format
1520
plugins:
1621
- search
1722
docs_dir: 'src'

src/mri/dataaccess.md

Lines changed: 48 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,45 @@
22

33
All data is collected and provided for access and conversion into BIDS on rolando.cns.dartmouth.edu.
44

5-
You need to request access permissions from [Andrew Connolly](mailto:[email protected]).
5+
You need to request access permissions from [Research Computing](mailto:[email protected]).
6+
7+
8+
```mermaid
9+
---
10+
config:
11+
theme: redux
12+
---
13+
flowchart TD
14+
15+
subgraph subGraph1["Source Data from Scanner"]
16+
inbox-dicom(("/inbox/DICOM"))
17+
details1("Accessions stored by date<br>/YYYY/MM/DD/A#")
18+
end
19+
subgraph subGraph2["Converted Data"]
20+
inbox-bids(("/inbox/BIDS"))
21+
details2("Stored as /PI/Lead/Study<br/><a href='https://github.com/bids-standard/bids-specification/pull/1861#issuecomment-2183701293'>BIDS Project</a><br/>under 'sourcedata/raw/'")
22+
end
23+
local-storage("local storage")
24+
inbox-dicom -- "<a href='https://dbic-handbook.readthedocs.io/en/latest/mri/dataaccess.html#dicoms'>scp/rsync</a>" --> local-storage
25+
inbox-bids -- "<a href='https://dbic-handbook.readthedocs.io/en/latest/mri/dataaccess.html#bids'>scp/rsync/DataLad</a>" --> local-storage
26+
inbox-dicom --> request("PI requests<br/>dataset conversion")
27+
request --> conversion{"<a href='https://github.com/repronim/reproin'>Reproin<br/>conversion</a>"}
28+
conversion --> inbox-bids
29+
30+
31+
style subGraph1 fill:#FFFFFF,stroke:#000000
32+
style subGraph2 fill:#FFFFFF,stroke:#000000
33+
style inbox-dicom fill:#C8E6C9,stroke-width:4px,stroke-dasharray: 0,stroke:#00C853
34+
style details1 stroke:#000000
35+
style inbox-bids fill:#C8E6C9,stroke-width:4px,stroke-dasharray: 0,stroke:#00C853
36+
style details2 stroke:#000000
37+
style request stroke-width:4px,stroke-dasharray: 0,fill:#FFE0B2,stroke:#00C853
38+
style local-storage fill:#C8E6C9,stroke-width:4px,stroke-dasharray: 0,stroke:#00C853
39+
style conversion stroke:#00C853,stroke-width:4px,stroke-dasharray: 0
40+
```
41+
42+
N.B. Storing under `sourcedata/raw/` is a planned solution.
43+
At the moment it would be just in the root of the dataset.
644

745
## DICOMs
846

@@ -11,31 +49,25 @@ You can `scp` or `rsync` them to your local storage.
1149

1250
## BIDS
1351

14-
At the moment, upon request from a lab member to [Yaroslav Halchenko](mailto:[email protected]), data is converted from DICOMs into BIDS within the directories hierarchy under `/inbox/BIDS`, following convention described in ReproIn section (TODO: make into a reference).
52+
At the moment, upon request from a lab member to [Yaroslav Halchenko](mailto:[email protected]), data is converted from DICOMs into BIDS within the directories hierarchy under `/inbox/BIDS`, following convention described in the [ReproIn section](./reproin.md).
53+
If any metadata (`subject_id` or `session_id`) need to be corrected, inform ahead of time.
1554

1655
These directories are also DataLad datasets, so you have two options on how to transfer them:
1756

18-
##### Reckless clone still wants to access rolando
57+
### DataLad
1958

20-
TODO: Yarik figureout
59+
Before you proceed, please refer to the [DataLad section](../basics/datalad.md) of the handbook.
60+
When you are all set, you can do simply something like
2161

62+
```commandline
63+
datalad clone [email protected]:/inbox/BIDS/dbic/dbic-animals dbic-animals
2264
```
23-
(conda-20200210-datalad) [d31548v@discovery7 tmp]$ datalad install -s 1021_actions --reckless auto 1021_actions_reckless
24-
[INFO ] Fetching updates for <Dataset path=/dartfs/rc/lab/D/DBIC/DBIC/tmp/1021_actions_reckless>
25-
26-
27-
Dartmouth College, Department of Psychological and Brain Sciences
28-
Authorized access only
2965

30-
31-
32-
33-
[email protected]'s password:
34-
```
66+
This will create a local clone of the dataset, and you can use `datalad get` to get the data you need.
3567

3668
### Old fashion way
3769

38-
`scp` or `rsync`. But you would need to take care about dereferencing symlinks.
70+
`scp` or `rsync`. But you would need to take care about de-referencing symlinks.
3971

4072
rsync --exclude=.git --copy-links -r \
4173
rolando.cns.dartmouth.edu:/inbox/BIDS/dbic/dbic-animals dbic-animals

0 commit comments

Comments
 (0)