-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add a sidebar for the more info page * add descriptions and listings * restructure create components * restructure getting started * fix project structure * update test info * Update running tests * update more information pages * create getting started page * document how to run workflows * document parameter lists * update changelog * remove duplicate info * fix listing
- Loading branch information
Showing
27 changed files
with
423 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
--- | ||
title: Creating pipelines | ||
description: A guide on how to create new workflows | ||
order: 30 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
--- | ||
title: Contributing | ||
sidebar: true | ||
listing: | ||
template: ../templates/listing.ejs | ||
type: default | ||
contents: "./*.qmd" | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,37 @@ | ||
--- | ||
title: Running tests | ||
description: How to run component and integration tests. | ||
order: 30 | ||
--- | ||
|
||
|
||
### Fetching the test data. | ||
## Fetch the test data | ||
The input data that is needed to run the tests will need to be downloaded from the openpipelines Amazon AWS s3 bucket first. | ||
To do so, the `download/sync_test_resource` component can be used, which will download the data to the correct location (`resources_test`) by default. | ||
|
||
```bash | ||
./bin/viash run ./src/download/sync_test_resources/config.vsh.yaml -p docker -- --input s3://openpipelines-data | ||
viash run src/download/sync_test_resources/config.vsh.yaml | ||
``` | ||
|
||
Or, if you do not want to use Docker and have `aws-cli` tools installed natively: | ||
```bash | ||
./bin/viash run ./src/download/sync_test_resources/config.vsh.yaml -p native -- --input s3://openpipelines-data | ||
``` | ||
|
||
### Running component unittests | ||
## Run component tests | ||
To build and run tests for individual component that you are working on, use [viash test](https://viash.io/api/commands/test/) with the `config.vsh.yaml` of the component you would like to test. | ||
For example: | ||
|
||
```bash | ||
./bin/viash test ./src/convert/from_10xh5_to_h5mu/config.vsh.yaml | ||
viash test src/convert/from_10xh5_to_h5mu/config.vsh.yaml | ||
``` | ||
Keep in mind that when no platform is passed to `viash test`, it will use the first platform that is specified in the config, which is `docker` for most of the components in openpipelines. Use `-p native` for example if you do not want to use docker. | ||
|
||
It is also possible to execute the tests for all components in each namespace using `./bin/viash_test` (note the underscore instead of a space). | ||
|
||
```bash | ||
./bin/viash_test | ||
``` | ||
|
||
### Integration tests | ||
Individual integration tests can be run by using the `integration_test.sh` scripts for a pipeline, located next to the `main.nf` in the `workflows` folder. | ||
It is also possible to execute the tests for all components in each namespace using: | ||
|
||
```bash | ||
./workflows/ingestion/cellranger_demux/integration_test.sh | ||
viash ns test --parallel -q convert | ||
``` | ||
|
||
Running all integration tests is also possible using a helper script that can be found at `workflows/test/integration_test.sh`. Using this script requires a working `R` installation with [tidyverse](https://www.tidyverse.org/packages/) installed. However, as pipelines are implemented by combining individual components | ||
## Run integration tests | ||
Individual integration tests can be run by using the `integration_test.sh` scripts for a pipeline, located next to the `main.nf` in the `src/workflows` folder. | ||
|
||
```bash | ||
./workflows/test/integration_test.sh | ||
src/workflows/ingestion/cellranger_demux/integration_test.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
title: Architecture | ||
description: Structure of the project | ||
order: 30 | ||
d2: | ||
layout: elk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
title: Concepts | ||
description: The core concepts behind this project | ||
order: 20 | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
--- | ||
title: Fundamentals | ||
sidebar: true | ||
listing: | ||
template: ../templates/listing.ejs | ||
type: default | ||
contents: "./*.qmd" | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
title: Philosophy | ||
description: Our approach and mission | ||
order: 10 | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.