def test_tabulate_skipped_sample_warning():
"""Test that a warning is provided if sequences in the FASTA file are not
used because there is no corresponding sample in the metadata mapping"""
seqf = open("./tests/data/sequences_extra_sample.fasta")
metadata_mapping = read_metadata("./tests/data/metadata_mapping.txt",
"time_points", "time_mask")
with pytest.warns(UserWarning):
seqcount = tabulate(seqf, metadata_mapping, False)
seqf.close()
评论列表
文章目录