An error occurred while loading the file. Please try again.
-
Gervaise Henry authored979e6af4
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
test_dataQC.py 587 B
#!/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.dataQC
def test_dataQC():
assert os.path.exists(os.path.join(test_output_path, 'Q-Y5F6_1M.se.sorted.deduped.tin.xls'))
assert countLines(os.path.join(test_output_path, 'Q-Y5F6_1M.se.sorted.deduped.tin.xls'))
def countLines(fileName):
data = False
file = open(fileName, "r")
file.readline()
if file.readlines()[6] != "geneID":
data = True
return data