Skip to content

Commit

Permalink
Simplified hybridization
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Jul 21, 2024
1 parent 3cc883c commit db7fb04
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
head: ${{ github.sha }}
base: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha }}
n_parents: 2
ignored: "nf-core-modules/*"
ignored: "nf-core-modules/modules/nf-core/**"

- name: Separate modules and subworkflows
id: outputs
Expand All @@ -90,6 +90,7 @@ jobs:
- name: debug
run: |
echo ${{ steps.list.outputs.components }}
echo ${{ steps.outputs.outputs.modules }}
echo ${{ steps.outputs.outputs.subworkflows }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ And [more...](./SUBMITTED.md)

Hybrid sub-workflows are not supported by nf-core/tools. See: https://github.com/nf-core/tools/issues/1927

The workaround is to install nf-core modules in the nf-core-modules which is setup as a dummy pipeline. The nf-core modules needed for testing are then symlinked to `modules/nf-core` and the nf-core modules needed for sub-workflows are symlinked to `modules/gallvp`. See: [nf-core-hybridisation.sh](./nf-core-hybridisation.sh)
The workaround is to install nf-core modules in the nf-core-modules which is setup as a dummy pipeline. The nf-core modules needed for sub-workflows are copied to `modules/gallvp`. See: [nf-core-hybridisation.sh](./nf-core-hybridisation.sh)

## References

Expand Down
1 change: 1 addition & 0 deletions docs/AVAILABLE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<li><a href="https://github.com/gallvp/nxf-components/tree/main/modules/gallvp/ltrretriever/lai">modules/gallvp/ltrretriever/lai</a></li>
<li><a href="https://github.com/gallvp/nxf-components/tree/main/modules/gallvp/ltrharvest">modules/gallvp/ltrharvest</a></li>
<li><a href="https://github.com/gallvp/nxf-components/tree/main/modules/gallvp/ltrfinder">modules/gallvp/ltrfinder</a></li>
<li><a href="https://github.com/gallvp/nxf-components/tree/main/modules/gallvp/gunzip">modules/gallvp/gunzip</a></li>
<li><a href="https://github.com/gallvp/nxf-components/tree/main/modules/gallvp/custom/shortenfastaids">modules/gallvp/custom/shortenfastaids</a></li>
<li><a href="https://github.com/gallvp/nxf-components/tree/main/modules/gallvp/custom/restoregffids">modules/gallvp/custom/restoregffids</a></li>
<li><a href="https://github.com/gallvp/nxf-components/tree/main/modules/gallvp/annosine">modules/gallvp/annosine</a></li>
5 changes: 5 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ <h1>gallvp/nxf-components</h1>
>modules/gallvp/ltrfinder</a
>
</li>
<li>
<a href="https://github.com/gallvp/nxf-components/tree/main/modules/gallvp/gunzip"
>modules/gallvp/gunzip</a
>
</li>
<li>
<a href="https://github.com/gallvp/nxf-components/tree/main/modules/gallvp/custom/shortenfastaids"
>modules/gallvp/custom/shortenfastaids</a
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ nextflow_process {
script "../main.nf"
process "GUNZIP"
tag "gunzip"
tag "modules_nfcore"
tag "modules_gallvp"
tag "modules"

test("Should run without failures") {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion modules/gallvp/ltrfinder/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ nextflow_process {
process "LTRFINDER"

tag "modules"
tag "modules_nfcore"
tag "modules_gallvp"
tag "ltrfinder"
tag "gunzip/main"

Expand Down
2 changes: 1 addition & 1 deletion modules/gallvp/ltrharvest/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ nextflow_process {
process "LTRHARVEST"

tag "modules"
tag "modules_nfcore"
tag "modules_gallvp"
tag "ltrharvest"

test("homo_sapiens - genome_21_fasta") {
Expand Down
2 changes: 1 addition & 1 deletion modules/gallvp/ltrretriever/lai/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nextflow_process {
config "./nextflow.config"

tag "modules"
tag "modules_nfcore"
tag "modules_gallvp"
tag "gunzip"
tag "ltrretriever"
tag "ltrretriever/ltrretriever"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nextflow_process {
config "./nextflow.config"

tag "modules"
tag "modules_nfcore"
tag "modules_gallvp"
tag "ltrretriever"
tag "ltrretriever/ltrretriever"
tag "gunzip/main"
Expand Down
5 changes: 2 additions & 3 deletions nf-core-hybridisation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
cp_hybrid_module() {
mkdir -p "./modules/gallvp/$1"
cp -r "./nf-core-modules/modules/nf-core/$1/"* "./modules/gallvp/$1"
sed -i 's/modules_nfcore/modules_gallvp/1' "./modules/gallvp/$1/tests/main.nf.test"
}

# Modules for tests
cp -r ./nf-core-modules/modules/nf-core/gunzip ./modules/nf-core/

# Modules for hybrid subworkflows
cp_hybrid_module "gunzip"
cp_hybrid_module "ltrfinder"
cp_hybrid_module "ltrharvest"
cp_hybrid_module "ltrretriever/ltrretriever"
Expand Down

0 comments on commit db7fb04

Please sign in to comment.