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