-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into deprecate_custom_getchromsizes
- Loading branch information
Showing
16 changed files
with
310 additions
and
29 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
# dependencies = [ | ||
# "requests", | ||
# "rich", | ||
# "rich_click" | ||
# ] | ||
# /// | ||
|
||
|
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 |
---|---|---|
|
@@ -43,13 +43,17 @@ jobs: | |
runs-on: ubuntu-latest | ||
outputs: | ||
# Expose detected tags as 'modules' and 'workflows' output variables | ||
paths: ${{ steps.list.outputs.components }} | ||
paths: ${{ steps.outputs.outputs.components }} | ||
modules: ${{ steps.outputs.outputs.modules }} | ||
subworkflows: ${{ steps.outputs.outputs.subworkflows}} | ||
# Prod for version bumping | ||
steps: | ||
- name: Clean Workspace # Purge the workspace in case it's running on a self-hosted runner | ||
uses: AutoModality/[email protected] | ||
run: | | ||
ls -la ./ | ||
rm -rf ./* || true | ||
rm -rf ./.??* || true | ||
ls -la ./ | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
with: | ||
fetch-depth: 0 | ||
|
@@ -70,7 +74,7 @@ jobs: | |
echo subworkflows=$(echo '${{ steps.list.outputs.components }}' | jq '. | map(select(contains("subworkflows"))) | map(gsub("subworkflows/nf-core/"; ""))') >> $GITHUB_OUTPUT | ||
- name: debug | ||
run: | | ||
echo ${{ steps.filter.outputs.components }} | ||
echo ${{ steps.outputs.outputs.components }} | ||
echo ${{ steps.outputs.outputs.modules }} | ||
echo ${{ steps.outputs.outputs.subworkflows }} | ||
|
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 |
---|---|---|
|
@@ -63,7 +63,11 @@ jobs: | |
SENTIEON_ENCRYPTION_KEY: ${{ secrets.SENTIEON_ENCRYPTION_KEY }} | ||
steps: | ||
- name: Clean Workspace # Purge the workspace in case it's running on a self-hosted runner | ||
uses: AutoModality/[email protected] | ||
run: | | ||
ls -la ./ | ||
rm -rf ./* || true | ||
rm -rf ./.??* || true | ||
ls -la ./ | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
with: | ||
fetch-depth: 0 | ||
|
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,6 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json | ||
channels: | ||
- conda-forge | ||
- bioconda | ||
dependencies: | ||
- "bioconda::regtools=0.5.0" |
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,45 @@ | ||
process REGTOOLS_JUNCTIONSEXTRACT { | ||
tag "$meta.id" | ||
label 'process_low' | ||
|
||
conda "bioconda::regtools=0.5.0" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/b6/b6c0653189b95b22e16038f61ade205a865857f54eeae9ba0184490a1834f7c9/data' : | ||
'community.wave.seqera.io/library/regtools:0.5.0--b9a260c4c898354a' }" | ||
|
||
input: | ||
tuple val(meta), path(bam), path(bai) | ||
|
||
output: | ||
tuple val(meta), path("*.junc"), emit: junc | ||
path "versions.yml", emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
""" | ||
regtools junctions extract \\ | ||
$args \\ | ||
-o ${prefix}.junc \\ | ||
$bam | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
regtools: \$(regtools --version 2>&1 | grep "Version:" | sed 's/Version:\t//') | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
""" | ||
touch ${prefix}.junc | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
regtools: \$(regtools --version 2>&1 | grep "Version:" | sed 's/Version:\t//') | ||
END_VERSIONS | ||
""" | ||
} |
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,55 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json | ||
name: "regtools_junctionsextract" | ||
description: Extract exon-exon junctions from an RNAseq BAM file. The output is a | ||
BED file in the BED12 format. | ||
keywords: | ||
- regtools | ||
- leafcutter | ||
- RNA-seq | ||
- splicing | ||
tools: | ||
- "regtools": | ||
description: "RegTools is a set of tools that integrate DNA-seq and RNA-seq data | ||
to help interpret mutations in a regulatory and splicing context." | ||
homepage: "https://regtools.readthedocs.io/en/latest/" | ||
documentation: "https://regtools.readthedocs.io/en/latest/#usage" | ||
tool_dev_url: "https://github.com/griffithlab/regtools" | ||
licence: ["MIT"] | ||
identifier: biotools:regtools | ||
|
||
input: | ||
- - meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. `[ id:'sample1', single_end:false ]` | ||
- bam: | ||
type: file | ||
description: Sorted BAM file | ||
pattern: "*.{bam}" | ||
- bai: | ||
type: file | ||
description: Index to sorted BAM file | ||
pattern: "*.{bai}" | ||
|
||
output: | ||
- junc: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. `[ id:'sample1', single_end:false ]` | ||
- "*.junc": | ||
type: file | ||
description: | | ||
BED12 file containing exon-exon "regtools_junctionsextract" | ||
pattern: "*.{junc}" | ||
- versions: | ||
- versions.yml: | ||
type: file | ||
description: File containing software versions | ||
pattern: "versions.yml" | ||
authors: | ||
- "@abartlett004" | ||
maintainers: | ||
- "@abartlett004" |
63 changes: 63 additions & 0 deletions
63
modules/nf-core/regtools/junctionsextract/tests/main.nf.test
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,63 @@ | ||
nextflow_process { | ||
|
||
name "Test Process REGTOOLS_JUNCTIONSEXTRACT" | ||
script "../main.nf" | ||
process "REGTOOLS_JUNCTIONSEXTRACT" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "regtools" | ||
tag "regtools/junctionsextract" | ||
|
||
test("homo_sapiens - bam-bai") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:false ], // meta map | ||
file(params.modules_testdata_base_path + "genomics/homo_sapiens/illumina/bam/test.rna.paired_end.sorted.chr6.bam", checkIfExists: true), | ||
file(params.modules_testdata_base_path + "genomics/homo_sapiens/illumina/bam/test.rna.paired_end.sorted.chr6.bam.bai", checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("homo_sapiens - bam-bai - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:false ], // meta map | ||
file(params.modules_testdata_base_path + "genomics/homo_sapiens/illumina/bam/test.rna.paired_end.sorted.chr6.bam", checkIfExists: true), | ||
file(params.modules_testdata_base_path + "genomics/homo_sapiens/illumina/bam/test.rna.paired_end.sorted.chr6.bam.bai", checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() }, | ||
{ assert snapshot(path(process.out.versions.get(0)).yaml).match("versions") } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.