Esempio n. 1
0
def test_standalone_script():
    directory = tempfile.TemporaryDirectory()
    import sequana_pipelines.rnaseq.main as m
    sys.argv = [
        "test", "--input-directory", sharedir, "--genome-directory", saccer3,
        "--force", "--aligner", "bowtie2", "--feature-counts-feature-type",
        'gene,tRNA', "--rRNA-feature", "rRNA_gene"
    ]  # ideally should be rRNA but current
    m.main()
Esempio n. 2
0
def test_standalone_script_wrong_reference():
    directory = tempfile.TemporaryDirectory()
    import sequana_pipelines.rnaseq.main as m
    sys.argv = [
        "test", "--input-directory", sharedir, "--genome-directory", "dummy",
        "--force", "--aligner", "bowtie2", "--rRNA-feature", "rRNA_gene"
    ]  # ideally should be rRNA but current
    try:
        m.main()
        assert False
    except:
        assert True