Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readcov #193

Merged
merged 17 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions assets/github_testing/TreeValTinyTest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ assembly:
project_id: DTOL
reference_file: /home/runner/work/treeval/treeval/TreeValTinyData/assembly/draft/grTriPseu1.fa
assem_reads:
longread_type: hifi
longread_data: /home/runner/work/treeval/treeval/TreeValTinyData/genomic_data/pacbio/
read_type: hifi
read_data: /home/runner/work/treeval/treeval/TreeValTinyData/genomic_data/pacbio/
hic_data: /home/runner/work/treeval/treeval/TreeValTinyData/genomic_data/hic-arima/
supplementary_data: path
kmer_profile:
Expand Down
4 changes: 2 additions & 2 deletions assets/local_testing/nxOscDF5033.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ assembly:
project_id: DTOL
reference_file: /lustre/scratch123/tol/resources/treeval/treeval-testdata/TreeValSmallData/Oscheius_DF5033/assembly/draft/DF5033.hifiasm.noTelos.20211120/DF5033.noTelos.hifiasm.purged.noCont.noMito.fasta
assem_reads:
longread_type: hifi
longread_data: /lustre/scratch123/tol/resources/treeval/treeval-testdata/TreeValSmallData/Oscheius_DF5033/genomic_data/nxOscSpes1/pacbio/fasta/
read_type: hifi
read_data: /lustre/scratch123/tol/resources/treeval/treeval-testdata/TreeValSmallData/Oscheius_DF5033/genomic_data/nxOscSpes1/pacbio/fasta/
hic_data: /lustre/scratch123/tol/resources/treeval/treeval-testdata/TreeValSmallData/Oscheius_DF5033/genomic_data/nxOscSpes1/hic-arima2/full/
supplementary_data: path
kmer_profile:
Expand Down
6 changes: 3 additions & 3 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ process {
}

// Standard parameters, covers most insecta
withName: '.*:.*:LONGREAD_COVERAGE:(MINIMAP2_ALIGN|MINIMAP2_ALIGN_SPLIT)' {
cpus = { check_max( 16 * 1, 'cpus' ) }
memory = { check_max( 100.GB * task.attempt, 'memory' ) }
withName: '.*:.*:READ_COVERAGE:MINIMAP2_ALIGN' {
cpus = { check_max( 20 * 1, 'cpus' ) }
memory = { check_max( 50.GB * task.attempt, 'memory' ) }
time = { check_max( 20.h * task.attempt, 'time' ) }
}

Expand Down
32 changes: 13 additions & 19 deletions conf/modules.config
yumisims marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ process {
ext.prefix = { "${meta.id}.sorted" }
}


//
// SUBWORKFLOW: SELFCOMP
//
Expand Down Expand Up @@ -179,56 +178,51 @@ process {


//
// SUBWORKFLOW: LONGREAD
// SUBWORKFLOW: READ_COVERAGE
//
withName: ".*:.*:LONGREAD_COVERAGE:MINIMAP2_ALIGN" {
ext.args = "--MD -t 8"
ext.prefix = { "${meta.id}_alignment_${reference.getName().tokenize(".")[0]}" }
}

withName: ".*:.*:LONGREAD_COVERAGE:MINIMAP2_ALIGN_SPLIT" {
ext.args = { "-t 20 --split-prefix ${meta.split_prefix}" }
ext.prefix = { "${meta.id}_alignment_${reference.getName().tokenize(".")[0]}" }
withName: MINIMAP2_ALIGN {
yumisims marked this conversation as resolved.
Show resolved Hide resolved
ext.args = {'-ax '+ (meta.readtype.equals("hifi") ? "map-hifi" : meta.readtype.equals("clr") ? "map-pb" : meta.readtype.equals("ont") ? "map-ont" : meta.readtype.equals("illumina") ? "sr" : "") + ' --cs=short' + (reference.size() > 2.5e9 ? (" -I" + Math.ceil(reference.size()/1000000000)+"G") : "") }
ext.prefix = { "${meta.id}_alignment_${reference.getName().tokenize('.')[0]}" }
}

withName: ".*:.*:LONGREAD_COVERAGE:SAMTOOLS_MERGE" {
withName: ".*:.*:READ_COVERAGE:SAMTOOLS_MERGE" {
ext.prefix = { "${meta.id}_merge" }
}

withName: ".*:.*:LONGREAD_COVERAGE:SAMTOOLS_SORT" {
withName: ".*:.*:READ_COVERAGE:SAMTOOLS_SORT" {
ext.prefix = { "${meta.id}_sorted" }
}

withName: ".*:.*:LONGREAD_COVERAGE:SAMTOOLS_VIEW" {
withName: ".*:.*:READ_COVERAGE:SAMTOOLS_VIEW_FILTER_PRIMARY" {
ext.args = "-b -hF 256"
ext.prefix = { "${meta.id}_view" }
}

withName: ".*:.*:LONGREAD_COVERAGE:BEDTOOLS_GENOMECOV" {
withName: ".*:.*:READ_COVERAGE:BEDTOOLS_GENOMECOV" {
ext.args = "-bga -split"
ext.prefix = { "${meta.id}_genome2cov" }
}

withName: ".*:.*:LONGREAD_COVERAGE:BEDTOOLS_MERGE_MAX" {
withName: ".*:.*:READ_COVERAGE:BEDTOOLS_MERGE_MAX" {
ext.args = "-d 50"
ext.prefix = { "maxdepth" }
}

withName: ".*:.*:LONGREAD_COVERAGE:BEDTOOLS_MERGE_MIN" {
withName: ".*:.*:READ_COVERAGE:BEDTOOLS_MERGE_MIN" {
ext.args = "-d 50"
ext.prefix = { "zerodepth" }
}

withName: ".*:.*:LONGREAD_COVERAGE:GNU_SORT" {
withName: ".*:.*:READ_COVERAGE:GNU_SORT" {
ext.args = { "-k1,1 -k2,2n -S${task.memory.mega - 100}M -T ." }
ext.prefix = { "${meta.id}_sorted" }
}

withName: ".*:.*:LONGREAD_COVERAGE:BED2BW_NORMAL" {
withName: ".*:.*:READ_COVERAGE:BED2BW_NORMAL" {
ext.prefix = { "${meta.id}_coverage_normal" }
}

withName: ".*:.*:LONGREAD_COVERAGE:BED2BW_LOG" {
withName: ".*:.*:READ_COVERAGE:BED2BW_LOG" {
ext.prefix = { "${meta.id}_coverage_log" }
}

Expand Down
8 changes: 7 additions & 1 deletion modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
"minimap2/align": {
"branch": "master",
"git_sha": "603ecbd9f45300c9788f197d2a15a005685b4220",
"installed_by": ["modules"]
"installed_by": ["modules"],
"patch": "modules/nf-core/minimap2/align/minimap2-align.diff"
},
"minimap2/index": {
"branch": "master",
Expand Down Expand Up @@ -136,6 +137,11 @@
"git_sha": "fd742419940e01ba1c5ecb172c3e32ec840662fe",
"installed_by": ["modules"]
},
"samtools/index": {
"branch": "master",
"git_sha": "a64788f5ad388f1d2ac5bd5f1f3f8fc81476148c",
"installed_by": ["modules"]
},
"samtools/markdup": {
"branch": "master",
"git_sha": "9e51255c4f8ec69fb6ccf68593392835f14fecb8",
Expand Down
15 changes: 14 additions & 1 deletion modules/nf-core/minimap2/align/main.nf

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

35 changes: 35 additions & 0 deletions modules/nf-core/minimap2/align/minimap2-align.diff

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

7 changes: 7 additions & 0 deletions modules/nf-core/samtools/index/environment.yml

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

48 changes: 48 additions & 0 deletions modules/nf-core/samtools/index/main.nf

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

57 changes: 57 additions & 0 deletions modules/nf-core/samtools/index/meta.yml

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

7 changes: 7 additions & 0 deletions modules/nf-core/samtools/index/tests/csi.nextflow.config

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

Loading