Skip to content

Commit

Permalink
Merge pull request #345 from fellen31/add-metro-map
Browse files Browse the repository at this point in the history
Add metro map
  • Loading branch information
fellen31 committed Aug 30, 2024
2 parents a7d1879 + 16c4139 commit 87c67ef
Show file tree
Hide file tree
Showing 13 changed files with 2,801 additions and 71 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
tags:
- "SHORT_VARIANT_CALLING"
- "SNV_ANNOTATION"
- "CALL_SVS"
- "samplesheet"
- "samplesheet_multisample_bam"
profile:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### `Added`

- [#345](https://github.com/genomic-medicine-sweden/nallo/pull/345) - Added first version of a metro map
- [#346](https://github.com/genomic-medicine-sweden/nallo/pull/#346) - Added nf-test to call_svs

### `Changed`

- [#344](https://github.com/genomic-medicine-sweden/nallo/pull/344) - Changed version to 0.4.0dev
- [#346](https://github.com/genomic-medicine-sweden/nallo/pull/346) - Renamed structural_variant_calling to call_svs

### `Removed`

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

## Pipeline summary

<picture align="center">
<img alt="genomic-medicine-sweden/nallo workflow" src="docs/images/nallo_metromap.png">
</picture>

##### QC

- FastQC ([`FastQC`](http://www.bioinformatics.babraham.ac.uk/projects/fastqc/))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,22 @@ process {

/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structural variant calling
Call SVs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

withName: '.*:STRUCTURAL_VARIANT_CALLING:SNIFFLES' {

withName: '.*:CALL_SVS:SNIFFLES' {
ext.prefix = { "${meta.id}_sniffles" }

ext.args = '--no-qc'

publishDir = [
path: { "${params.outdir}/sv_calling/sniffles/single_sample/${meta.id}" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: '.*:STRUCTURAL_VARIANT_CALLING:SNIFFLES_MULTISAMPLE' {

withName: '.*:CALL_SVS:SNIFFLES_MULTISAMPLE' {
ext.prefix = { "${meta.id}_sniffles" }

publishDir = [
path: { "${params.outdir}/sv_calling/sniffles/multi_sample/${meta.id}" },
mode: params.publish_dir_mode,
Expand Down
Binary file added docs/images/nallo_metromap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@
"sniffles": {
"branch": "master",
"git_sha": "b50aa17b1b604c7b3cfe58a2472d1e7b990ae8bf",
"installed_by": ["modules"]
"installed_by": ["modules"],
"patch": "modules/nf-core/sniffles/sniffles.diff"
},
"somalier/extract": {
"branch": "master",
Expand Down
2 changes: 1 addition & 1 deletion modules/nf-core/sniffles/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 45 additions & 45 deletions modules/nf-core/sniffles/sniffles.diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ includeConfig 'conf/modules/scatter_genome.config'
includeConfig 'conf/modules/rank_variants.config'
includeConfig 'conf/modules/short_variant_calling.config'
includeConfig 'conf/modules/snv_annotation.config'
includeConfig 'conf/modules/structural_variant_calling.config'
includeConfig 'conf/modules/call_svs.config'
includeConfig 'conf/modules/short_variant_calling.config'
includeConfig 'conf/modules/cnv.config'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
include { SNIFFLES as SNIFFLES_MULTISAMPLE } from '../../modules/nf-core/sniffles/main'
include { SNIFFLES } from '../../modules/nf-core/sniffles/main'
include { SNIFFLES as SNIFFLES_MULTISAMPLE } from '../../../modules/nf-core/sniffles/main'
include { SNIFFLES } from '../../../modules/nf-core/sniffles/main'

workflow STRUCTURAL_VARIANT_CALLING {
workflow CALL_SVS {

take:
ch_bam_bai // channel: [ val(meta), [[ bam ], [bai]] ]
ch_fasta
ch_fai
ch_tandem_repeats
ch_bam_bai // channel: [mandatory] [ val(meta), path(bam), path(bai) ]
ch_fasta // channel: [mandatory] [ val(meta), path(fasta) ]
ch_fai // channel: [mandatory] [ val(meta), path(fai) ]
ch_tandem_repeats // channel: [optional] [ val(meta), path(bed) ]

main:
ch_versions = Channel.empty()
Expand All @@ -26,8 +26,8 @@ workflow STRUCTURAL_VARIANT_CALLING {
ch_versions = ch_versions.mix(SNIFFLES_MULTISAMPLE.out.versions)

emit:
ch_sv_calls_vcf = SNIFFLES.out.vcf // channel: [ val(meta), vcf]
ch_multisample = SNIFFLES_MULTISAMPLE.out.vcf // channel: [ val(meta), multisample.sniffles.vcf ]
versions = ch_versions // channel: [ versions.yml ]
ch_sv_calls_vcf = SNIFFLES.out.vcf // channel: [ val(meta), path(vcf) ]
ch_multisample = SNIFFLES_MULTISAMPLE.out.vcf // channel: [ val(meta), path(vcf) ]
versions = ch_versions // channel: [ path(versions.yml) ]
}

Loading

0 comments on commit 87c67ef

Please sign in to comment.