Skip to content

Commit

Permalink
Fix a typo and export a function only used in one module to that modu…
Browse files Browse the repository at this point in the history
…le. Part of #107
  • Loading branch information
Nick-Eagles committed Jan 23, 2024
1 parent 2717bb7 commit 51ffb22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 1 addition & 9 deletions main.nf
Expand Up @@ -362,14 +362,6 @@ def get_read_type(f) {
}
}

def get_file_ext(f) {
if (f.name.toString().tokenize(".")[-1] == "gz") {
return('.fastq.gz')
} else {
return('.fastq')
}
}

// Given a "row" of the 'samples.manifest' file as a string, return the FASTQ
// files
def get_fastq_names(row) {
Expand Down Expand Up @@ -464,7 +456,7 @@ include { VariantCalls; VariantsMerge } from "${workflow.projectDir}/modules/var
include { TxQuantSalmon; TxQuantKallisto } from "${workflow.projectDir}/modules/pseudoalignment"
include { Coverage; WigToBigWig; MeanCoverage; CoverageObjects; ExpressedRegions } from "${workflow.projectDir}/modules/coverage"
include { PreprocessInputs } from "${workflow.projectDir}/modules/preprocess_inputs"
include { PreprocessInputs } from "${workflow.projectDir}/modules/feature_counts"
include { FeatureCounts } from "${workflow.projectDir}/modules/feature_counts"
include { CountObjects } from "${workflow.projectDir}/modules/count_objects"

workflow {
Expand Down
8 changes: 8 additions & 0 deletions modules/quality_control/main.nf
Expand Up @@ -2,6 +2,14 @@
// workflow. In particular, it includes 'Trimming', FastQC before and after
// trimming, and ERCC quantification

def get_file_ext(f) {
if (f.name.toString().tokenize(".")[-1] == "gz") {
return('.fastq.gz')
} else {
return('.fastq')
}
}

/*
* Perform FastQC on the untrimmed reads, as an initial quality gauge
*/
Expand Down

0 comments on commit 51ffb22

Please sign in to comment.