File: test_out.py

package info (click to toggle)
pyranges 0.0.111%2Bds-9
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 20,992 kB
  • sloc: python: 5,546; makefile: 37; sh: 6
file content (36 lines) | stat: -rw-r--r-- 729 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
def test_write_bed(chip_10, tmp_path):

    outfile = tmp_path / "deleteme.bed"
    chip_10.to_bed(outfile)


def test_write_bed_no_path(chip_10):

    result = chip_10.to_bed()
    assert isinstance(result, str)


def test_write_gtf(chip_10, tmp_path):

    outfile = tmp_path / "deleteme.gtf"
    chip_10.to_gtf(outfile)


def test_write_gff3(chip_10, tmp_path):

    outfile = tmp_path / "deleteme.gff3"
    chip_10.to_gff3(outfile)



def test_write_gtf_no_path(chip_10):

    result = chip_10.to_gtf()
    assert isinstance(result, str)


def test_write_bigwig(chip_10, tmp_path, chromsizes):

    outfile = tmp_path / "deleteme.bigwig"
    outpath = str(outfile)
    chip_10.to_bigwig(outpath, chromosome_sizes=chromsizes)