Skip to main content

Munge tables of data

Project description

stable Build Status

regref

To explain regref I will walk through the following example:

./regref.py test-data/z.tab '${2}' '${3}' < test-data/z.fna

z.fna is a FASTA file with mangled headers where all non-letter or number characters have been replaced with underscores.

z.tab is a table that contains the mangled names (in column 2) and the original names (in column 3).

The regref command reads the FASTA file from standard input and then replaces every occurance of the mangled string with the original string.

The arguments '${2}' and '${3}' refer to columns in z.tab by column number.

regref will replace every occurance of each pattern. The example below replaces the mangled string in a tree with a single-quoted orginal string.

./regref.py test-data/z.tab '${2}' "'\${3}'" < test-data/z.tre

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

regref-2.1.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

regref-2.1.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page