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


Release history Release notifications

This version

2.1.1

Download files

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

Files for regref, version 2.1.1
Filename, size File type Python version Upload date Hashes
Filename, size regref-2.1.1-py3-none-any.whl (4.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size regref-2.1.1.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page