annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/python3.8/site-packages/pysam/libcfaidx.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 array
jpayne@68 2 from typing import Optional, Any, Sequence, Iterator
jpayne@68 3
jpayne@68 4 class FastaFile:
jpayne@68 5 def __init__(
jpayne@68 6 self,
jpayne@68 7 filename: str,
jpayne@68 8 filepath_index: Optional[str] = ...,
jpayne@68 9 filepath_index_compressed: Optional[str] = ...,
jpayne@68 10 ) -> None: ...
jpayne@68 11 def is_open(self) -> bool: ...
jpayne@68 12 def __len__(self) -> int: ...
jpayne@68 13 def close(self) -> None: ...
jpayne@68 14 def __enter__(self) -> FastaFile: ...
jpayne@68 15 def __exit__(self, type, value, traceback) -> Any: ...
jpayne@68 16 @property
jpayne@68 17 def closed(self) -> bool: ...
jpayne@68 18 @property
jpayne@68 19 def filename(self) -> str: ...
jpayne@68 20 @property
jpayne@68 21 def references(self) -> Sequence[str]: ...
jpayne@68 22 @property
jpayne@68 23 def nreferences(self) -> Optional[int]: ...
jpayne@68 24 @property
jpayne@68 25 def lengths(self) -> Sequence[int]: ...
jpayne@68 26 def fetch(
jpayne@68 27 self,
jpayne@68 28 reference: Optional[str] = ...,
jpayne@68 29 start: Optional[int] = ...,
jpayne@68 30 end: Optional[int] = ...,
jpayne@68 31 region: Optional[str] = ...,
jpayne@68 32 ) -> str: ...
jpayne@68 33 def get_reference_length(self, reference: str) -> int: ...
jpayne@68 34 def __getitem__(self, reference: str) -> str: ...
jpayne@68 35 def __contains__(self, reference: str) -> bool: ...
jpayne@68 36
jpayne@68 37
jpayne@68 38 class FastqProxy:
jpayne@68 39 @property
jpayne@68 40 def name(self) -> str: ...
jpayne@68 41 @property
jpayne@68 42 def sequence(self) -> str: ...
jpayne@68 43 @property
jpayne@68 44 def comment(self) -> Optional[str]: ...
jpayne@68 45 @property
jpayne@68 46 def quality(self) -> Optional[str]: ...
jpayne@68 47 def to_string(self) -> str: ...
jpayne@68 48 def get_quality_array(self, offset: int = ...) -> Optional[array.array]: ...
jpayne@68 49
jpayne@68 50
jpayne@68 51 class FastxRecord:
jpayne@68 52 comment: Optional[str] = ...
jpayne@68 53 quality: Optional[str] = ...
jpayne@68 54 sequence: Optional[str] = ...
jpayne@68 55 name: Optional[str] = ...
jpayne@68 56 def __init__(
jpayne@68 57 self,
jpayne@68 58 name: Optional[str] = ...,
jpayne@68 59 comment: Optional[str] = ...,
jpayne@68 60 sequence: Optional[str] = ...,
jpayne@68 61 quality: Optional[str] = ...,
jpayne@68 62 ) -> None: ...
jpayne@68 63 def set_name(self, name: str) -> None: ...
jpayne@68 64 def set_comment(self, comment: str) -> None: ...
jpayne@68 65 def set_sequence(self, sequence: str, quality: Optional[str] = ...) -> None: ...
jpayne@68 66 def get_quality_array(self, offset: int = ...) -> array.array: ...
jpayne@68 67
jpayne@68 68 class FastxFile:
jpayne@68 69 def __init__(self, filename: str, persist: bool = ...) -> None: ...
jpayne@68 70 def is_open(self) -> bool: ...
jpayne@68 71 def close(self) -> None: ...
jpayne@68 72 def __enter__(self) -> FastxFile: ...
jpayne@68 73 def __exit__(self, type, value, traceback) -> Any: ...
jpayne@68 74 @property
jpayne@68 75 def closed(self) -> bool: ...
jpayne@68 76 @property
jpayne@68 77 def filename(self) -> str: ...
jpayne@68 78 def __iter__(self) -> Iterator[FastxRecord]: ...
jpayne@68 79 def __next__(self) -> FastxRecord: ...
jpayne@68 80
jpayne@68 81 # deprecated
jpayne@68 82 class FastqFile(FastxFile): ...