Skip to content

Commit b52a4b9

Browse files
authored
Merge pull request #42 from CBIIT/update-readme-2
Updated README to include correct binary commands and file ID informa…
2 parents 29bb04f + 06db093 commit b52a4b9

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

README.md

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Put all data files to be uploaded in the same folder.
7070
### Prepare manifest
7171

7272
A manifest is a metadata (TSV) file that contains information about the data files to be uploaded. CLI tool will use this information to find, validate, and upload data files to Data Hub. There are 4 columns that are relevant to CLI tool:
73-
- the column containing file IDs
73+
- the column containing file IDs, unless you are updating existing data files and know the correct file IDs, manifest should not include this column, so that CLI will generate this column automatically.
7474
- the column containing file names
7575
- the column containing file sizes
7676
- the column containing file MD5 checksums
@@ -80,7 +80,7 @@ Different Data Commons may have different column names, but they all contain the
8080
You can put a manifest in the same folder with the data files, or you can put it in a separate folder.
8181

8282
### Prepare configuration file
83-
- Make a copy of the example config file: “crdc-datahub-cli-uploader/configs/uploader-file-config.example.yml”, give it an appropriate name, in this document we name it “file-upload.yml”
83+
- Make a copy of the example config file: “configs/uploader-file-config.example.yml”, give it an appropriate name, in this document we name it “file-upload.yml”
8484
- Open the new config file with a text editor, preferably a code editor like Sublime Text, Notepad++, VSCode, Vim, Emacs etc. Please DO NOT use a word processor like Word or Pages to open the config file.
8585
- Configurations are in “key: value” format. There must be a space between colon and the value.
8686
- api-url: keep it unchanged, unless you are using an environment other than Data Hub production environment
@@ -106,8 +106,19 @@ You do not have to upload the this final manifest in the CRDC submission portal.
106106

107107
If you need to update the content of the file manifest, then edit the final manifest and upload it through the CRDC submission portal.
108108
If you need to upload the data files again, then you can use the final manifest with the Uploader CLI tool. The Uploader CLI Tool will use the file IDs/Keys provided in this file manifest instead of generating new ones.
109+
109110
### Execute upload command
110111

112+
For **macOS binary**:
113+
114+
`$ ./uploader --config configs/file-upload.yml`
115+
116+
For **Windows binary**:
117+
118+
`> uploader.exe --config configs/file-upload.yml`
119+
120+
For **Source code**:
121+
111122
Depends on how Python3 was installed, on some systems you need to use “python” instead of “python3” in following command.
112123

113124
`$ python3 src/uploader.py --config configs/file-upload.yml`
@@ -119,7 +130,7 @@ Depends on how Python3 was installed, on some systems you need to use “python
119130
Put all metadata (TSV) files to be uploaded in the same folder.
120131

121132
### Prepare configuration file
122-
- Make a copy of the example config file: “crdc-datahub-cli-uploader/configs/ uploader-metadata-config.example.yml”, give it an appropriate name, in this document we name it “metadata-upload.yml”
133+
- Make a copy of the example config file: “configs/uploader-metadata-config.example.yml”, give it an appropriate name, in this document we name it “metadata-upload.yml”
123134
- Open the new config file with a text editor, preferably a code editor like Sublime Text, Notepad++, VSCode, Vim, Emacs etc. Please DO NOT use a word processor like Word or Pages to open the config file.
124135
- Configurations are in “key: value” format. There must be a space between colon and the value.
125136
- api-url: keep it unchanged, unless you are using an environment other than Data Hub production environment
@@ -133,15 +144,18 @@ Put all metadata (TSV) files to be uploaded in the same folder.
133144

134145
### Execute upload command
135146

136-
Depends on how Python3 was installed, on some systems you need to use “python” instead of “python3” in following command.
147+
For **macOS binary**:
137148

138-
`$ python3 src/uploader.py --config configs/metadata-upload.yml`
149+
`$ ./uploader --config configs/metadata-upload.yml`
139150

140-
### Execute Upload Command for Binary File
141-
For **macOS/Linux**:
151+
For **Windows binary**:
142152

143-
`$ ./uploader --config configs/metadata-upload.yml`
153+
`> uploader.exe --config configs/metadata-upload.yml`
154+
155+
For **Source code**:
156+
157+
Depends on how Python3 was installed, on some systems you need to use “python” instead of “python3” in following command.
158+
159+
`$ python3 src/uploader.py --config configs/metadata-upload.yml`
144160

145-
For **Windows**:
146161

147-
`> uploader.exe --config configs/metadata-upload.yml`

0 commit comments

Comments
 (0)