nf-core_modules/tests/modules/seqtk/sample/main.nf

30 lines
851 B
Text
Raw Normal View History

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { SEQTK_SAMPLE } from '../../../../modules/seqtk/sample/main.nf' addParams( options: [ 'args': '-s100', 'suffix':'.sampled' ] )
//
// Test with single-end data
//
workflow test_seqtk_sample_single_end {
input = [ [ id:'test', single_end:true ], // meta map
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true) ]
Feat seqtk update (#503) * hifiasm copied from fastqc * hifiasm tests init from fastqc * meta.yml init; test.yml and main.nf for printing version * Add hifiasm version printing * Removed spaced on an empty line * Reverted hifiasm from main * hifiasm copied from fastqc * hifiasm tests init from fastqc * meta.yml init; test.yml and main.nf for printing version * Add hifiasm version printing * Removed spaced on an empty line * Reverted hifiasm from main * Added seqtk/subseq and checking for seed in seqtk/sample * Separate authors in software/seqtk/sample/meta.yml Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Align commans in output channesl software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Define prefix in software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Use prefix in output file name software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Define suffix in options in tests/software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Change output file name in tests/software/seqtk/subseq/test.yml Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Remove a to-do point from tests/software/seqtk/subseq/test.yml Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Added --no-name into gzip commands * Update samtools from 1.10 to 1.12 (#530) * feat: remove social preview image to use GitHub OpenGraph * feat: update samtools from 1.10 to 1.12 * fix: CI tests * fix: add meta.yml file for samtools/merge * Update software/samtools/merge/meta.yml Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com> * Update software/samtools/merge/meta.yml Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com> * hifiasm copied from fastqc * hifiasm tests init from fastqc * meta.yml init; test.yml and main.nf for printing version * Add hifiasm version printing * Removed spaced on an empty line * Reverted hifiasm from main * Added seqtk/subseq and checking for seed in seqtk/sample * hifiasm copied from fastqc * hifiasm tests init from fastqc * meta.yml init; test.yml and main.nf for printing version * Add hifiasm version printing * Removed spaced on an empty line * Reverted hifiasm from main * Separate authors in software/seqtk/sample/meta.yml Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Align commans in output channesl software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Define prefix in software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Use prefix in output file name software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Define suffix in options in tests/software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Change output file name in tests/software/seqtk/subseq/test.yml Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Remove a to-do point from tests/software/seqtk/subseq/test.yml Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Added --no-name into gzip commands * Replaced functions.nf in seqtk/subseq * Refreshed tests for sample and subseq * Corrected paired-end test and YAML description for sample Co-authored-by: Sviatoslav Sidorov <sviatoslav.sidorov@crick.ac.uk> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> Co-authored-by: Maxime U. Garcia <max.u.garcia@gmail.com> Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com>
2021-06-14 07:23:15 -04:00
SEQTK_SAMPLE ( input, 50 )
}
//
// Test with paired-end data
//
workflow test_seqtk_sample_paired_end {
input = [ [ id:'test', single_end:false ], // meta map
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true),
file(params.test_data['sarscov2']['illumina']['test_2_fastq_gz'], checkIfExists: true) ]
]
Feat seqtk update (#503) * hifiasm copied from fastqc * hifiasm tests init from fastqc * meta.yml init; test.yml and main.nf for printing version * Add hifiasm version printing * Removed spaced on an empty line * Reverted hifiasm from main * hifiasm copied from fastqc * hifiasm tests init from fastqc * meta.yml init; test.yml and main.nf for printing version * Add hifiasm version printing * Removed spaced on an empty line * Reverted hifiasm from main * Added seqtk/subseq and checking for seed in seqtk/sample * Separate authors in software/seqtk/sample/meta.yml Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Align commans in output channesl software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Define prefix in software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Use prefix in output file name software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Define suffix in options in tests/software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Change output file name in tests/software/seqtk/subseq/test.yml Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Remove a to-do point from tests/software/seqtk/subseq/test.yml Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Added --no-name into gzip commands * Update samtools from 1.10 to 1.12 (#530) * feat: remove social preview image to use GitHub OpenGraph * feat: update samtools from 1.10 to 1.12 * fix: CI tests * fix: add meta.yml file for samtools/merge * Update software/samtools/merge/meta.yml Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com> * Update software/samtools/merge/meta.yml Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com> * hifiasm copied from fastqc * hifiasm tests init from fastqc * meta.yml init; test.yml and main.nf for printing version * Add hifiasm version printing * Removed spaced on an empty line * Reverted hifiasm from main * Added seqtk/subseq and checking for seed in seqtk/sample * hifiasm copied from fastqc * hifiasm tests init from fastqc * meta.yml init; test.yml and main.nf for printing version * Add hifiasm version printing * Removed spaced on an empty line * Reverted hifiasm from main * Separate authors in software/seqtk/sample/meta.yml Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Align commans in output channesl software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Define prefix in software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Use prefix in output file name software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Define suffix in options in tests/software/seqtk/subseq/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Change output file name in tests/software/seqtk/subseq/test.yml Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Remove a to-do point from tests/software/seqtk/subseq/test.yml Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Added --no-name into gzip commands * Replaced functions.nf in seqtk/subseq * Refreshed tests for sample and subseq * Corrected paired-end test and YAML description for sample Co-authored-by: Sviatoslav Sidorov <sviatoslav.sidorov@crick.ac.uk> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> Co-authored-by: Maxime U. Garcia <max.u.garcia@gmail.com> Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com>
2021-06-14 07:23:15 -04:00
SEQTK_SAMPLE ( input, 50 )
}