Skip to the content.

Bio::ToolBox

Home Install Libraries Applications Examples FAQ

get_intersecting_features.pl

A program to pull out overlapping features from the database.

SYNOPSIS

get_intersecting_features.pl [–options] <filename>

File options:
-i --in <filename>                input file
-o --out <filename>               optionally output file

Database options:
-d --db <database>                database to search: name or sqlite
-f --feature <text>               db feature to search

Modify search range:
-b --begin --start <integer>      adjust relative search start coordinate
-e --end --stop <integer>         adjust relative search stop coordinate
-p --pos [5 | m | 3]              relative position of search coordinate
-x --extend <integer>             extend search in both directions
-r --ref [start | mid]            measure distance from which coordinate

General options:
-z --gz                           compress output
-v --version                      print version and exit
-h --help                         show extended documentation

OPTIONS

The command line flags and descriptions:

File options:

Database options

Modify search range

General options

DESCRIPTION

This program will take a list of reference features and identify target features which intersect them. The reference features may be either named features (name and type) or genomic regions (chromosome, start, stop). By default, the search region for each reference feature is the entire feature, but may be restricted or expanded in size with appropriate modifiers (–start, –stop, –extend). The target features are specifed as specific types.

Several attributes of the found features are appended to the original input file data. First, the number of target features are reported. If more than one are found, the feature with the most overlap with the reference feature is preferentially listed. The name, type, and strand of the selected target feature is reported. Finally, the distance from the reference feature to the target feature is reported. The reference points for measuring the distance is by default the start or 5’ end of the features, or optionally the midpoints. Note that the distance measurement is relative to the coordinates after adjustment with the –start, --stop, and –extend options.

AUTHOR

Timothy J. Parnell, PhD
Howard Hughes Medical Institute
Dept of Oncological Sciences
Huntsman Cancer Institute
University of Utah
Salt Lake City, UT, 84112

This package is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.