diff options
author | Rolf Schröder <rolf.schr@gmail.com> | 2021-06-12 16:12:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-12 07:12:07 -0700 |
commit | e701fa49e7fc5f8aaef4ba680e012a14bce00c4b (patch) | |
tree | cf9a0eeeb27c7242e1aa809761f12017e5e6f716 /plugins/samtools/_samtools | |
parent | 26e9cead1a7c9264962986fdc3038ad7266c92bd (diff) | |
download | zsh-e701fa49e7fc5f8aaef4ba680e012a14bce00c4b.tar.gz zsh-e701fa49e7fc5f8aaef4ba680e012a14bce00c4b.tar.bz2 zsh-e701fa49e7fc5f8aaef4ba680e012a14bce00c4b.zip |
feat(plugins): New plugins for samtools and bedtools (#3574)
* Add first impl of samtools autocompletion
* Just autocomplete with files all the time
* Add init impl of bedtools completion
* Add readme.md for bedtools plugin
* Add readme for samtools
Co-authored-by: Rolf Schroeder <rolf.schroeder@centogene.com>
Diffstat (limited to 'plugins/samtools/_samtools')
-rw-r--r-- | plugins/samtools/_samtools | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/plugins/samtools/_samtools b/plugins/samtools/_samtools new file mode 100644 index 000000000..ddb002ae2 --- /dev/null +++ b/plugins/samtools/_samtools @@ -0,0 +1,40 @@ +#compdef samtools +#autoload + +local curcontext="$curcontext" state line ret=1 +local -a _files + +_arguments -C \ + '1: :->cmds' \ + '2:: :->args' && ret=0 + +case $state in + cmds) + _values "samtools command" \ + "view[SAM<->BAM conversion]" \ + "sort[sort alignment file]" \ + "mpileup[multi-way pileup]" \ + "depth[compute the depth]" \ + "faidx[index/extract FASTA]" \ + "tview[text alignment viewer]" \ + "index[index alignment]" \ + "idxstats[BAM index stats (r595 or later)]" \ + "fixmate[fix mate information]" \ + "flagstat[simple stats]" \ + "calmd[recalculate MD/NM tags and '=' bases]" \ + "merge[merge sorted alignments]" \ + "rmdup[remove PCR duplicates]" \ + "reheader[replace BAM header]" \ + "cat[concatenate BAMs]" \ + "bedcov[read depth per BED region]" \ + "targetcut[cut fosmid regions (for fosmid pool only)]" \ + "phase[phase heterozygotes]" \ + "bamshuf[shuffle and group alignments by name]" + ret=0 + ;; + *) + _files + ;; +esac + +return ret |