Skip to content

Commit

Permalink
Merge pull request #1294 from atrigila/smrnaseq
Browse files Browse the repository at this point in the history
Add smrnaseq trimmed fastq test data
  • Loading branch information
atrigila authored Aug 22, 2024
2 parents 36cfbd8 + da2b12d commit 7211477
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samplesheet/v2.0/samplesheet_skipfastp.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sample,fastq_1
Clone1_N1,https://github.com/nf-core/test-datasets/raw/smrnaseq/testdata/trimmed/small_Clone1_N1.fastp.fastq.gz
Clone1_N3,https://github.com/nf-core/test-datasets/raw/smrnaseq/testdata/trimmed/small_Clone1_N3.fastp.fastq.gz
2 changes: 2 additions & 0 deletions testdata/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The data in this directory contains input files to start the pipeline from different protocols or settings.
1. Trimmed reads obtained from fastp. Useful to test the pipeline with the flag `--skip_fastp`: `trimmed` directory
24 changes: 24 additions & 0 deletions testdata/trimmed/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Sample data from FASTP. This data was obtained running `nextflow run smrnaseq -profile test,docker -r dev --save_merged` with the following custom `publishDir`:

```
withName: '.*:FASTQ_FASTQC_UMITOOLS_FASTP:FASTP' {
ext.args = [ "",
params.trim_fastq ? "" : "--disable_adapter_trimming",
params.clip_r1 > 0 ? "--trim_front1 ${params.clip_r1}" : "", // Remove bp from the 5' end of read 1.
params.three_prime_clip_r1 > 0 ? "--trim_tail1 ${params.three_prime_clip_r1}" : "", // Remove bp from the 3' end of read 1 AFTER adapter/quality trimming has been performed.
params.fastp_min_length > 0 ? "-l ${params.fastp_min_length}" : "",
params.fastp_max_length > 0 ? "--max_len1 ${params.fastp_max_length}" : "",
params.three_prime_adapter == "auto-detect" ? "" : "--adapter_sequence ${params.three_prime_adapter}"
].join(" ").trim()
publishDir = [
[
path: { "${params.outdir}/fastp/fastq" },
mode: params.publish_dir_mode,
pattern: "*.fastp.fastq.gz",
enabled: params.save_merged
]
]
}
```

Size was reduced with: `zcat Clone1_N3.fastp.fastq.gz | head -n 4000000 | gzip > small_Clone1_N3.fastp.fastq.gz`
Binary file added testdata/trimmed/small_Clone1_N1.fastp.fastq.gz
Binary file not shown.
Binary file not shown.

0 comments on commit 7211477

Please sign in to comment.