File tree Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import numpy as np
10
10
11
+ from bio2zarr .typing import PathType
11
12
from bio2zarr .utils import (
12
13
get_file_offset ,
13
14
open_gzip ,
14
15
read_bytes_as_tuple ,
15
16
read_bytes_as_value ,
16
17
)
17
- from sgkit .typing import PathType
18
18
19
19
CSI_EXTENSION = ".csi"
20
20
Original file line number Diff line number Diff line change 8
8
9
9
import numpy as np
10
10
11
+ from bio2zarr .typing import PathType
11
12
from bio2zarr .utils import (
12
13
get_file_offset ,
13
14
open_gzip ,
14
15
read_bytes_as_tuple ,
15
16
read_bytes_as_value ,
16
17
)
17
- from sgkit .typing import PathType
18
18
19
19
TABIX_EXTENSION = ".tbi"
20
20
TABIX_LINEAR_INDEX_INTERVAL_SIZE = 1 << 14 # 16kb interval size
Original file line number Diff line number Diff line change
1
+ from pathlib import Path
2
+ from typing import Union
3
+
4
+ PathType = Union [str , Path ]
Original file line number Diff line number Diff line change 7
7
8
8
from bio2zarr .csi import CSI_EXTENSION , read_csi
9
9
from bio2zarr .tbi import TABIX_EXTENSION , read_tabix
10
+ from bio2zarr .typing import PathType
10
11
from bio2zarr .utils import ceildiv , get_file_length
11
- from sgkit .typing import PathType
12
12
13
13
14
14
def region_string (contig : str , start : int , end : Optional [int ] = None ) -> str :
Original file line number Diff line number Diff line change 6
6
7
7
from cyvcf2 import VCF , Variant
8
8
9
- from sgkit .typing import PathType
9
+ from bio2zarr .typing import PathType
10
10
11
11
12
12
def path_for_test (shared_datadir : Path , file : str , is_path : bool = True ) -> PathType :
You can’t perform that action at this time.
0 commit comments