示例#1
0
def test_search_map_for_general_bed():
    bed_file = BedFileLoader(mock_dir_path + 'general.bed')
    column_map = bed_file.get_map_with_column_indexes()
    assert column_map[bed_file._BedFileLoader__region_id]['search'] is None
    assert column_map[bed_file._BedFileLoader__attributes]['search'] is None
    assert column_map[
        bed_file._BedFileLoader__submitted_region]['search'] is None
示例#2
0
def test_search_map_for_amplicon_cov():
    bed_file = BedFileLoader(mock_dir_path + 'amplicon_cov.tsv')
    column_map = bed_file.get_map_with_column_indexes()
    assert column_map[bed_file._BedFileLoader__region_id]['search'] is not None
    assert column_map[
        bed_file._BedFileLoader__attributes]['search'] is not None
    assert column_map[
        bed_file._BedFileLoader__submitted_region]['search'] is None
示例#3
0
def test_search_map_for_effective_regions():
    bed_file = BedFileLoader(mock_dir_path + 'effective_regions.bed')
    column_map = bed_file.get_map_with_column_indexes()
    assert column_map[bed_file._BedFileLoader__region_id]['search'] is not None
    assert column_map[
        bed_file._BedFileLoader__attributes]['search'] is not None
    assert column_map[
        bed_file._BedFileLoader__submitted_region]['search'] is not None