Skip to content

find seq

masikol edited this page Oct 18, 2022 · 3 revisions

find-seq

Description

Script finds fasta record(s) in *.fasta(.gz) or *.fa(.gz) file by given sequence header and prints found record(s) to stdout.

Dependencies

The script is written in Python, so you need Python interpreter (version 3.X) to use it. Here you can download Python.

Options

-h (--help): print help message;

-v (--version): print version;

Usage

To find all fasta records in file some_seqs.fasta whose headers contain string length_114, you should run:

python3 find-seq.py length_114 some_seqs.fasta
Clone this wiki locally