_bedtools 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #compdef bedtools
  2. #autoload
  3. local curcontext="$curcontext" state line ret=1
  4. local -a _files
  5. _arguments -C \
  6. '1: :->cmds' \
  7. '2:: :->args' && ret=0
  8. case $state in
  9. cmds)
  10. _values "bedtools command" \
  11. "--contact[Feature requests, bugs, mailing lists, etc.]" \
  12. "--help[Print this help menu.]" \
  13. "--version[What version of bedtools are you using?.]" \
  14. "annotate[Annotate coverage of features from multiple files.]" \
  15. "bamtobed[Convert BAM alignments to BED (& other) formats.]" \
  16. "bamtofastq[Convert BAM records to FASTQ records.]" \
  17. "bed12tobed6[Breaks BED12 intervals into discrete BED6 intervals.]" \
  18. "bedpetobam[Convert BEDPE intervals to BAM records.]" \
  19. "bedtobam[Convert intervals to BAM records.]" \
  20. "closest[Find the closest, potentially non-overlapping interval.]" \
  21. "cluster[Cluster (but don't merge) overlapping/nearby intervals.]" \
  22. "complement[Extract intervals _not_ represented by an interval file.]" \
  23. "coverage[Compute the coverage over defined intervals.]" \
  24. "expand[Replicate lines based on lists of values in columns.]" \
  25. "fisher[Calculate Fisher statistic b/w two feature files.]" \
  26. "flank[Create new intervals from the flanks of existing intervals.]" \
  27. "genomecov[Compute the coverage over an entire genome.]" \
  28. "getfasta[Use intervals to extract sequences from a FASTA file.]" \
  29. "groupby[Group by common cols. & summarize oth. cols. (~ SQL "groupBy")]" \
  30. "igv[Create an IGV snapshot batch script.]" \
  31. "intersect[Find overlapping intervals in various ways.]" \
  32. "jaccard[Calculate the Jaccard statistic b/w two sets of intervals.]" \
  33. "links[Create a HTML page of links to UCSC locations.]" \
  34. "makewindows[Make interval "windows" across a genome.]" \
  35. "map[Apply a function to a column for each overlapping interval.]" \
  36. "maskfasta[Use intervals to mask sequences from a FASTA file.]" \
  37. "merge[Combine overlapping/nearby intervals into a single interval.]" \
  38. "multicov[Counts coverage from multiple BAMs at specific intervals.]" \
  39. "multiinter[Identifies common intervals among multiple interval files.]" \
  40. "nuc[Profile the nucleotide content of intervals in a FASTA file.]" \
  41. "overlap[Computes the amount of overlap from two intervals.]" \
  42. "pairtobed[Find pairs that overlap intervals in various ways.]" \
  43. "pairtopair[Find pairs that overlap other pairs in various ways.]" \
  44. "random[Generate random intervals in a genome.]" \
  45. "reldist[Calculate the distribution of relative distances b/w two files.]" \
  46. "sample[Sample random records from file using reservoir sampling.]" \
  47. "shuffle[Randomly redistrubute intervals in a genome.]" \
  48. "slop[Adjust the size of intervals.]" \
  49. "sort[Order the intervals in a file.]" \
  50. "subtract[Remove intervals based on overlaps b/w two files.]" \
  51. "tag[Tag BAM alignments based on overlaps with interval files.]" \
  52. "unionbedg[Combines coverage intervals from multiple BEDGRAPH files.]" \
  53. "window[Find overlapping intervals within a window around an interval.]" \
  54. ret=0
  55. ;;
  56. *)
  57. _files
  58. ;;
  59. esac
  60. return ret