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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
|
import sys
from typing import Optional, List, Any
if sys.version_info < (3, 8):
from typing_extensions import Literal
else:
from typing import Literal
from pysam.libchtslib import HTSFile
_ParseResult = Any
class Parser:
def __init__(self, encoding: str = ...) -> None: ...
def get_encoding(self) -> str: ...
def set_encoding(self, encoding: str) -> None: ...
def __call__(self, buffer: str, length: int) -> _ParseResult: ...
class asTuple(Parser): ...
class asGFF3(Parser): ...
class asGTF(Parser): ...
class asBed(Parser): ...
class asVCF(Parser): ...
class TabixFile(HTSFile):
filename_index: bytes = ...
@property
def header(self) -> List[str]: ...
@property
def contigs(self) -> List[str]: ...
def __init__(
self,
filename: str,
mode: str = ...,
parser: Parser = ...,
index: Optional[str] = ...,
encoding: str = ...,
threads: int = ...,
*args,
**kwargs
) -> None: ...
def fetch(
self,
reference: Optional[str] = ...,
start: Optional[int] = ...,
end: Optional[int] = ...,
region: Optional[str] = ...,
parser: Optional[Parser] = ...,
multiple_iterators: bool = ...,
) -> Any: ...
def close(self) -> None: ...
class TabixIterator:
def __init__(self, encoding: str = ...) -> None: ...
def __iter__(self) -> TabixIterator: ...
def __next__(self) -> str: ...
class EmptyIterator:
def __iter__(self) -> Any: ...
def __next__(self) -> Any: ...
class TabixIteratorParsed(TabixIterator):
def __init__(self, parser: Parser) -> None: ...
def __next__(self) -> Any: ...
class GZIterator:
def __init__(
self, filename: str, bufer_size: int = ..., encoding: str = ...
) -> None: ...
def __iter__(self) -> GZIterator: ...
def __next__(self) -> str: ...
class GZIteratorHead(GZIterator): ...
class GZIteratorParsed(GZIterator):
def __init__(self, parser: Parser) -> None: ...
def __next__(self) -> _ParseResult: ...
def tabix_compress(filename_in: str, filename_out: str, force: bool = ...) -> None: ...
def tabix_index(
filename: str,
force: bool = ...,
seq_col: Optional[int] = ...,
start_col: Optional[int] = ...,
end_col: Optional[int] = ...,
preset: Optional[Literal["gff", "bed", "sam", "vcf", "psltbl", "pileup"]] = ...,
meta_char: str = ...,
line_skip: int = ...,
zerobased: bool = ...,
min_shift: int = ...,
index: Optional[str] = ...,
keep_original: bool = ...,
csi: bool = ...,
) -> str: ...
class tabix_file_iterator:
def __init__(self, infile: str, parser: Parser, buffer_size: int = ...) -> None: ...
def __iter__(self) -> tabix_file_iterator: ...
def __next__(self) -> _ParseResult: ...
class tabix_generic_iterator:
def __init__(self, infile: str, parser: Parser) -> None: ...
def __iter__(self) -> tabix_generic_iterator: ...
def __next__(self) -> _ParseResult: ...
def tabix_iterator(infile: str, parser: Optional[Parser]) -> _ParseResult: ...
# backwards compatibility
class Tabixfile(TabixFile): ...
|