Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge #6

Merged
merged 5 commits into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 17 additions & 52 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# BCO-TOOL

This is the BioCompute Tool.

This is a Command Line Tool that allows for the manipulation of [BioCompute Objects](https://www.biocomputeobject.org/). Serveral functionalites are provided (detailed more below in supported modes).

## To install:

Expand All @@ -14,61 +15,25 @@ Add the main bco-tool program to your path

4. `cd bco-tool`

5. `cp bco-tool/bco_runner.py /usr/local/bin/bco`


## Commands that are supported:

```
usage: bco [options]

positional arguments:
{functions,license,validate,run_cwl}
functions list all available functions
license Prints BCO License
validate Validation options. Used to test a BCO against a JSON schema. If no schema is supplied the ieee-2791-schema is used as the default
run_cwl run a CWL

optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit

```

### BCO functions
```
usage: bco_runner.py [-h]

optional arguments:
-h, --help show this help message and exit
```
5. `pip install -r requirements.txt`

### BCO License
```
usage: bco [options] license [-h] -b BCO
6. `cp bco-tool/bco_runner.py /usr/local/bin/bco`

optional arguments:
-h, --help show this help message and exit
-b BCO, --bco BCO BioCompute json to process
```

### BCO validate
```
usage: bco [options] validate [-h] -b BCO [-s SCHEMA]
## Supported modes
* **convert** - takes a BCO and converts it to the current BCO standard: [ieee-2791-schema](https://opensource.ieee.org/2791-object/ieee-2791-schema). Can optionally provide a mapping file to specify mapping fields (template generated through **map** function), otherwise default mappingis performed.
* **validate** - takes a BCO and validates it against a schema. Can provide a schema, otherwise ieee-2791-schema is used.
* **map** - takes a BCO and generates a template mapping file to use for convert method.
* **license** - takes a BCO and gives a license.
* **functions** - Lists all functions in app.
* **run_cwl** - taks a BCO describing a [CWL Workflow](https://www.commonwl.org/) and runs it

optional arguments:
-h, --help show this help message and exit
-b BCO, --bco BCO json to validate
-s SCHEMA, --schema SCHEMA
root json schema to validate against
```
* **--help/-h** - gives detailed help message
* **--version/-v** - gives information about version

### BCO run_cwl
```
usage: bco [options] run_cwl [-h] -b BCO
### Optional arguments
* **--schema/-s** - provides schema for the **validate**, **convert**, or **map** functions, to check BCO against. Default schema is ieee-2971-schema.
* **--bco/b** - URL or path to JSON file of BCO to manipulate.
* **--mappingFile/-m** - path to mapping file to use for **convert** function.

optional arguments:
-h, --help show this help message and exit
-b BCO, --bco BCO json to extract CWL from

```
Loading