Skip to content

Commit

Permalink
Merge pull request #15 from CCBR/dir-structure
Browse files Browse the repository at this point in the history
fix: refactor directory structure
  • Loading branch information
dnousome authored Dec 8, 2023
2 parents d13c701 + d05f7ae commit a23bf0d
Show file tree
Hide file tree
Showing 19 changed files with 23 additions and 17 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ PIPE_TONLY_QC=params.PIPE_TONLY_QC

include {INPUT_PIPE;TRIM_ALIGN_PIPE;
GERMLINE_PIPE;VARIANTCALL_PIPE;INPUT_BAMVC_PIPE;SV_PIPE;
QC_PIPE} from "./workflow/modules/workflows.nf"
QC_PIPE} from "./subworkflows/local/workflows.nf"

include {INPUT_TONLY_PIPE;TRIM_ALIGN_TONLY_PIPE;
VARIANT_TONLY_PIPE;INPUT_TONLY_BAMVC_PIPE;QC_TONLY_PIPE} from "./workflow/modules/workflows_tonly.nf"
VARIANT_TONLY_PIPE;INPUT_TONLY_BAMVC_PIPE;QC_TONLY_PIPE} from "./subworkflows/local/workflows_tonly.nf"


log.info """\
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 11 additions & 8 deletions workflow/modules/workflows.nf → subworkflows/local/workflows.nf
Original file line number Diff line number Diff line change
@@ -1,33 +1,36 @@
//All Worksflows in One Place
//All Worksflows in One Place
// TODO split subworkflows out into one per file

// TODO: this line should be moved to within a subworkflow or the main workflow
intervalbedin = Channel.fromPath(params.intervals,checkIfExists: true,type: 'file')


include {fc_lane; fastq_screen;kraken;qualimap_bamqc;fastqc;
samtools_flagstats;vcftools;collectvariantcallmetrics;
bcftools_stats;gatk_varianteval;
snpeff;
somalier_extract;somalier_analysis;multiqc} from './qc.nf'
somalier_extract;somalier_analysis;multiqc} from '../../modules/local/qc.nf'
include {deepvariant_step1;deepvariant_step2;deepvariant_step3;
deepvariant_combined;glnexus} from './germline.nf'
deepvariant_combined;glnexus} from '../../modules/local/germline.nf'
include {fastp; bwamem2; //indelrealign;
bqsr; gatherbqsr; applybqsr; samtoolsindex} from './trim_align.nf'
bqsr; gatherbqsr; applybqsr; samtoolsindex} from '../../modules/local/trim_align.nf'
include {mutect2; mutect2filter; pileup_paired_t; pileup_paired_n;
contamination_paired; learnreadorientationmodel;mergemut2stats;
strelka_tn; combineVariants_strelka;
varscan_tn; vardict_tn;
combineVariants as combineVariants_vardict; combineVariants as combineVariants_varscan;
combineVariants as combineVariants_vardict_tonly; combineVariants as combineVariants_varscan_tonly
annotvep_tn as annotvep_tn_mut2; annotvep_tn as annotvep_tn_strelka; annotvep_tn as annotvep_tn_varscan; annotvep_tn as annotvep_tn_vardict;
combinemafs_tn} from './variant_calling.nf'
combinemafs_tn} from '../../modules/local/variant_calling.nf'
include {mutect2_t_tonly; mutect2filter_tonly;
varscan_tonly; vardict_tonly;
contamination_tumoronly;
learnreadorientationmodel_tonly;
mergemut2stats_tonly;
annotvep_tonly as annotvep_tonly_varscan; annotvep_tonly as annotvep_tonly_vardict; annotvep_tonly as annotvep_tonly_mut2;
combinemafs_tonly} from './variant_calling_tonly.nf'
include {svaba_somatic} from './structural_variant.nf'
include {splitinterval} from "./splitbed.nf"
combinemafs_tonly} from '../../modules/local/variant_calling_tonly.nf'
include {svaba_somatic} from '../../modules/local/structural_variant.nf'
include {splitinterval} from "../../modules/local/splitbed.nf"



Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
//All Worksflows in One Place
//All Worksflows in One Place
// TODO split subworkflows out into one per file

// TODO: this line should be moved to within a subworkflow or the main workflow
intervalbedin = Channel.fromPath(params.intervals,checkIfExists: true,type: 'file')


include {fc_lane; fastq_screen;kraken;qualimap_bamqc;
samtools_flagstats;vcftools;collectvariantcallmetrics;
bcftools_stats;gatk_varianteval;
snpeff;fastqc;
somalier_extract;somalier_analysis;multiqc} from './qc.nf'
somalier_extract;somalier_analysis;multiqc} from '../../modules/local/qc.nf'
include {deepvariant_step1;deepvariant_step2;deepvariant_step3;
deepvariant_combined;glnexus} from './germline.nf'
deepvariant_combined;glnexus} from '../../modules/local/germline.nf'
include {fastp; bwamem2;
bqsr; gatherbqsr; applybqsr; samtoolsindex} from './trim_align.nf'
bqsr; gatherbqsr; applybqsr; samtoolsindex} from '../../modules/local/trim_align.nf'
include {mutect2; mutect2filter; pileup_paired_t; pileup_paired_n;
contamination_paired; learnreadorientationmodel;mergemut2stats;
combineVariants as combineVariants_vardict; combineVariants as combineVariants_varscan;
combineVariants as combineVariants_vardict_tonly; combineVariants as combineVariants_varscan_tonly
annotvep_tn as annotvep_tn_mut2; annotvep_tn as annotvep_tn_strelka; annotvep_tn as annotvep_tn_varscan; annotvep_tn as annotvep_tn_vardict;
combinemafs_tn} from './variant_calling.nf'
combinemafs_tn} from '../../modules/local/variant_calling.nf'
include {mutect2_t_tonly; mutect2filter_tonly;
varscan_tonly; vardict_tonly;
contamination_tumoronly;
learnreadorientationmodel_tonly;
mergemut2stats_tonly;
annotvep_tonly as annotvep_tonly_varscan; annotvep_tonly as annotvep_tonly_vardict; annotvep_tonly as annotvep_tonly_mut2;
combinemafs_tonly} from './variant_calling_tonly.nf'
include {splitinterval} from "./splitbed.nf"
combinemafs_tonly} from '../../modules/local/variant_calling_tonly.nf'
include {splitinterval} from "../../modules/local/splitbed.nf"



Expand Down

0 comments on commit a23bf0d

Please sign in to comment.