-
Notifications
You must be signed in to change notification settings - Fork 427
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
Use 20.07-RC1, add skip_qc to MD #252
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c758a88
Use 20.07-RC1, add skip_qc to MD
FriederikeHanssen b6552f2
Add blank line for linting
FriederikeHanssen f34fc2f
Bump minimal version to 20.07
FriederikeHanssen b151dd5
Fix version naming
FriederikeHanssen 7c78d31
use nextflow.enable.dsl and fix some minor things for that
FriederikeHanssen 9bb93fc
Bump nf version in badge
FriederikeHanssen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ nf-core/sarek: | |
-------------------------------------------------------------------------------- | ||
*/ | ||
|
||
nextflow.preview.dsl = 2 | ||
nextflow.enable.dsl=2 | ||
|
||
// Print help message if required | ||
|
||
|
@@ -258,8 +258,9 @@ include { BWAMEM2_MEM } from './modules/local/bwamem2_mem.nf' | |
include { GET_SOFTWARE_VERSIONS } from './modules/local/get_software_versions' | ||
include { OUTPUT_DOCUMENTATION } from './modules/local/output_documentation' | ||
include { TRIM_GALORE } from './modules/local/trim_galore.nf' | ||
include { MERGE_BAM_MAPPED } from './modules/local/merge_mapped_bam' addParams(params) | ||
include { MARK_DUPLICATES } from './modules/local/mark_duplicates' params(params) | ||
include { MERGE_BAM_MAPPED } from './modules/local/merge_mapped_bam' | ||
include { MARK_DUPLICATES } from './modules/local/mark_duplicates' addParams(skip_qc: skip_qc) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see, now I understand better |
||
//include { BASE_RECALIBRATION } from './modules/local/base_recalibration' params(params) | ||
|
||
/* | ||
================================================================================ | ||
|
@@ -346,8 +347,6 @@ workflow { | |
pon_tbi = params.pon ? params.pon_index ?: BUILD_INDICES.out.pon_tbi : Channel.empty() | ||
|
||
// PREPROCESSING | ||
intervals_bed.dump(tag:'bedintervals') | ||
|
||
if(!('fastqc' in skip_qc)) | ||
result_fastqc = FASTQC(input_sample) | ||
else | ||
|
@@ -380,8 +379,20 @@ workflow { | |
|
||
bam_mapped.view() | ||
|
||
mark_duplicates_report = !(params.skip_markduplicates) ? MARK_DUPLICATES(bam_mapped).duplicates_marked_report : Channel.empty() | ||
if(!(params.skip_markduplicates)){ | ||
MARK_DUPLICATES(bam_mapped) | ||
mark_duplicates_report = MARK_DUPLICATES.out.duplicates_marked_report | ||
bam_duplicates_marked = MARK_DUPLICATES.out.bam_duplicates_marked | ||
} | ||
else { | ||
mark_duplicates_report = Channel.empty() | ||
bam_duplicates_marked = Channel.empty() | ||
} | ||
|
||
bamBaseRecalibrator = bam_duplicates_marked.combine(BUILD_INDICES.out.intervals_bed) | ||
|
||
//BASE_RECALIBRATION(bamBaseRecalibrator,dbsnp, dbsnp_index,fasta,) | ||
|
||
OUTPUT_DOCUMENTATION( | ||
output_docs, | ||
output_docs_images) | ||
|
@@ -546,6 +557,7 @@ workflow.onComplete { | |
|
||
// (bam_mapped_merged, bam_mapped_merged_to_index) = bam_mapped_merged.into(2) | ||
|
||
//@Maxime: You included this process in merged_bam.nf, right? | ||
// process IndexBamFile { | ||
// label 'cpus_8' | ||
|
||
|
@@ -597,56 +609,6 @@ workflow.onComplete { | |
// } | ||
// // STEP 2: MARKING DUPLICATES | ||
|
||
// process MarkDuplicates { | ||
// label 'cpus_16' | ||
|
||
// tag "${idPatient}-${idSample}" | ||
|
||
// publishDir params.outdir, mode: params.publish_dir_mode, | ||
// saveAs: { | ||
// if (it == "${idSample}.bam.metrics") "Reports/${idSample}/MarkDuplicates/${it}" | ||
// else "Preprocessing/${idSample}/DuplicatesMarked/${it}" | ||
// } | ||
|
||
// input: | ||
// set idPatient, idSample, file("${idSample}.bam") from bam_mapped_merged | ||
|
||
// output: | ||
// set idPatient, idSample, file("${idSample}.md.bam"), file("${idSample}.md.bam.bai") into bam_duplicates_marked | ||
// set idPatient, idSample into tsv_bam_duplicates_marked | ||
// file ("${idSample}.bam.metrics") optional true into duplicates_marked_report | ||
|
||
// when: !(params.skip_markduplicates) | ||
|
||
// script: | ||
// markdup_java_options = task.memory.toGiga() > 8 ? params.markdup_java_options : "\"-Xms" + (task.memory.toGiga() / 2).trunc() + "g -Xmx" + (task.memory.toGiga() - 1) + "g\"" | ||
// metrics = 'markduplicates' in skip_qc ? '' : "-M ${idSample}.bam.metrics" | ||
// if (params.no_gatk_spark) | ||
// """ | ||
// gatk --java-options ${markdup_java_options} \ | ||
// MarkDuplicates \ | ||
// --MAX_RECORDS_IN_RAM 50000 \ | ||
// --INPUT ${idSample}.bam \ | ||
// --METRICS_FILE ${idSample}.bam.metrics \ | ||
// --TMP_DIR . \ | ||
// --ASSUME_SORT_ORDER coordinate \ | ||
// --CREATE_INDEX true \ | ||
// --OUTPUT ${idSample}.md.bam | ||
|
||
// mv ${idSample}.md.bai ${idSample}.md.bam.bai | ||
// """ | ||
// else | ||
// """ | ||
// gatk --java-options ${markdup_java_options} \ | ||
// MarkDuplicatesSpark \ | ||
// -I ${idSample}.bam \ | ||
// -O ${idSample}.md.bam \ | ||
// ${metrics} \ | ||
// --tmp-dir . \ | ||
// --create-output-bam-index true \ | ||
// --spark-master local[${task.cpus}] | ||
// """ | ||
// } | ||
|
||
// (tsv_bam_duplicates_marked, tsv_bam_duplicates_marked_sample) = tsv_bam_duplicates_marked.into(2) | ||
|
||
|
@@ -681,9 +643,7 @@ workflow.onComplete { | |
|
||
// (bamMD, bamMDToJoin, bam_duplicates_marked) = bam_duplicates_marked.into(3) | ||
|
||
// bamBaseRecalibrator = bamMD.combine(intBaseRecalibrator) | ||
|
||
// bamBaseRecalibrator = bamBaseRecalibrator.dump(tag:'BAM FOR BASERECALIBRATOR') | ||
// | ||
|
||
// // STEP 2': SENTIEON DEDUP | ||
|
||
|
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,40 @@ | ||
// process BASE_RECALIBRATION { | ||
// label 'cpus_1' | ||
|
||
// tag "${idPatient}-${idSample}-${intervalBed.baseName}" | ||
|
||
// input: | ||
// tuple idPatient, idSample, file(bam), file(bai), file(intervalBed) //from bamBaseRecalibrator | ||
// path dbsnp //from dbsnp | ||
// path dbsnpIndex// from dbsnp_tbi | ||
// path fasta //from fasta | ||
// path dict // from dict | ||
// path fastaFai // from fai | ||
// path knownIndels // from known_indels | ||
// path knownIndelsIndex // from known_indels_tbi | ||
|
||
// output: | ||
// tuple idPatient, idSample, file "${prefix}${idSample}.recal.table", emit: tableGatherBQSRReports | ||
// tuple idPatient, idSample, emit: recalTableTSVnoInt | ||
|
||
// //when: params.known_indels | ||
|
||
// script: | ||
// dbsnpOptions = params.dbsnp ? "--known-sites ${dbsnp}" : "" | ||
// knownOptions = params.known_indels ? knownIndels.collect{"--known-sites ${it}"}.join(' ') : "" | ||
// prefix = params.no_intervals ? "" : "${intervalBed.baseName}_" | ||
// intervalsOptions = params.no_intervals ? "" : "-L ${intervalBed}" | ||
// // TODO: --use-original-qualities ??? | ||
// """ | ||
// gatk --java-options -Xmx${task.memory.toGiga()}g \ | ||
// BaseRecalibrator \ | ||
// -I ${bam} \ | ||
// -O ${prefix}${idSample}.recal.table \ | ||
// --tmp-dir . \ | ||
// -R ${fasta} \ | ||
// ${intervalsOptions} \ | ||
// ${dbsnpOptions} \ | ||
// ${knownOptions} \ | ||
// --verbosity INFO | ||
// """ | ||
// } |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update the README.md too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done