How to use the genomepy.functions function in genomepy

To help you get started, we’ve selected a few genomepy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vanheeringen-lab / genomepy / tests / test_09_functions.py View on Github external
def test__is_genome_dir():
    # dir contains a fasta
    assert genomepy.functions._is_genome_dir("tests/data")
    # dir does not contain a fasta
    assert not genomepy.functions._is_genome_dir("tests/genome")
github vanheeringen-lab / genomepy / tests / test_genomepy.py View on Github external
def test_track_type():
    tracks = [
        (("chr1:10-20", "chr2:10-20"), "interval"),
        (["chr1:10-20", "chr2:10-20"], "interval"),
        ("tests/data/regions.txt", "interval"),
        ("tests/data/regions.bed", "bed"),
    ]

    for track, track_type in tracks:
        result = genomepy.functions.get_track_type(track)
        assert result == track_type
github vanheeringen-lab / genomepy / tests / test_01_basics.py View on Github external
def test_track_type():
    tracks = [
        (("chr1:10-20", "chr2:10-20"), "interval"),
        (["chr1:10-20", "chr2:10-20"], "interval"),
        ("tests/data/regions.txt", "interval"),
        ("tests/data/regions.bed", "bed"),
    ]

    for track, track_type in tracks:
        result = genomepy.functions.get_track_type(track)
        assert result == track_type
github vanheeringen-lab / genomepy / tests / test_09_functions.py View on Github external
def test_manage_config():
    # will give a NameError if the config/config dir is missing
    genomepy.functions.manage_config("file")
    genomepy.functions.manage_config("show")
github vanheeringen-lab / genomepy / tests / test_genomepy.py View on Github external
def test_basic():
    cfg = genomepy.functions.config
    print(cfg)
    assert 3 == len(cfg.keys())
github vanheeringen-lab / genomepy / tests / test_01_basics.py View on Github external
def test_basic():
    cfg = genomepy.functions.config
    print(cfg)
    assert 3 == len(cfg.keys())