Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

83 строки
2.5 KiB

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