Skip to content
Snippets Groups Projects
Commit c78024de authored by Spencer Barnes's avatar Spencer Barnes
Browse files

update peak annotation pytest

parent 375b9e56
Branches
Tags
2 merge requests!73Release 1.1.3,!72Issue3087 annotation fix
Pipeline #7818 passed with stages
in 1 day, 8 hours, 22 minutes, and 13 seconds
......@@ -25,8 +25,10 @@ def test_annotation_singleend():
annotation_file = test_output_path + 'ENCSR238SGC.chipseeker_annotation.tsv'
assert os.path.exists(annotation_file)
assert utils.count_lines(annotation_file) >= 149284
df = pd.read_csv(annotation_file, sep = "\t")
assert df['symbol'].notna().all()
df = pd.read_csv(annotation_file, sep = "\t", header = 0)
print(df.head())
#assert df['symbol'].notna().all()
assert not(df['symbol'].isnull().values.any())
@pytest.mark.pairedend
......@@ -44,5 +46,7 @@ def test_annotation_pairedend():
annotation_file = test_output_path + 'ENCSR729LGA.chipseeker_annotation.tsv'
assert os.path.exists(annotation_file)
assert utils.count_lines(annotation_file) >= 25367
df = pd.read_csv(annotation_file, sep = "\t")
assert df['symbol'].notna().all()
df = pd.read_csv(annotation_file, sep = "\t", header = 0)
print(df.head())
#assert df['symbol'].notna().all()
assert not(df['symbol'].isnull().values.any())
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