Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DLBPointon committed Jul 18, 2023
1 parent d9cf87f commit 99816ae
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 22 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,25 @@ Now, you can run the pipeline using:
<!-- TODO nf-core: update the following command to include all required parameters for a minimal example -->

```bash
// For ALL_FILES run
nextflow run sanger-tol/curationpretext \
-profile <docker/singularity/.../institute> \
--fasta path/to/assembly.fa \
--cram path/to/cram/ \
--pacbio path/to/pacbio/fasta/ \
--teloseq TTAGGG \
-entry { ALL_FILES | MAPS_ONLY } \
--sample { default is "pretext_rerun" }
-entry ALL_FILES \
--outdir path/to/outdir/

// For MAPS_ONLY run
nextflow run sanger-tol/curationpretext \
-profile <docker/singularity/.../institute> \
--fasta path/to/assembly.fa \
--cram path/to/cram/ \
--sample { default is "pretext_rerun" }
-entry MAPS_ONLY \
--outdir path/to/outdir/
```
> **Warning:**
Expand Down
6 changes: 3 additions & 3 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ process {
time = { check_max( 4.h * task.attempt, 'time' ) }

errorStrategy = { task.exitStatus in ((130..145) + 104) ? 'retry' : 'finish' }
maxRetries = 1
maxRetries = 2
maxErrors = '-1'

withName: '.*:.*:LONGREAD_COVERAGE:(MINIMAP2_ALIGN|MINIMAP2_ALIGN_SPLIT)' {
Expand All @@ -26,7 +26,7 @@ process {

withName: CRAM_FILTER_ALIGN_BWAMEM2_FIXMATE_SORT {
cpus = { check_max( 16 * 1, 'cpus' ) }
memory = { check_max( 50.GB * task.attempt, 'memory' ) }
memory = { check_max( 80.GB * task.attempt, 'memory' ) }
}

withName: PRETEXTMAP_STANDRD{
Expand All @@ -45,7 +45,7 @@ process {
}

withName: BWAMEM2_INDEX {
memory = { check_max( 40.GB * task.attempt, 'memory' ) }
memory = { check_max( 100.GB * task.attempt, 'memory' ) }
}

// Process-specific resource requirements
Expand Down
4 changes: 2 additions & 2 deletions lib/WorkflowCurationpretext.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class WorkflowCurationpretext {
genomeExistsError(params, log)


if (!params.fasta) {
Nextflow.error "Genome fasta file not specified with e.g. '--fasta genome.fa' or via a detectable config file."
if (!params.input) {
Nextflow.error "Genome fasta file not specified with e.g. '--input genome.fa' or via a detectable config file."
}
}

Expand Down
11 changes: 1 addition & 10 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ params {

// Input options
input = null
sample = "david"
sample = "pretext_rerun"
teloseq = "TTAGGG"
pacbio = null
cram = null
Expand Down Expand Up @@ -162,15 +162,6 @@ profiles {
test_full { includeConfig 'conf/test_full.config' }
}


// Load igenomes.config if required
if (!params.igenomes_ignore) {
includeConfig 'conf/igenomes.config'
} else {
params.genomes = [:]
}


// Export these variables to prevent local Python/R libraries from conflicting with those in the container
// The JULIA depot path has been adjusted to a fixed path `/usr/local/share/julia` that needs to be used for packages in the container.
// See https://apeltzer.github.io/post/03-julia-lang-nextflow/ for details on that. Once we have a common agreement on where to keep Julia packages, this is adjustable.
Expand Down
12 changes: 6 additions & 6 deletions subworkflows/local/generate_maps.nf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ workflow GENERATE_MAPS {
//
// MODULE: GENERATE INDEX OF REFERENCE FASTA
//
SAMTOOLS_FAIDX (
SAMTOOLS_FAIDX (
reference_tuple,
[[],[]]
)
Expand All @@ -43,7 +43,7 @@ workflow GENERATE_MAPS {
)
ch_versions = ch_versions.mix(BWAMEM2_INDEX.out.versions)

Channel.of([[id: 'david'], hic_reads_path]).set { ch_hic_path }
Channel.of([[id: 'hic_path'], hic_reads_path]).set { ch_hic_path }

//
// MODULE: generate a cram csv file containing the required parametres for CRAM_FILTER_ALIGN_BWAMEM2_FIXMATE_SORT
Expand All @@ -61,9 +61,9 @@ workflow GENERATE_MAPS {
.combine (reference_tuple)
.combine (BWAMEM2_INDEX.out.index)
.map{ cram_id, cram_info, ref_id, ref_dir, bwa_id, bwa_path ->
tuple( [
tuple( [
id: cram_id.id
],
],
file(cram_info[0]),
cram_info[1],
cram_info[2],
Expand All @@ -72,15 +72,15 @@ workflow GENERATE_MAPS {
cram_info[5],
cram_info[6],
bwa_path.toString() + '/' + ref_dir.toString().split('/')[-1]
)
)
}
.set { ch_filtering_input }

//
// MODULE: parallel proccessing bwa-mem2 alignment by given interval of containers from cram files
//
CRAM_FILTER_ALIGN_BWAMEM2_FIXMATE_SORT (
ch_filtering_input
ch_filtering_input
)
ch_versions = ch_versions.mix(CRAM_FILTER_ALIGN_BWAMEM2_FIXMATE_SORT.out.versions)

Expand Down

0 comments on commit 99816ae

Please sign in to comment.