Skip to content

Commit

Permalink
Assemble ONT genomes
Browse files Browse the repository at this point in the history
  • Loading branch information
fellen31 committed Nov 28, 2024
1 parent 43c16ae commit c20405c
Show file tree
Hide file tree
Showing 13 changed files with 204 additions and 45 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#506](https://github.com/genomic-medicine-sweden/nallo/pull/506) - Updated documentation
- [#507](https://github.com/genomic-medicine-sweden/nallo/pull/507) - Changed the default value of `ch_hgnc_ids` to allow running without `--filter_variants_hgnc_ids` introduced in [#496](https://github.com/genomic-medicine-sweden/nallo/pull/443)
- [#509](https://github.com/genomic-medicine-sweden/nallo/pull/509) - Updated documentation to fix mistakes
- [#](https://github.com/genomic-medicine-sweden/nallo/pull/) - Updated hifiasm to allow beta support for ONT R10 assembly

### `Removed`

Expand Down Expand Up @@ -158,6 +159,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
| `--score_config_sv` | `--genmod_score_config_svs` |
| `--parallel_alignments` | `--alignment_processes` |
| `--svdb_dbs` | `--svdb_sv_databases` |
| | `--hifiasm_preset` |

> [!NOTE]
> Parameter has been updated if both old and new parameter information is present.
Expand All @@ -174,7 +176,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
| genmod | 3.8.2 | 3.9 |
| WhatsHap | 2.2 | 2.3 |
| SVDB | | 2.8.2 |
| hifiasm | 0.19.8 | 0.20.0 |
| hifiasm | 0.19.8 | 0.21.0 |
| HiFiCNV | 0.1.7 | 1.0.0 |
| samtools/faidx | 1.2 | 1.21 |
| samtools/index | 1.2 | 1.21 |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
##### Alignment & assembly

- Align reads to reference with [minimap2](https://github.com/lh3/minimap2)
- Assemble (trio-binned) haploid genomes with [hifiasm](https://github.com/chhylp123/hifiasm) (HiFi only)
- Assemble (trio-binned) haploid genomes with [hifiasm](https://github.com/chhylp123/hifiasm)

##### Variant calling

Expand All @@ -33,7 +33,7 @@
- Call CNVs with [HiFiCNV](https://github.com/PacificBiosciences/HiFiCNV)
- Call tandem repeats with [TRGT](https://github.com/PacificBiosciences/trgt/tree/main) (HiFi only)
- Call paralogous genes with [Paraphase](https://github.com/PacificBiosciences/paraphase)
- Call variants from assembly with [dipcall](https://github.com/lh3/dipcall) (HiFi only)
- Call variants from assembly with [dipcall](https://github.com/lh3/dipcall)

##### Phasing and methylation

Expand Down
1 change: 1 addition & 0 deletions conf/modules/genome_assembly.config
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ process {
withName: '.*:ASSEMBLY:HIFIASM' {
ext.args = { [
"${params.extra_hifiasm_options}",
"${params.hifiasm_preset}",
"--dual-scaf",
"--telo-m CCCTAA"
].join(' ') }
Expand Down
5 changes: 3 additions & 2 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@
},
"hifiasm": {
"branch": "master",
"git_sha": "daa15d5226111e10ca95c0d4a85fa6bd11a08a01",
"installed_by": ["modules"]
"git_sha": "9c12c14558bb3b4ac7ee9542c268342782bacf9d",
"installed_by": ["modules"],
"patch": "modules/nf-core/hifiasm/hifiasm.diff"
},
"longphase/haplotag": {
"branch": "master",
Expand Down
2 changes: 1 addition & 1 deletion modules/nf-core/hifiasm/environment.yml

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

16 changes: 6 additions & 10 deletions modules/nf-core/hifiasm/hifiasm.diff

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

8 changes: 4 additions & 4 deletions modules/nf-core/hifiasm/main.nf

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

34 changes: 17 additions & 17 deletions modules/nf-core/hifiasm/tests/main.nf.test.snap

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

3 changes: 2 additions & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ params {
somalier_sites = null

// Skip parts of the workflow
skip_genome_assembly = params.preset == 'ONT_R10' ? true : false
skip_genome_assembly = false
skip_call_paralogs = false
skip_cnv_calling = false
skip_alignment = false
Expand All @@ -49,6 +49,7 @@ params {
skip_sv_annotation = false

deepvariant_model_type = params.preset == 'ONT_R10' ? 'ONT_R104' : 'PACBIO'
hifiasm_preset = params.preset == 'ONT_R10' ? '--ont' : ''
minimap2_read_mapping_preset = params.preset == 'ONT_R10' ? 'lr:hq' : 'map-hifi'
filter_snvs_expression = ''
filter_svs_expression = ''
Expand Down
6 changes: 6 additions & 0 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,12 @@
"enum": ["hifi-only", "trio-binning"],
"default": "hifi-only"
},
"hifiasm_preset": {
"type": "string",
"description": "Hifiasm preset, is set to `--ont` when `--profile ONT_R10` is active.",
"enum": ["", "--ont"],
"default": ""
},
"alignment_processes": {
"type": "integer",
"minimum": 1,
Expand Down
4 changes: 2 additions & 2 deletions tests/samplesheet.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"gunzip": 1.1
},
"HIFIASM": {
"hifiasm": "0.20.0-r639"
"hifiasm": "0.21.0-r686"
},
"HIFICNV": {
"hificnv": "1.0.0-36e6461"
Expand Down Expand Up @@ -674,6 +674,6 @@
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-11-18T08:53:15.024737825"
"timestamp": "2024-11-28T12:18:43.950517922"
}
}
4 changes: 2 additions & 2 deletions tests/samplesheet_multisample_bam.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"gunzip": 1.1
},
"HIFIASM": {
"hifiasm": "0.20.0-r639"
"hifiasm": "0.21.0-r686"
},
"HIFICNV": {
"hificnv": "1.0.0-36e6461"
Expand Down Expand Up @@ -874,6 +874,6 @@
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-11-18T08:55:12.484845801"
"timestamp": "2024-11-28T12:20:41.635458971"
}
}
Loading

0 comments on commit c20405c

Please sign in to comment.