Skip to main content

to get specific lines from the subject file which maps the query ids. Written by Guanliang MENG

Project description

extract_specific_lines

1 Introduction

extract_specific_lines is a tool to extract specific lines which maps the query ids (of the query file) from the subject file.

2 Installation

pip install extract_specific_lines

There will be a command extract_specific_lines created under the same directory as your pip command.

3 Usage

usage: extract_specific_lines.py [-h] [-q <str> [<str> ...]] [-f <query file>]
                                 [-s [<subject file>]] [-s1 <pattern>]
                                 [-s2 <pattern>] [-d1 [<int>]] [-d2 [<int>]]
                                 [-o [<outfile>]] [-v] [-V] [--version]

to extract specific lines from the subject file which maps the query ids.
written by Guanliang MENG

optional arguments:
  -h, --help            show this help message and exit
  -q <str> [<str> ...]  query list
  -f <query file>       query list file
  -s [<subject file>]   subject file [stdin]
  -s1 <pattern>         query file sep_pattern [\s+]
  -s2 <pattern>         subject file sep_pattern [\s+]
  -d1 [<int>]           which field in the query_file is to used? [0]
  -d2 [<int>]           which field in the subject_file is to used? [0]
  -o [<outfile>]        outfile [stdout]
  -v                    invert the output [False]
  -V                    verbose output
  --version             show program's version number and exit

Author

Guanliang MENG

Citation

Currently I have no plan to publish extract_specific_lines.

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

extract_specific_lines-0.0.2.tar.gz (16.4 kB view details)

Uploaded Source

File details

Details for the file extract_specific_lines-0.0.2.tar.gz.

File metadata

  • Download URL: extract_specific_lines-0.0.2.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4

File hashes

Hashes for extract_specific_lines-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ad753e0dc5a6b9ca8ae5f56b986b7cf5f7e61dd9cae5443034ebd0e384531aef
MD5 0389482c42d927a2772b1844e97618f1
BLAKE2b-256 b02711b03ea03d297b8ff27399335cca3d2ca0683659157c2b0aa4b03a34d185

See more details on using hashes here.

Supported by

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