Munge tables of data
Project description
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file regref-2.1.1.tar.gz
.
File metadata
- Download URL: regref-2.1.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b68fc0fc6a046c3d52b8eb93127e5b1bff91d96d4cb7d1ee63ba4d674c7dd30 |
|
MD5 | 92cfa433038fca62b2e066fc20088d79 |
|
BLAKE2b-256 | 576b138735e7ff781d4bc1a8743a80a6679c1e939b3a115d73cd3f2ddc3795ce |
File details
Details for the file regref-2.1.1-py3-none-any.whl
.
File metadata
- Download URL: regref-2.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e943a49f6d9655f45278139ab05a355b4f529dbdb88c1be9941a13ff7bc95409 |
|
MD5 | 4bc2e667c3a4b338a0df50234e6f3e11 |
|
BLAKE2b-256 | 02d32483b7f9f5e1140eacf738136edf5a15e58b49e9a39f75fb32c569128a81 |