Skip to content

Commit

Permalink
Documentation improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
grendeloz committed Aug 16, 2023
1 parent 23fcb3a commit 873e892
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# ngs
Multiple go packages for working with next-generation sequencing (ngs).

Each package has it's own README but there is a single CHANGELOG for the
whole repo.
2 changes: 2 additions & 0 deletions genome/genome.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Package genome has types and functions for operating on genomics files
// and data.
package genome

import (
Expand Down
1 change: 1 addition & 0 deletions gff3/gff3.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package gff3 has simple functions for operating on GFF3 files.
package gff3

import (
Expand Down
16 changes: 8 additions & 8 deletions selector/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# selector

A Selector is a string of the form operation:subject:pattern which can
A Selector is a string of the form `operation:subject:pattern` which can
be used to define select/filter operations on collections of records.

For example, selectors that could be used with GFF3 records might look
like:

keep:seqid:^GL
delete:type:.*_UTR
```
keep:seqid:^GL
delete:type:.*_UTR
```

In general, the effect of all selectors is to drop records from some
collection of records. Selectors with delete operations drop any record
Expand All @@ -20,12 +20,12 @@ pattern. Because delete only drops matching records, multiple delete
selectors, applied sequentially, with tight patterns can be used to
selectively prune away records that you don't wish to retain.

In cases where multiple selectors are allowed, they shoudl probably be
In cases where multiple selectors are allowed, they should probably be
applied sequentially in the order in which they are specified on the
command line, in the config file, etc.

The colon character ':' must not be used in the subject, operation or
pattern of a selector - it is strictly reserved as a separator for the
The colon character ':' must not be used in the `operation`, `subject`,
or pattern of a selector - it is strictly reserved as a separator for the
selector. The package has no easy way to enforce this requirement so
it's up to the user to watch for too many elements in a selector which
might suggest improper use of the colon.
4 changes: 4 additions & 0 deletions selector/selector.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Package selector is a trivial set of helper methods for defining
// operation:subject:pattern triples which can be used to describe
// filtering operations on collections of records.
// See the README.md for more details.
package selector

import (
Expand Down

0 comments on commit 873e892

Please sign in to comment.