-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into add_lofreq
- Loading branch information
Showing
19 changed files
with
186 additions
and
33 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
functionality: | ||
name: busco_download_datasets | ||
namespace: busco | ||
description: Downloads available busco datasets | ||
info: | ||
links: | ||
homepage: https://busco.ezlab.org/ | ||
documentation: https://busco.ezlab.org/busco_userguide.html | ||
repository: https://gitlab.com/ezlab/busco | ||
references: | ||
doi: 10.1007/978-1-4939-9173-0_14 | ||
license: MIT | ||
argument_groups: | ||
- name: Inputs | ||
arguments: | ||
- name: --download | ||
type: string | ||
description: | | ||
Download dataset. Possible values are a specific dataset name, "all", "prokaryota", "eukaryota", or "virus". | ||
The full list of available datasets can be viewed [here](https://busco-data.ezlab.org/v5/data/lineages/) or by running the busco/busco_list_datasets component. | ||
required: true | ||
example: stramenopiles_odb10 | ||
- name: Outputs | ||
arguments: | ||
- name: --download_path | ||
direction: output | ||
type: file | ||
description: | | ||
Local filepath for storing BUSCO dataset downloads | ||
required: false | ||
default: busco_downloads | ||
example: busco_downloads | ||
resources: | ||
- type: bash_script | ||
path: script.sh | ||
test_resources: | ||
- type: bash_script | ||
path: test.sh | ||
platforms: | ||
- type: docker | ||
image: quay.io/biocontainers/busco:5.6.1--pyhdfd78af_0 | ||
setup: | ||
- type: docker | ||
run: | | ||
busco --version | sed 's/BUSCO\s\(.*\)/busco: "\1"/' > /var/software_versions.txt | ||
- type: nextflow |
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,14 @@ | ||
#!/bin/bash | ||
|
||
## VIASH START | ||
## VIASH END | ||
|
||
|
||
if [ ! -d "$par_download_path" ]; then | ||
mkdir -p "$par_download_path" | ||
fi | ||
|
||
busco \ | ||
--download_path "$par_download_path" \ | ||
--download "$par_download" | ||
|
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,15 @@ | ||
echo "> Downloading busco stramenopiles_odb10 dataset" | ||
|
||
"$meta_executable" \ | ||
--download stramenopiles_odb10 \ | ||
--download_path downloads | ||
|
||
echo ">> Checking output" | ||
[ ! -f "downloads/file_versions.tsv" ] && echo "file_versions.tsv does not exist" && exit 1 | ||
[ ! -f "downloads/lineages/stramenopiles_odb10/dataset.cfg" ] && echo "dataset.cfg does not exist" && exit 1 | ||
|
||
echo ">> Checking if output is empty" | ||
[ ! -s "downloads/file_versions.tsv" ] && echo "file_versions.tsv is empty" && exit 1 | ||
[ ! -s "downloads/lineages/stramenopiles_odb10/dataset.cfg" ] && echo "dataset.cfg is empty" && exit 1 | ||
|
||
rm -r downloads |
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,38 @@ | ||
functionality: | ||
name: busco_list_datasets | ||
namespace: busco | ||
description: Lists the available busco datasets | ||
info: | ||
links: | ||
homepage: https://busco.ezlab.org/ | ||
documentation: https://busco.ezlab.org/busco_userguide.html | ||
repository: https://gitlab.com/ezlab/busco | ||
references: | ||
doi: 10.1007/978-1-4939-9173-0_14 | ||
license: MIT | ||
argument_groups: | ||
- name: Outputs | ||
arguments: | ||
- name: --output | ||
alternatives: ["-o"] | ||
direction: output | ||
type: file | ||
description: | | ||
Output file of the available busco datasets | ||
required: false | ||
default: busco_dataset_list.txt | ||
example: file.txt | ||
resources: | ||
- type: bash_script | ||
path: script.sh | ||
test_resources: | ||
- type: bash_script | ||
path: test.sh | ||
platforms: | ||
- type: docker | ||
image: quay.io/biocontainers/busco:5.6.1--pyhdfd78af_0 | ||
setup: | ||
- type: docker | ||
run: | | ||
busco --version | sed 's/BUSCO\s\(.*\)/busco: "\1"/' > /var/software_versions.txt | ||
- type: nextflow |
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,6 @@ | ||
#!/bin/bash | ||
|
||
## VIASH START | ||
## VIASH END | ||
|
||
busco --list-datasets | awk '/^#{40}/{flag=1; next} flag{print}' > $par_output |
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,15 @@ | ||
#!/bin/bash | ||
|
||
## VIASH START | ||
## VIASH END | ||
|
||
"$meta_executable" \ | ||
--output datasets.txt | ||
|
||
echo ">> Checking output" | ||
[ ! -f "datasets.txt" ] && echo "datasets.txt does not exist" && exit 1 | ||
|
||
echo ">> Checking if output is empty" | ||
[ ! -s "datasets.txt" ] && echo "datasets.txt is empty" && exit 1 | ||
|
||
rm datasets.txt |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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