To extract specific fasta sequences from a fasta file. By Guanliang MENG, see https://github.com/linzhi2013
Project description
extract_fasta_seq
1 Introduction
extract_fasta_seq
is a tool to extract specific fasta sequences from a fasta file. By Guanliang MENG, see https://github.com/linzhi2013/extract_fasta_seq
2 Installation
pip install extract_fasta_seq
There will be a command extract_fasta_seq
created under the same directory as your pip
command.
3 Usage
$ extract_fasta_seq
usage: extract_fasta_seq.py [-h] [-q <str> [<str> ...]] [-f <query file>]
[-s [<subject file>]] [-s1 <pattern>]
[-s2 <pattern>] [-d1 [<int>]] [-d2 [<int>]]
[-o [<outfile>]] [-v] [-V] [--lazy] [--version]
To extract specific fasta sequences from a fasta file. By Guanliang MENG, see
https://github.com/linzhi2013
optional arguments:
-h, --help show this help message and exit
-q <str> [<str> ...] query list. "-s1" and "-d1" have no effect on this
option.
-f <query file> query list file, one line should contain only one
queryid! (but can be mixed with others, and we can use
"-s1" and "-d1" option to extract the queryid)
-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? useful for
finding out all sequences in the subject_file whose
seqids equal to the queryids [0]
-o [<outfile>] outfile [stdout]
-v invert the output [False]
-V verbose output
--lazy Stop searching once each required seqid has at least
one sequence found, which can be problems if some
required seqids have more than sequences! Works only
for non-invert mode. [False]
--version show program's version number and exit
4 Author
Guanliang MENG
5 Citation
Currently I have no plan to publish extract_fasta_seq
.
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
extract_fasta_seq-0.0.1.tar.gz
(16.8 kB
view details)
File details
Details for the file extract_fasta_seq-0.0.1.tar.gz
.
File metadata
- Download URL: extract_fasta_seq-0.0.1.tar.gz
- Upload date:
- Size: 16.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9ea02867702ca09c6ac8fd5bf1db515406c25a2a599116c0ce7ba93c6f0c4ff |
|
MD5 | ddbe3d1120ce24511d61fc12107a70bd |
|
BLAKE2b-256 | 07f885f8ea8497a6e6a756884887964d1c92dc32cb587ede498610e0ed0e8db2 |