Skip to content

Commit 98ed819

Browse files
committed
Update docs for --progress and help
1 parent 107d504 commit 98ed819

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

README.md

+23-6
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,29 @@ or higher. It only uses core modules, so no CPAN needed.
7272

7373
```
7474
% ./samclip --version
75-
samclip 0.1.0
75+
samclip 0.2
7676
7777
% ./samclip --help
78-
Usage: samclip.pl --ref ref.fasta [--max=5] [-v/--invert] < in.sam > out.sam
78+
SYNOPSIS
79+
Filter SAM file for soft & hard clipped alignments
80+
AUTHOR
81+
Torsten Seemann (@torstenseemann)
82+
USAGE
83+
% samclip --ref ref.fa < in.sam > out.sam
84+
% minimap2 ref.fa R1.fq R2.fq | samclip --ref ref.fa | samtools sort > out.bam
85+
OPTIONS
86+
--help This help
87+
--version Print version and exit
88+
--ref FASTA Reference genome - needs FASTA.fai index
89+
--max NUM Maximum clip length to allow (default=5)
90+
--invert Output rejected SAM lines and ignore good ones
91+
--debug Print verbose debug info to stderr
92+
--progress N Print progress every NUM records (default=100000,none=0)
93+
HOMEPAGE
94+
https://github.com/tseemann/samclip
7995
```
8096

81-
## Usage
97+
## Examples
8298
```
8399
% samclip --ref ref.fa < in.sam > out.sam
84100
@@ -92,13 +108,14 @@ Usage: samclip.pl --ref ref.fasta [--max=5] [-v/--invert] < in.sam > out.sam
92108
## Options
93109

94110
* `--ref FILE` should be a FASTA file indexed with `samtools faidx FILE`
95-
* `--max INTEGER` is the maximum soft+hard clipping to allow. Set to 0 to allow none.
96-
* `-v` or `--invert` will output the records that would have clipped and discard the good ones
111+
* `--max INTEGER` is the maximum soft+hard clipping to allow, use 0 to reject all bar contig edges
112+
* `--invert` will output the records that would have clipped and discard the good ones
113+
* `--progress N` will print a progress message every N records it processes, use 0 to disable
97114
* `--debug` is verbose debugging information for testing purposes
98115

99116
## Issues
100117

101-
Submit feedback to the [Issue Tracker](https://github.com/tseemann/samclip/issues).
118+
Submit feedback to the [Issue Tracker](https://github.com/tseemann/samclip/issues)
102119

103120
## License
104121

0 commit comments

Comments
 (0)