GenomeComb
cg regselect file region_select_file ?near?
select all regions or variants in file that overlap with regions in region_select_file
Regions files are tab separated files that contain regions using the columns chromosome, begin, end. Regions must be sorted. regselect selects all regions or variants in file that overlap with regions in region_select_file. The resulting regions files is written to stdout.
You can also run the command from stdin by only giving one parameter (dropping the file parameter, the remaining parameter will be used as region_select_file)
Regions