annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/python3.8/site-packages/pysam/libchtslib.pyi @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
rev   line source
jpayne@68 1 import sys
jpayne@68 2 from typing import List, Union, NoReturn, Iterable, Any, Tuple, Optional, TypeVar
jpayne@68 3
jpayne@68 4 if sys.version_info < (3, 8):
jpayne@68 5 from typing_extensions import Protocol
jpayne@68 6 else:
jpayne@68 7 from typing import Protocol
jpayne@68 8
jpayne@68 9 class _HasFileNo(Protocol):
jpayne@68 10 def fileno(self) -> int: ...
jpayne@68 11
jpayne@68 12 def get_verbosity() -> int: ...
jpayne@68 13 def set_verbosity(level: int): ...
jpayne@68 14
jpayne@68 15 THFile = TypeVar("THFile", bound="HFile")
jpayne@68 16
jpayne@68 17 class HFile:
jpayne@68 18 def __init__(self, name: Union[int, str], mode: str = ...) -> None: ...
jpayne@68 19 def __enter__(self: THFile) -> THFile: ...
jpayne@68 20 def __exit__(self, type, value, tb): ...
jpayne@68 21 def __iter__(self) -> Any: ...
jpayne@68 22 def __next__(self) -> str: ...
jpayne@68 23 @property
jpayne@68 24 def closed(self) -> bool: ...
jpayne@68 25 @property
jpayne@68 26 def mode(self) -> str: ...
jpayne@68 27 @property
jpayne@68 28 def name(self) -> Union[int, str]: ...
jpayne@68 29 def close(self) -> None: ...
jpayne@68 30 def fileno(self) -> int: ...
jpayne@68 31 def flush(self) -> None: ...
jpayne@68 32 def isatty(self) -> bool: ...
jpayne@68 33 def readable(self) -> bool: ...
jpayne@68 34 def read(self, size: int = ...) -> bytes: ...
jpayne@68 35 def readall(self) -> bytes: ...
jpayne@68 36 def readinto(self, buf: Any) -> bytes: ...
jpayne@68 37 def readline(self, size: int = ...) -> bytes: ...
jpayne@68 38 def readlines(self) -> List[bytes]: ...
jpayne@68 39 def seek(self, offset: int, whence: int = ...) -> int: ...
jpayne@68 40 def seekable(self) -> bool: ...
jpayne@68 41 def tell(self) -> int: ...
jpayne@68 42 def truncate(self, *args) -> NoReturn: ...
jpayne@68 43 def writable(self) -> bool: ...
jpayne@68 44 def write(self, b: bytes) -> int: ...
jpayne@68 45 def writelines(self, lines: Iterable[bytes]) -> None: ...
jpayne@68 46
jpayne@68 47 THTSFile = TypeVar("THTSFile", bound="HTSFile")
jpayne@68 48
jpayne@68 49 class HTSFile:
jpayne@68 50 def __enter__(self: THTSFile) -> THTSFile: ...
jpayne@68 51 def __exit__(self, type, value, traceback) -> Any: ...
jpayne@68 52 @property
jpayne@68 53 def filename(self) -> Any: ...
jpayne@68 54 @property
jpayne@68 55 def mode(self) -> str: ...
jpayne@68 56 @property
jpayne@68 57 def threads(self) -> int: ...
jpayne@68 58 @property
jpayne@68 59 def index_filename(self) -> Optional[str]: ...
jpayne@68 60 @property
jpayne@68 61 def is_stream(self) -> bool: ...
jpayne@68 62 @property
jpayne@68 63 def is_remote(self) -> bool: ...
jpayne@68 64 @property
jpayne@68 65 def duplicate_filehandle(self) -> bool: ...
jpayne@68 66 def close(self) -> None: ...
jpayne@68 67 def flush(self) -> None: ...
jpayne@68 68 def check_truncation(self, ignore_truncation: bool = ...) -> None: ...
jpayne@68 69 @property
jpayne@68 70 def category(self) -> str: ...
jpayne@68 71 @property
jpayne@68 72 def format(self) -> str: ...
jpayne@68 73 @property
jpayne@68 74 def version(self) -> Tuple[int, int]: ...
jpayne@68 75 @property
jpayne@68 76 def compression(self) -> str: ...
jpayne@68 77 @property
jpayne@68 78 def description(self) -> str: ...
jpayne@68 79 @property
jpayne@68 80 def is_open(self) -> bool: ...
jpayne@68 81 @property
jpayne@68 82 def is_closed(self) -> bool: ...
jpayne@68 83 @property
jpayne@68 84 def closed(self) -> bool: ...
jpayne@68 85 @property
jpayne@68 86 def is_write(self) -> bool: ...
jpayne@68 87 @property
jpayne@68 88 def is_read(self) -> bool: ...
jpayne@68 89 @property
jpayne@68 90 def is_sam(self) -> bool: ...
jpayne@68 91 @property
jpayne@68 92 def is_bam(self) -> bool: ...
jpayne@68 93 @property
jpayne@68 94 def is_cram(self) -> bool: ...
jpayne@68 95 @property
jpayne@68 96 def is_vcf(self) -> bool: ...
jpayne@68 97 @property
jpayne@68 98 def is_bcf(self) -> bool: ...
jpayne@68 99 def reset(self) -> None: ...
jpayne@68 100 def seek(self, offset: int, whence: int = ...) -> int: ...
jpayne@68 101 def tell(self) -> int: ...
jpayne@68 102 def add_hts_options(self, format_options: Optional[List[str]] = ...) -> None: ...
jpayne@68 103 def parse_region(
jpayne@68 104 self,
jpayne@68 105 contig: Optional[str] = ...,
jpayne@68 106 start: Optional[int] = ...,
jpayne@68 107 stop: Optional[int] = ...,
jpayne@68 108 region: Optional[str] = ...,
jpayne@68 109 tid: Optional[int] = ...,
jpayne@68 110 reference: Optional[str] = ...,
jpayne@68 111 end: Optional[int] = ...,
jpayne@68 112 ) -> Tuple[int, int, int, int]: ...
jpayne@68 113 def is_valid_tid(self, tid: int) -> bool: ...
jpayne@68 114 def is_valid_reference_name(self, contig: str) -> bool: ...
jpayne@68 115 def get_tid(self, contig: str) -> int: ...
jpayne@68 116 def get_reference_name(self, tid: int) -> Optional[str]: ...