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