annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/python3.8/site-packages/pysam/libctabix.pyi @ 69:33d812a61356

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 17:55:14 -0400
parents
children
rev   line source
jpayne@69 1 import sys
jpayne@69 2 from typing import Optional, List, Any
jpayne@69 3
jpayne@69 4 if sys.version_info < (3, 8):
jpayne@69 5 from typing_extensions import Literal
jpayne@69 6 else:
jpayne@69 7 from typing import Literal
jpayne@69 8
jpayne@69 9 from pysam.libchtslib import HTSFile
jpayne@69 10
jpayne@69 11 _ParseResult = Any
jpayne@69 12
jpayne@69 13 class Parser:
jpayne@69 14 def __init__(self, encoding: str = ...) -> None: ...
jpayne@69 15 def get_encoding(self) -> str: ...
jpayne@69 16 def set_encoding(self, encoding: str) -> None: ...
jpayne@69 17 def __call__(self, buffer: str, length: int) -> _ParseResult: ...
jpayne@69 18
jpayne@69 19 class asTuple(Parser): ...
jpayne@69 20 class asGFF3(Parser): ...
jpayne@69 21 class asGTF(Parser): ...
jpayne@69 22 class asBed(Parser): ...
jpayne@69 23 class asVCF(Parser): ...
jpayne@69 24
jpayne@69 25 class TabixFile(HTSFile):
jpayne@69 26 filename_index: bytes = ...
jpayne@69 27 @property
jpayne@69 28 def header(self) -> List[str]: ...
jpayne@69 29 @property
jpayne@69 30 def contigs(self) -> List[str]: ...
jpayne@69 31 def __init__(
jpayne@69 32 self,
jpayne@69 33 filename: str,
jpayne@69 34 mode: str = ...,
jpayne@69 35 parser: Parser = ...,
jpayne@69 36 index: Optional[str] = ...,
jpayne@69 37 encoding: str = ...,
jpayne@69 38 threads: int = ...,
jpayne@69 39 *args,
jpayne@69 40 **kwargs
jpayne@69 41 ) -> None: ...
jpayne@69 42 def fetch(
jpayne@69 43 self,
jpayne@69 44 reference: Optional[str] = ...,
jpayne@69 45 start: Optional[int] = ...,
jpayne@69 46 end: Optional[int] = ...,
jpayne@69 47 region: Optional[str] = ...,
jpayne@69 48 parser: Optional[Parser] = ...,
jpayne@69 49 multiple_iterators: bool = ...,
jpayne@69 50 ) -> Any: ...
jpayne@69 51 def close(self) -> None: ...
jpayne@69 52
jpayne@69 53 class TabixIterator:
jpayne@69 54 def __init__(self, encoding: str = ...) -> None: ...
jpayne@69 55 def __iter__(self) -> TabixIterator: ...
jpayne@69 56 def __next__(self) -> str: ...
jpayne@69 57
jpayne@69 58 class EmptyIterator:
jpayne@69 59 def __iter__(self) -> Any: ...
jpayne@69 60 def __next__(self) -> Any: ...
jpayne@69 61
jpayne@69 62 class TabixIteratorParsed(TabixIterator):
jpayne@69 63 def __init__(self, parser: Parser) -> None: ...
jpayne@69 64 def __next__(self) -> Any: ...
jpayne@69 65
jpayne@69 66 class GZIterator:
jpayne@69 67 def __init__(
jpayne@69 68 self, filename: str, bufer_size: int = ..., encoding: str = ...
jpayne@69 69 ) -> None: ...
jpayne@69 70 def __iter__(self) -> GZIterator: ...
jpayne@69 71 def __next__(self) -> str: ...
jpayne@69 72
jpayne@69 73 class GZIteratorHead(GZIterator): ...
jpayne@69 74
jpayne@69 75 class GZIteratorParsed(GZIterator):
jpayne@69 76 def __init__(self, parser: Parser) -> None: ...
jpayne@69 77 def __next__(self) -> _ParseResult: ...
jpayne@69 78
jpayne@69 79 def tabix_compress(filename_in: str, filename_out: str, force: bool = ...) -> None: ...
jpayne@69 80 def tabix_index(
jpayne@69 81 filename: str,
jpayne@69 82 force: bool = ...,
jpayne@69 83 seq_col: Optional[int] = ...,
jpayne@69 84 start_col: Optional[int] = ...,
jpayne@69 85 end_col: Optional[int] = ...,
jpayne@69 86 preset: Optional[Literal["gff", "bed", "sam", "vcf", "psltbl", "pileup"]] = ...,
jpayne@69 87 meta_char: str = ...,
jpayne@69 88 line_skip: int = ...,
jpayne@69 89 zerobased: bool = ...,
jpayne@69 90 min_shift: int = ...,
jpayne@69 91 index: Optional[str] = ...,
jpayne@69 92 keep_original: bool = ...,
jpayne@69 93 csi: bool = ...,
jpayne@69 94 ) -> str: ...
jpayne@69 95
jpayne@69 96 class tabix_file_iterator:
jpayne@69 97 def __init__(self, infile: str, parser: Parser, buffer_size: int = ...) -> None: ...
jpayne@69 98 def __iter__(self) -> tabix_file_iterator: ...
jpayne@69 99 def __next__(self) -> _ParseResult: ...
jpayne@69 100
jpayne@69 101 class tabix_generic_iterator:
jpayne@69 102 def __init__(self, infile: str, parser: Parser) -> None: ...
jpayne@69 103 def __iter__(self) -> tabix_generic_iterator: ...
jpayne@69 104 def __next__(self) -> _ParseResult: ...
jpayne@69 105
jpayne@69 106 def tabix_iterator(infile: str, parser: Optional[Parser]) -> _ParseResult: ...
jpayne@69 107
jpayne@69 108 # backwards compatibility
jpayne@69 109 class Tabixfile(TabixFile): ...