File: libcfaidx.pyi

package info (click to toggle)
python-pysam 0.20.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,348 kB
  • sloc: ansic: 137,388; python: 8,501; sh: 283; makefile: 263; perl: 41
file content (68 lines) | stat: -rw-r--r-- 2,172 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import array
from typing import Optional, Any, Sequence, Iterator

class FastaFile:
    def __init__(
        self,
        filename: str,
        filepath_index: Optional[str] = ...,
        filepath_index_compressed: Optional[str] = ...,
    ) -> None: ...
    def is_open(self) -> bool: ...
    def __len__(self) -> int: ...
    def close(self) -> None: ...
    def __enter__(self) -> FastaFile: ...
    def __exit__(self, type, value, traceback) -> Any: ...
    @property
    def closed(self) -> bool: ...
    @property
    def filename(self) -> str: ...
    @property
    def references(self) -> Sequence[str]: ...
    @property
    def nreferences(self) -> Optional[int]: ...
    @property
    def lengths(self) -> Sequence[int]: ...
    def fetch(
        self,
        reference: Optional[str] = ...,
        start: Optional[int] = ...,
        end: Optional[int] = ...,
        region: Optional[str] = ...,
    ) -> str: ...
    def get_reference_length(self, reference: str) -> int: ...
    def __getitem__(self, reference: str) -> str: ...
    def __contains__(self, reference: str) -> bool: ...

class FastxRecord:
    comment: str = ...
    quality: str = ...
    sequence: str = ...
    name: str = ...
    def __init__(
        self,
        name: Optional[str] = ...,
        comment: Optional[str] = ...,
        sequence: Optional[str] = ...,
        quality: Optional[str] = ...,
    ) -> None: ...
    def set_name(self, name: str) -> None: ...
    def set_comment(self, comment: str) -> None: ...
    def set_sequence(self, sequence: str, quality: Optional[str] = ...) -> None: ...
    def get_quality_array(self, offset: int = ...) -> array.array: ...

class FastxFile:
    def __init__(self, filename: str, persist: bool = ...) -> None: ...
    def is_open(self) -> bool: ...
    def close(self) -> None: ...
    def __enter__(self) -> FastxFile: ...
    def __exit__(self, type, value, traceback) -> Any: ...
    @property
    def closed(self) -> bool: ...
    @property
    def filename(self) -> str: ...
    def __iter__(self) -> Iterator[FastxRecord]: ...
    def __next__(self) -> FastxRecord: ...

# deprecated
class FastqFile(FastxFile): ...