-
Notifications
You must be signed in to change notification settings - Fork 3
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 #80 from naobservatory/single-read-raw-clean
Adding single-read functionality to RAW and CLEAN
- Loading branch information
Showing
25 changed files
with
451 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: End-to-end MGS workflow test for single-end run | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
test-run-dev-se: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: Setup Nextflow latest (stable) | ||
uses: nf-core/setup-nextflow@v1 | ||
with: | ||
version: "latest" | ||
|
||
- name: Install nf-test | ||
run: | | ||
wget -qO- https://get.nf-test.com | bash | ||
sudo mv nf-test /usr/local/bin/ | ||
- name: Run run_dev_se workflow | ||
run: nf-test test --tag run_dev_se --verbose |
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ test/.nextflow* | |
pipeline_report.txt | ||
|
||
.nf-test/ | ||
.nf-test.log | ||
.nf-test.log |
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,6 @@ | ||
// Universal flags for read type (single-end vs paired-end) | ||
|
||
params { | ||
// Whether the underlying data is paired-end or single-end | ||
single_end = new File(params.sample_sheet).text.readLines()[0].contains('fastq_2') ? false : true | ||
} |
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,34 @@ | ||
/************************************************ | ||
| CONFIGURATION FILE FOR NAO VIRAL MGS WORKFLOW | | ||
************************************************/ | ||
|
||
params { | ||
mode = "run_dev_se" | ||
|
||
// Directories | ||
base_dir = "s3://nao-mgs-simon/test_single_read" // Parent for working and output directories (can be S3) | ||
ref_dir = "s3://nao-mgs-wb/index/20241209/output" // Reference/index directory (generated by index workflow) | ||
|
||
// Files | ||
sample_sheet = "${launchDir}/samplesheet.csv" // Path to library TSV | ||
adapters = "${projectDir}/ref/adapters.fasta" // Path to adapter file for adapter trimming | ||
|
||
// Numerical | ||
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" | ||
} | ||
|
||
includeConfig "${projectDir}/configs/logging.config" | ||
includeConfig "${projectDir}/configs/containers.config" | ||
includeConfig "${projectDir}/configs/resources.config" | ||
includeConfig "${projectDir}/configs/profiles.config" | ||
includeConfig "${projectDir}/configs/output.config" | ||
includeConfig "${projectDir}/configs/read_type.config" | ||
process.queue = "simon-batch-queue" // AWS Batch job queue |
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
Oops, something went wrong.