-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from naobservatory/simon-ont-raw-clean
Adding ONT functionality to RAW and CLEAN
- Loading branch information
Showing
19 changed files
with
148 additions
and
23 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
process FILTLONG { | ||
label "small" | ||
label "filtlong" | ||
input: | ||
tuple val(sample), path(reads) | ||
output: | ||
tuple val(sample), path("${sample}_filtlong.fastq.gz"), emit: reads | ||
shell: | ||
// Filter reads based on length (min 100 bp) and mean average base quality (min 99%, i.e, a Phred score of 20) | ||
''' | ||
o=!{sample}_filtlong.fastq.gz | ||
i=!{reads[0]} | ||
filtlong --min_length 100 --min_mean_q 99 --verbose ${i} | gzip > ${o} | ||
''' | ||
} |
6 changes: 3 additions & 3 deletions
6
modules/local/summarizeMultiqcPair/main.nf → modules/local/summarizeMultiqc/main.nf
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
// Extract paired MultiQC data into a more usable form | ||
process SUMMARIZE_MULTIQC_PAIR { | ||
process SUMMARIZE_MULTIQC { | ||
label "R" | ||
label "single" | ||
input: | ||
tuple val(stage), val(sample), path(multiqc_data) | ||
val(single_end) | ||
output: | ||
tuple path("${stage}_${sample}_qc_basic_stats.tsv.gz"), path("${stage}_${sample}_qc_adapter_stats.tsv.gz"), path("${stage}_${sample}_qc_quality_base_stats.tsv.gz"), path("${stage}_${sample}_qc_quality_sequence_stats.tsv.gz") | ||
tuple path("${stage}_${sample}_qc_basic_stats.tsv.gz"), path("${stage}_${sample}_qc_adapter_stats.tsv.gz"), path("${stage}_${sample}_qc_quality_base_stats.tsv.gz"), path("${stage}_${sample}_qc_quality_sequence_stats.tsv.gz"), path("${stage}_${sample}_qc_length_stats.tsv.gz") | ||
shell: | ||
''' | ||
summarize-multiqc-pair.R -i !{multiqc_data} -s !{stage} -S !{sample} -r !{single_end} -o ${PWD} | ||
summarize-multiqc.R -i !{multiqc_data} -s !{stage} -S !{sample} -r !{single_end} -o ${PWD} | ||
''' | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
sample,fastq | ||
NAO-ONT-20240710-WW-RNA1-div0000,s3://nao-testing/ont-ww-test/NAO-ONT-20240710-WW-RNA1-div0000.fastq.gz |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/************************************************ | ||
| CONFIGURATION FILE FOR NAO VIRAL MGS WORKFLOW | | ||
************************************************/ | ||
|
||
params { | ||
mode = "run_dev_se" | ||
|
||
// Sequencing platform | ||
ont = true // Whether the sequencing is ONT (true) or Illumina (false) | ||
|
||
// Directories | ||
base_dir = "./" // Parent for working and output directories (can be S3) | ||
ref_dir = "s3://nao-testing/index-test/output" // Reference/index directory (generated by index workflow) | ||
|
||
// Files | ||
sample_sheet = "${projectDir}/test-data/ont-samplesheet.csv" // Path to library TSV | ||
adapters = "${projectDir}/ref/adapters.fasta" // Path to adapter file for adapter trimming. Not used for ONT. | ||
|
||
// Numerical | ||
human_read_filtering = true // Whether to filter human reads | ||
grouping = false // Whether to group samples by 'group' column in samplesheet | ||
n_reads_trunc = 0 // Number of reads per sample to run through pipeline (0 = all reads) | ||
n_reads_profile = 1000000 // Number of reads per sample to run through taxonomic profiling | ||
bt2_score_threshold = 20 // Normalized score threshold for HV calling (typically 15 or 20) | ||
blast_hv_fraction = 0 // Fraction of putative HV reads to BLAST vs nt (0 = don't run BLAST) | ||
kraken_memory = "128 GB" // Memory needed to safely load Kraken DB | ||
quality_encoding = "phred33" // FASTQ quality encoding (probably phred33, maybe phred64) | ||
fuzzy_match_alignment_duplicates = 0 // Fuzzy matching the start coordinate of reads for identification of duplicates through alignment (0 = exact matching; options are 0, 1, or 2) | ||
host_taxon = "vertebrate" | ||
|
||
blast_db_prefix = "nt_others" | ||
} | ||
|
||
includeConfig "${projectDir}/configs/containers.config" | ||
includeConfig "${projectDir}/configs/profiles.config" | ||
includeConfig "${projectDir}/configs/read_type.config" | ||
includeConfig "${projectDir}/configs/output.config" |
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