4
**slopBed** will increase the size of each feature in a feature file be a user-defined number of bases. While
5
something like this could be done with an "**awk '{OFS="\t" print $1,$2-<slop>,$3+<slop>}'**",
6
**slopBed** will restrict the resizing to the size of the chromosome (i.e. no start < 0 and no end >
10
==========================================================================
11
5.14.1 Usage and option summary
12
==========================================================================
15
slopBed [OPTIONS] -i <BED/GFF/VCF> -g <GENOME> [-b or (-l and -r)]
17
=========================== ===============================================================================================================================================================================================================
19
=========================== ===============================================================================================================================================================================================================
20
**-b** Increase the BED/GFF/VCF entry by the same number base pairs in each direction. *Integer*.
21
**-l** The number of base pairs to subtract from the start coordinate. *Integer*.
22
**-r** The number of base pairs to add to the end coordinate. *Integer*.
23
**-s** Define -l and -r based on strand. For example. if used, -l 500 for a negative-stranded feature, it will add 500 bp to the *end* coordinate.
24
=========================== ===============================================================================================================================================================================================================
28
==========================================================================
29
5.14.2 Default behavior
30
==========================================================================
31
By default, **slopBed** will either add a fixed number of bases in each direction (**-b**) or an asymmetric
32
number of bases in each direction (**-l** and **-r**).
43
slopBed -i A.bed -g my.genome -b 5
47
slopBed -i A.bed -g my.genome -l 2 -r 3
52
However, if the requested number of bases exceeds the boundaries of the chromosome, **slopBed** will
53
"clip" the feature accordingly.
62
slopBed -i A.bed -g my.genome -b 5000
68
==========================================================================
69
5.14.3 Resizing features according to strand
70
==========================================================================
71
**slopBed** will optionally increase the size of a feature based on strand.
82
slopBed -i A.bed -g my.genome -l 50 -r 80 -s