diff --git a/docs/bedboss/tutorials/bedbuncher_tutorial.md b/docs/bedboss/tutorials/bedbuncher_tutorial.md index f32c8b8..3b18380 100644 --- a/docs/bedboss/tutorials/bedbuncher_tutorial.md +++ b/docs/bedboss/tutorials/bedbuncher_tutorial.md @@ -1 +1,29 @@ -### 🚧 Tutorial in progress! Stay tuned for updates. We're working hard to bring you valuable content soon! \ No newline at end of file +### BEDbuncher + +Bedbuncher is used to create bedset of bed files in the bedbase database. + +### 1) Create bedbase config file +### 2) Create pep with bed file record identifiers. +To do so, you need to create a PEP with the following fields: sample_name (where sample_name is record_identifier), or `sample_name` + `record_identifier` +e.g. sample_table: + +| sample_name | record_identifier | +|----------|----------| +| sample1 | asdf3215f34 | +| sample2 | a23452f34tf | + +### 3) Run bedboss bunch +#### From command line +```bash +bedboss bunch \ + --bedbase-config path/to/bedbase_config.yaml \ + --bedset-name bedset1 \ + --pep path/to/pep.yaml \ + --bedset-pep bedset_pep.yaml \ + --cache-path CACHE_PATH +``` + +### Run bedboss bunch from within Python +```python + +``` \ No newline at end of file diff --git a/docs/bedboss/tutorials/bedindex_tutorial.md b/docs/bedboss/tutorials/bedindex_tutorial.md index f32c8b8..1e58111 100644 --- a/docs/bedboss/tutorials/bedindex_tutorial.md +++ b/docs/bedboss/tutorials/bedindex_tutorial.md @@ -1 +1,21 @@ -### 🚧 Tutorial in progress! Stay tuned for updates. We're working hard to bring you valuable content soon! \ No newline at end of file +### Indexing to qdrant database + +### 1. Create bedbase config file +### 2. Run bedboss index + +#### From command line +```bash +bedboss index --bedbase-config path/to/bedbase_config.yaml +``` + +After running this comman all files that are in the database and weren't indexed will be indexed to qdrant database. + + +#### From within Python +```python +from bedboss.qdrant_index import add_to_qdrant + +add_to_qdrant( + bedbase_config="path/to/bedbase_config.yaml" +) +``` \ No newline at end of file diff --git a/docs/bedboss/tutorials/tutorial_insert.md b/docs/bedboss/tutorials/tutorial_insert.md index 2073bd3..6105a38 100644 --- a/docs/bedboss/tutorials/tutorial_insert.md +++ b/docs/bedboss/tutorials/tutorial_insert.md @@ -1,13 +1,13 @@ ## Bedboss insert -Bedboss insert is intended to run each sample in provided PEP. -PEP can be provided as a file or as a registry path of the PEPhub. +Bedboss insert is designed to process each sample in the provided PEP. +The PEP can be provided either as a path to config file or as a registry path of the PEPhub. ### Step 1: Install all dependencies -First you have to install bedboss and check if all requirements are satisfied. -To do so, you can run next command: +First, you have to install bedboss and check if all requirements are satisfied. +To do so, you can run the following command: ```bash bedboss requirements-check ``` @@ -15,7 +15,7 @@ If requirements are not satisfied, you will see the list of missing packages. ### Step 2: Create bedconf.yaml file To run bedboss insert, you need to create a bedconf.yaml file with configuration. -Detail instructions are in the configuration section. +Detailed instructions are in the configuration section. ### Step 3: Create PEP with bed files. BEDboss PEP should contain next fields: sample_name, input_file, input_type, genome. @@ -33,14 +33,14 @@ bedboss insert \ ``` -Above command will run bedboss on the bed file and create a bedstat file in the output directory. +Above command will run bedboss on the bed file and create a file with statistics in the output directory. It contains only required parameters. For more details, please check the usage section. -By default, results will be uploaded only to postgres database. -- To upload results to PEPhub, you need to make `databio` org available on GitHub, then login to PEPhub, and add `--upload-pephub` flag to the command. -- To upload results to Qdrant, you need to add `--upload-qdrant` flag to the command. -- To upload actual files to s3, you need to add `--upload-s3` flag to the command, and Before uploading you have to set up all necessary env vars: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_ENDPOINT_URL. -- To create bedset of provided pep files, you need to add `--create-bedset` flag to the command. +By default, results will be uploaded only to the PostgreSQL database. +- To upload results to PEPhub, you need to make the `databio` org available on GitHub, then login to PEPhub, and add the `--upload-pephub` flag to the command. +- To upload results to Qdrant, you need to add the `--upload-qdrant` flag to the command. +- To upload actual files to S3, you need to add the `--upload-s3` flag to the command, and before uploading, you have to set up all necessary environment variables: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_ENDPOINT_URL. +- To create a bedset of provided pep files, you need to add the `--create-bedset` flag to the command. --- diff --git a/docs/bedhost/README.md b/docs/bedhost/README.md index a6a53bf..f3235fa 100644 --- a/docs/bedhost/README.md +++ b/docs/bedhost/README.md @@ -1,4 +1,24 @@ -# BEDhost API guide +
+ +
+ diff --git a/mkdocs.yml b/mkdocs.yml index 621f1b1..3b33496 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -47,6 +47,7 @@ nav: - API guides: - BEDhost API guide: - BEDhost: bedhost/README.md + - Developer Guide: bedhost/dev-guide.md - Changelog: bedhost/changelog.md - BBConf: - BBConf: bbconf/README.md @@ -63,8 +64,8 @@ nav: - BEDboss: - BEDBoss: bedboss/README.md - Tutorial: - - BEDboss-all pipeline: bedboss/tutorials/tutorial_all.md - BEDboss insert: bedboss/tutorials/tutorial_insert.md + - BEDboss-all pipeline: bedboss/tutorials/tutorial_all.md - BEDmaker tutorial: bedboss/tutorials/bedmaker_tutorial.md - BEDqc tutorial: bedboss/tutorials/bedqc_tutorial.md - BEDstat tutorial: bedboss/tutorials/bedstat_tutorial.md