Skip to content

Commit b9ca880

Browse files
committed
docs fix for parse_genomic_range
1 parent 29a4114 commit b9ca880

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,9 +1043,9 @@ These SQL functions process a text value like `'chr1:2,345-6,789'` into its thre
10431043

10441044
=== "SQL"
10451045
``` sql
1046-
SELECT parse_genomic_range_sequence('chr1:2,345-6,789', 1) -- 'chr1'
1047-
SELECT parse_genomic_range_begin('chr1:2,345-6,789', 2) -- 2344 (!)
1048-
SELECT parse_genomic_range_end('chr1:2,345-6,789', 3) -- 6789
1046+
SELECT parse_genomic_range_sequence('chr1:2,345-6,789') -- 'chr1'
1047+
SELECT parse_genomic_range_begin('chr1:2,345-6,789') -- 2344 (!)
1048+
SELECT parse_genomic_range_end('chr1:2,345-6,789') -- 6789
10491049
```
10501050

10511051
❗ Since such text ranges are conventionally one-based and closed, `parse_genomic_range_begin()` effectively converts them to zero-based and half-open by [returning one less than the text begin position](https://genome.ucsc.edu/FAQ/FAQtracks#tracks1).

0 commit comments

Comments
 (0)