Skip to content
Snippets Groups Projects
Commit 8e3cf6c4 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Add unit test for downsampleData

parent 3b4d0255
Branches
Tags
2 merge requests!37v0.0.1,!28Resolve "Move inference to start of pipeline"
Pipeline #6344 failed with stages
in 4 minutes and 7 seconds
......@@ -50,6 +50,12 @@ trimData:
- singularity run 'docker://bicf/trimgalore:1.1' trim_galore --gzip -q 25 --illumina --length 35 --paired --basename Q-Y5JA_1M.pe -j `nproc` ./test_data/fastq/small/Q-Y5JA_1M.R1.fastq.gz ./test_data/fastq/small/Q-Y5JA_1M.R2.fastq.gz
- pytest -m trimData
downsampleData:
stage: unit
script:
- singularity run 'docker://bicf/seqtk:2.0.0' seqtk sample -s100 ./test_data/fastq/small/Q-Y5JA_1M_trimmed.fq.gz 1000 1> sampled.1.fq
- pytest -m downsampleData
alignData:
stage: unit
script:
......
#!/usr/bin/env python3
import pytest
import pandas as pd
from io import StringIO
import os
test_output_path = os.path.dirname(os.path.abspath(__file__)) + \
'/../../'
@pytest.mark.downsampleData
def test_downsampleData():
assert os.path.exists(os.path.join(test_output_path, 'sampled.1.fq'))
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment