arq5x / bedtools

A powerful toolset for genome arithmetic.
http://code.google.com/p/bedtools/
GNU General Public License v2.0
139 stars 86 forks source link

[feature] slop without genome file #138

Open shouldsee opened 5 years ago

shouldsee commented 5 years ago

I would like to extract the centre of bed intervals by hijacking bedtools slop. A genome size file is unnecessary here since there is no way that an interval would go off a chromosome during shrinking. Can we turn off the -g argument in such cases?

cat example.bed | bedtools slop -s -l -0.5 -r -0.5 -pct -i -