@@ -72,13 +72,29 @@ or higher. It only uses core modules, so no CPAN needed.
72
72
73
73
```
74
74
% ./samclip --version
75
- samclip 0.1.0
75
+ samclip 0.2
76
76
77
77
% ./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
79
95
```
80
96
81
- ## Usage
97
+ ## Examples
82
98
```
83
99
% samclip --ref ref.fa < in.sam > out.sam
84
100
@@ -92,13 +108,14 @@ Usage: samclip.pl --ref ref.fasta [--max=5] [-v/--invert] < in.sam > out.sam
92
108
## Options
93
109
94
110
* ` --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
97
114
* ` --debug ` is verbose debugging information for testing purposes
98
115
99
116
## Issues
100
117
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 )
102
119
103
120
## License
104
121
0 commit comments