You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: mars-cli/README.md
+155-1
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,11 @@
1
1
# Installing the mars-cli
2
2
3
+
This installation procedure describes a typical Linux installation. This application can perfectly work on Windows and MacOS but some of the steps might be different.
4
+
3
5
Installing the mars-cli from source:
4
6
5
7
```sh
6
-
cd mars-cli # Assuming you are in the root folder
8
+
cd mars-cli # Assuming you are in the root folder of this project
7
9
pip install .
8
10
```
9
11
@@ -18,6 +20,20 @@ If you want to overwrite the `settings.ini` file when reinstalling, you need to
18
20
```sh
19
21
OVERWRITE_SETTINGS=True pip install .[test]
20
22
```
23
+
Installing the MARS-cli, will by default create a `.mars` directory in the home directory to store settings and log files.
24
+
If you wish to create the `.mars` directory in another place, you must specify the `MARS_SETTINGS_DIR` variable and set it to the desired path:
By default the mars-CLI will try to submit the ISA-JSON's metadata towards the repositories' production servers. Passing the development flag will run it in development mode and substitute the production servers with the development servers.
145
+
146
+
## Health check repository services
147
+
148
+
You can check whether the supported repositories are healthy, prior to submission, by doing a health-check.
149
+
150
+
```sh
151
+
mars-cli health-check
152
+
```
153
+
154
+
Output:
155
+
156
+
```
157
+
➜ mars-cli health-check
158
+
############# Welcome to the MARS CLI. #############
159
+
Running in Production environment
160
+
Checking the health of the target repositories.
161
+
Checking production instances.
162
+
Webin (https://www.ebi.ac.uk/ena/submit/webin/auth) is healthy.
163
+
ENA (https://www.ebi.ac.uk/ena/submit/webin-v2/) is healthy.
164
+
Biosamples (https://www.ebi.ac.uk/biosamples/samples/) is healthy.
165
+
```
166
+
167
+
## Submitting to repository services
168
+
169
+
TODO
170
+
171
+
### Options
172
+
173
+
-`--submit-to-ena`: By default set to `True`. Will try submit ISA-JSON metadata towards ENA. Setting it to `False` will skip sending the ISA-JSON's metadata to ENA.
-`--submit-to-metabolights`: By default set to `True`. Will try submit ISA-JSON metadata towards Metabolights. Setting it to `False` will skip sending the ISA-JSON's metadata to Metabolights.
`--investigation-is-root`: By default this flag is set to false, maening the ISA-JSON should have the `investigation` key at the root level. In case the root level __IS__ the investigation (`investigation` level is omitted), you need set the flag `--investigation-is-root` to `True` in order to validate the ISA-JSON.
`--investigation-is-root`: By default this flag is set to false, maening the ISA-JSON should have the `investigation` key at the root level. In case the root level __IS__ the investigation (`investigation` level is omitted), you need set the flag `--investigation-is-root` to `True` in order to validate the ISA-JSON.
The Python script ``biosamples-externalReferences.py`` defines a class BiosamplesRecord for managing biosample records. This class is designed to interact with the BioSamples database, allowing operations like fetching, updating, and extending biosample records.
0 commit comments