コード例 #1
0
ファイル: test_main.py プロジェクト: sequana/rnaseq
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()
コード例 #2
0
ファイル: test_main.py プロジェクト: sequana/rnaseq
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