---
name: "Bio::Graphics::Browser2::Region"
section: "3pm"
platform: "linux"
package: "gbrowse"
version: "2.56+dfsg-12"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Bio::Graphics::Browser2::Region"
---

# Bio::Graphics::Browser2::Region(3pm)

## NAME

Bio::Graphics::Browser2::Region -- Provide method for fetching and manipulating regions

### $whole = $db-\>whole\_segment ($segment,$settings);

Given a detail segment, return the whole seq\_id that contains it

### $region = $db-\>region\_segment ($segment,$settings \[,$whole\]);

Given a detail segment and the current settings, return the region centered on the segment. The whole segment can be passed if desired -- this will avoid a redundant lookup.
