Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

110 lignes
3.1 KiB

  1. import sys
  2. from typing import Optional, List, Any
  3. if sys.version_info < (3, 8):
  4. from typing_extensions import Literal
  5. else:
  6. from typing import Literal
  7. from pysam.libchtslib import HTSFile
  8. _ParseResult = Any
  9. class Parser:
  10. def __init__(self, encoding: str = ...) -> None: ...
  11. def get_encoding(self) -> str: ...
  12. def set_encoding(self, encoding: str) -> None: ...
  13. def __call__(self, buffer: str, length: int) -> _ParseResult: ...
  14. class asTuple(Parser): ...
  15. class asGFF3(Parser): ...
  16. class asGTF(Parser): ...
  17. class asBed(Parser): ...
  18. class asVCF(Parser): ...
  19. class TabixFile(HTSFile):
  20. filename_index: bytes = ...
  21. @property
  22. def header(self) -> List[str]: ...
  23. @property
  24. def contigs(self) -> List[str]: ...
  25. def __init__(
  26. self,
  27. filename: str,
  28. mode: str = ...,
  29. parser: Parser = ...,
  30. index: Optional[str] = ...,
  31. encoding: str = ...,
  32. threads: int = ...,
  33. *args,
  34. **kwargs
  35. ) -> None: ...
  36. def fetch(
  37. self,
  38. reference: Optional[str] = ...,
  39. start: Optional[int] = ...,
  40. end: Optional[int] = ...,
  41. region: Optional[str] = ...,
  42. parser: Optional[Parser] = ...,
  43. multiple_iterators: bool = ...,
  44. ) -> Any: ...
  45. def close(self) -> None: ...
  46. class TabixIterator:
  47. def __init__(self, encoding: str = ...) -> None: ...
  48. def __iter__(self) -> TabixIterator: ...
  49. def __next__(self) -> str: ...
  50. class EmptyIterator:
  51. def __iter__(self) -> Any: ...
  52. def __next__(self) -> Any: ...
  53. class TabixIteratorParsed(TabixIterator):
  54. def __init__(self, parser: Parser) -> None: ...
  55. def __next__(self) -> Any: ...
  56. class GZIterator:
  57. def __init__(
  58. self, filename: str, bufer_size: int = ..., encoding: str = ...
  59. ) -> None: ...
  60. def __iter__(self) -> GZIterator: ...
  61. def __next__(self) -> str: ...
  62. class GZIteratorHead(GZIterator): ...
  63. class GZIteratorParsed(GZIterator):
  64. def __init__(self, parser: Parser) -> None: ...
  65. def __next__(self) -> _ParseResult: ...
  66. def tabix_compress(filename_in: str, filename_out: str, force: bool = ...) -> None: ...
  67. def tabix_index(
  68. filename: str,
  69. force: bool = ...,
  70. seq_col: Optional[int] = ...,
  71. start_col: Optional[int] = ...,
  72. end_col: Optional[int] = ...,
  73. preset: Optional[Literal["gff", "bed", "sam", "vcf", "psltbl", "pileup"]] = ...,
  74. meta_char: str = ...,
  75. line_skip: int = ...,
  76. zerobased: bool = ...,
  77. min_shift: int = ...,
  78. index: Optional[str] = ...,
  79. keep_original: bool = ...,
  80. csi: bool = ...,
  81. ) -> str: ...
  82. class tabix_file_iterator:
  83. def __init__(self, infile: str, parser: Parser, buffer_size: int = ...) -> None: ...
  84. def __iter__(self) -> tabix_file_iterator: ...
  85. def __next__(self) -> _ParseResult: ...
  86. class tabix_generic_iterator:
  87. def __init__(self, infile: str, parser: Parser) -> None: ...
  88. def __iter__(self) -> tabix_generic_iterator: ...
  89. def __next__(self) -> _ParseResult: ...
  90. def tabix_iterator(infile: str, parser: Optional[Parser]) -> _ParseResult: ...
  91. # backwards compatibility
  92. class Tabixfile(TabixFile): ...