Skip to content
Snippets Groups Projects
Commit d6a5bea0 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Update triming to have generalized paths.

parent 9b65c0bd
Branches
Tags
1 merge request!6Resolve "Bam Stats and Filter"
...@@ -3,14 +3,18 @@ ...@@ -3,14 +3,18 @@
import pytest import pytest
import os import os
test_data_path = os.path.dirname(os.path.abspath(__file__)) + \
'/../../test_data/'
test_output_path = os.path.dirname(os.path.abspath(__file__)) + \
'/../output/trimReads/'
def test_trim_reads_singleend(): def test_trim_reads_singleend():
raw_fastq = os.path.dirname(os.path.abspath(__file__)) + \ raw_fastq = test_data_path + 'ENCFF833BLU.fastq.gz'
'/../../test_data/ENCFF833BLU.fastq.gz' trimmed_fastq = test_output_path + 'ENCFF833BLU_trimmed.fq.gz'
trimmed_fastq = os.path.dirname(os.path.abspath(__file__)) + \ trimmed_fastq_report = test_output_path + \
'/../output/trimReads/ENCFF833BLU_trimmed.fq.gz' 'ENCFF833BLU.fastq.gz_trimming_report.txt'
trimmed_fastq_report = os.path.dirname(os.path.abspath(__file__)) + \
'/../output/trimReads/ENCFF833BLU.fastq.gz_trimming_report.txt'
assert os.path.getsize(raw_fastq) != os.path.getsize(trimmed_fastq) assert os.path.getsize(raw_fastq) != os.path.getsize(trimmed_fastq)
assert os.path.getsize(trimmed_fastq) == 2512853101 assert os.path.getsize(trimmed_fastq) == 2512853101
assert 'Trimming mode: single-end' in open(trimmed_fastq_report).readlines()[4] assert 'Trimming mode: single-end' in open(trimmed_fastq_report).readlines()[4]
......
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