-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
544 changed files
with
13,011 additions
and
6,281 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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,54 @@ | ||
#!/usr/bin/env -S uv run | ||
# /// script | ||
# requires-python = ">=3.10" | ||
# dependencies = [ | ||
# "httpx", | ||
# ] | ||
# /// | ||
|
||
import logging | ||
|
||
import httpx | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
image_url = "oras://community.wave.seqera.io/library/pybedtools_bedtools_htslib_pip_pypints:aa20de1f1b5ddb30" | ||
|
||
if image_url.startswith("oras://"): | ||
image_url = image_url.replace("oras://", "") | ||
|
||
wave_api_url = "https://wave.seqera.io" | ||
url = f"{wave_api_url}/v1alpha1/inspect" | ||
|
||
# if platform_pat: | ||
# data["toweraccesstoken"] = platform_pat | ||
# else: | ||
# TODO | ||
logger.warning("'platform_pat' not set, no auth to wave back end") | ||
|
||
try: | ||
logger.info(f"calling image inspect at {url} for image url {image_url}") | ||
response = httpx.post( | ||
url=url, | ||
json={"containerImage": image_url}, | ||
headers={"content-type": "application/json"}, | ||
) | ||
|
||
data = response.json() | ||
logger.debug(data) | ||
layers = data.get("container", {}).get("manifest", {}).get("layers", []) | ||
is_singularity = len(layers) == 1 and layers[0].get("mediaType", "").endswith(".sif") | ||
if not is_singularity: | ||
print(layers) | ||
raise ValueError("not a singularity image") | ||
if "digest" not in layers[0]: | ||
print(layers) | ||
raise ValueError("no 'digest' in first layer found") | ||
|
||
digest = layers[0]["digest"].replace("sha256:", "") | ||
container_url = f"https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/{digest[:2]}/{digest}/data" | ||
print(container_url) | ||
|
||
except httpx.RequestError as exc: | ||
print(f"An error occurred while requesting {exc.request.url!r}.") | ||
print("No singularity image for you") |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ repos: | |
additional_dependencies: | ||
- [email protected] | ||
- repo: https://github.com/python-jsonschema/check-jsonschema | ||
rev: 0.29.3 | ||
rev: 0.29.4 | ||
hooks: | ||
- id: check-jsonschema | ||
# match meta.ymls in one of the subdirectories of modules/nf-core | ||
|
@@ -23,7 +23,7 @@ repos: | |
- id: renovate-config-validator | ||
# use ruff for python files | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.6 | ||
rev: v0.7.0 | ||
hooks: | ||
- id: ruff | ||
files: \.py$ | ||
|
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,5 +1,8 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json | ||
channels: | ||
- conda-forge | ||
- bioconda | ||
|
||
dependencies: | ||
- bioconda::arriba=2.4.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
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,107 @@ | ||
|
||
nextflow_process { | ||
|
||
name "Test Process ARRIBA_ARRIBA" | ||
script "../main.nf" | ||
process "ARRIBA_ARRIBA" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "arriba" | ||
tag "arriba/arriba" | ||
tag "arriba/download" | ||
tag "star/genomegenerate" | ||
tag "star/align" | ||
|
||
setup { | ||
config "./nextflow.config" | ||
options "-stub" | ||
run("ARRIBA_DOWNLOAD") { | ||
script "../../../arriba/download/main.nf" | ||
process { | ||
""" | ||
input[0] = 'GRCh38' | ||
""" | ||
} | ||
} | ||
run("STAR_GENOMEGENERATE") { | ||
script "../../../star/genomegenerate/main.nf" | ||
options "-stub" | ||
process { | ||
""" | ||
input[0] = Channel.of([ | ||
[ id:'test_fasta' ], | ||
[ file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta', checkIfExists: true) ] | ||
]) | ||
input[1] = Channel.of([ | ||
[ id:'test_gtf' ], | ||
[ file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.gtf', checkIfExists: true) ] | ||
]) | ||
""" | ||
} | ||
} | ||
run("STAR_ALIGN") { | ||
script "../../../star/align/main.nf" | ||
options "-stub" | ||
process { | ||
""" | ||
input[0] = Channel.of([ | ||
[ id:'test', single_end:false ], // meta map | ||
[ | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/fastq/test_rnaseq_1.fastq.gz', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/fastq/test_rnaseq_2.fastq.gz', checkIfExists: true) | ||
] | ||
]) | ||
input[1] = STAR_GENOMEGENERATE.out.index | ||
input[2] = Channel.of([ | ||
[ id:'test_gtf' ], | ||
[ file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.gtf', checkIfExists: true) ] | ||
]) | ||
input[3] = false | ||
input[4] = 'illumina' | ||
input[5] = false | ||
""" | ||
} | ||
} | ||
} | ||
|
||
test("homo_sapiens - paired_end - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = Channel.of([ | ||
[ id:'test', single_end:false ], // meta map | ||
[ file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test.rna.paired_end.sorted.bam', checkIfExists: true) ] | ||
]) | ||
input[1] = Channel.of([ | ||
[ id:'test_fasta' ], | ||
[ file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta', checkIfExists: true) ] | ||
]) | ||
input[2] = Channel.of([ | ||
[ id:'test_gtf' ], | ||
[ file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.gtf', checkIfExists: true) ] | ||
]) | ||
input[3] = [] | ||
input[4] = [] | ||
input[5] = [] | ||
input[6] = [] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
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 @@ | ||
{ | ||
"homo_sapiens - paired_end - stub": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.fusions.tsv:md5,f50b84b1db4b83ba62ec1deacc69c260" | ||
] | ||
], | ||
"1": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.fusions.discarded.tsv:md5,f50b84b1db4b83ba62ec1deacc69c260" | ||
] | ||
], | ||
"2": [ | ||
"versions.yml:md5,d323796555db4a58fe4c6bc08d1dec30" | ||
], | ||
"fusions": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.fusions.tsv:md5,f50b84b1db4b83ba62ec1deacc69c260" | ||
] | ||
], | ||
"fusions_fail": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.fusions.discarded.tsv:md5,f50b84b1db4b83ba62ec1deacc69c260" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,d323796555db4a58fe4c6bc08d1dec30" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.0", | ||
"nextflow": "24.04.4" | ||
}, | ||
"timestamp": "2024-10-08T15:41:23.945072" | ||
} | ||
} |
5 changes: 0 additions & 5 deletions
5
...les/nf-core/arriba/arriba/nextflow.config → ...-core/arriba/arriba/tests/nextflow.config
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,13 +1,8 @@ | ||
process { | ||
|
||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } | ||
|
||
withName: STAR_GENOMEGENERATE { | ||
ext.args = '--genomeSAindexNbases 11' | ||
} | ||
|
||
withName: STAR_ALIGN { | ||
ext.args = '--readFilesCommand zcat --outSAMtype BAM Unsorted --outSAMunmapped Within --outBAMcompression 0 --outFilterMultimapNmax 50 --peOverlapNbasesMin 10 --alignSplicedMateMapLminOverLmate 0.5 --alignSJstitchMismatchNmax 5 -1 5 5 --chimSegmentMin 10 --chimOutType WithinBAM HardClip --chimJunctionOverhangMin 10 --chimScoreDropMax 30 --chimScoreJunctionNonGTAG 0 --chimScoreSeparation 1 --chimSegmentReadGapMax 3 --chimMultimapNmax 50' | ||
} | ||
|
||
} |
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
Oops, something went wrong.