-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from databio/dev
Added bedboss and bedhost and bbconf
- Loading branch information
Showing
19 changed files
with
351 additions
and
306 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
### 🚧 docs in progress! Stay tuned for updates. We're working hard to bring you valuable content soon! |
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,12 +1,7 @@ | ||
# How to install R dependencies | ||
|
||
1. Install R: <https://cran.r-project.org/bin/linux/ubuntu/fullREADME.html> | ||
2. Download this script: <a href="../installRdeps.R" download>Install R dependencies</a> | ||
3. Install dependencies by running this command in your terminal: | ||
|
||
``` | ||
Rscript installRdeps.R | ||
``` | ||
|
||
4. Run `bash_requirements_test.sh` to check if everything was installed correctly (located in test folder: | ||
[Bash requirement tests](https://github.com/bedbase/bedboss/blob/68910f5142a95d92c27ef53eafb9c35599af2fbd/test/bash_requirements_test.sh)) | ||
0. Install bedboss | ||
1. Install R: https://cran.r-project.org/bin/linux/ubuntu/fullREADME.html | ||
2. Download this script: [installRdeps.R](https://github.com/databio/bedboss/blob/dev/scripts/installRdeps.R) | ||
3. Install dependencies by running this command in your terminal: ```Rscript installRdeps.R``` | ||
4. Run `bedboss requirements-check` to check if everything was installed correctly. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
### 🚧 Tutorial in progress! Stay tuned for updates. We're working hard to bring you valuable content soon! |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
### 🚧 Tutorial in progress! Stay tuned for updates. We're working hard to bring you valuable content soon! |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
### 🚧 Tutorial in progress! Stay tuned for updates. We're working hard to bring you valuable content soon! |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
## BEDmaker | ||
|
||
The BEDmaker is a tool that allows you to convert various file types into BED format and bigBed format. | ||
Currently supported formats are: | ||
- bed | ||
- bigBed | ||
- bigWig | ||
- wig | ||
|
||
Before running pipeline first, you have to install bedboss and check if bedmaker requirements are satisfied. | ||
To do so, you can run the next command: | ||
```bash | ||
bedboss requirements-check | ||
``` | ||
|
||
### Run BEDmaker from command line | ||
```bash | ||
bedboss make \ | ||
--input-file path/to/input/file \ | ||
--input-type bed\ | ||
--output-folder path/to/output/dir \ | ||
--genome hg38 \ | ||
--sample-name sample1 | ||
--bigbed "path/to/bigbedfile.bigbed" # optional | ||
``` | ||
|
||
### Run BEDmaker from within Python | ||
```python | ||
from bedboss.bedmaker.bedmaker import make_all | ||
|
||
make_all( | ||
input_file="path/to/input/file", | ||
input_type="bed", | ||
output_folder="path/to/output/dir", | ||
genome="hg38", | ||
sample_name="sample1", | ||
bigbed="path/to/bigbedfile.bigbed" # optional | ||
) | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## BEDqc | ||
|
||
BEDqc is a tool for quality control of BED files. | ||
As for now, it checks: | ||
- maximum file size, | ||
- maximum number of regions, | ||
- minimum region width threshold | ||
|
||
---- | ||
### Run BEDqc from command line | ||
```bash | ||
bedboss qc \ | ||
--bedfile path/to/bedfile.bed \ | ||
--outfolder path/to/output/dir \ | ||
``` | ||
|
||
--- | ||
|
||
Run BEDqc from within Python | ||
```python | ||
from bedboss import bedqc | ||
|
||
bedqc.run_bedqc( | ||
bedfile="path/to/bedfile.bed", | ||
outfolder="path/to/output/dir" | ||
max_file_size=1000000, # optional | ||
max_number_of_regions=1000, # optional | ||
min_region_width=10, # optional | ||
) | ||
``` | ||
|
||
If file won't pass the quality control, it will raise an error. and add this information to the log file. |
Oops, something went wrong.