Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

53 wiersze
1.6 KiB

  1. from pysam.utils import PysamDispatcher
  2. # samtools command line options to export in python
  3. SAMTOOLS_DISPATCH = {
  4. # samtools 'documented' commands
  5. "view": ("view", None),
  6. "sort": ("sort", None),
  7. "mpileup": ("mpileup", None),
  8. "depth": ("depth", None),
  9. "faidx": ("faidx", None),
  10. "fqidx": ("fqidx", None),
  11. "tview": ("tview", None),
  12. "index": ("index", None),
  13. "idxstats": ("idxstats", None),
  14. "fixmate": ("fixmate", None),
  15. "flagstat": ("flagstat", None),
  16. "calmd": ("calmd", None),
  17. "merge": ("merge", None),
  18. "markdup": ("markdup", None),
  19. "rmdup": ("rmdup", None),
  20. "reheader": ("reheader", None),
  21. "cat": ("cat", None),
  22. "targetcut": ("targetcut", None),
  23. "phase": ("phase", None),
  24. "bam2fq": ("bam2fq", None),
  25. "dict": ("dict", None),
  26. "addreplacerg": ("addreplacerg", None),
  27. "pad2unpad": ("pad2unpad", None),
  28. "depad": ("pad2unpad", None),
  29. "bedcov": ("bedcov", None),
  30. "coverage": ("coverage", None),
  31. "bamshuf": ("bamshuf", None),
  32. "collate": ("collate", None),
  33. "stats": ("stats", None),
  34. "fasta": ("fasta", None),
  35. "fastq": ("fastq", None),
  36. "quickcheck": ("quickcheck", None),
  37. "split": ("split", None),
  38. "flags": ("flags", None),
  39. "ampliconclip": ("ampliconclip", None),
  40. "ampliconstats": ("ampliconstats", None),
  41. "version": ("version", None),
  42. "fqimport": ("import", None),
  43. "samples": ("samples", None),
  44. }
  45. # instantiate samtools commands as python functions
  46. for key, options in SAMTOOLS_DISPATCH.items():
  47. cmd, parser = options
  48. globals()[key] = PysamDispatcher("samtools", cmd, parser)
  49. __all__ = list(SAMTOOLS_DISPATCH)