一个用于设计紧凑而全面的捕获探针集的软件包。
CATCH is a Python package for designing probe sets to use for nucleic acid capture of diverse sequence.
CATCH requires:
CATCH is tested with Python 3.8, 3.9, and 3.10 on Linux (Ubuntu) and macOS, with the above NumPy and SciPy versions. CATCH may also work with older versions of Python, NumPy, and SciPy, as well as with other operating systems, but is not tested with them.
Installing CATCH with pip (or conda), as described below, will install NumPy and SciPy if they are not already installed.
Note: This section is optional, but may be useful to users who are new to Python.
It is generally helpful to install and run Python packages inside of a virtual environment, especially if you have multiple versions of Python installed or use multiple packages. This can prevent problems when upgrading, conflicts between packages with different requirements, installation issues that arise from having different Python versions available, and more.
One option to manage packages and environments is to use conda. A fast way to obtain conda is to install Miniconda: you can download it here and find installation instructions for it here. For example, on Linux you would run:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.shOnce you have conda, you can create an environment for CATCH with Python 3.8:
conda create -n catch python=3.8Then, you can activate the catch environment:
conda activate catchAfter the environment is created and activated, you can install CATCH as described immediately below or by using the conda package. You will need to activate the environment each time you use CATCH.
An easy way to setup CATCH is to clone the repository and install with pip:
git clone https://github.com/broadinstitute/catch.git
cd catch
pip install -e .If you do not have write permissions in the installation directory, you may need to supply --user to pip install.
Note: This section is optional and not required for using CATCH.
CATCH uses Python's unittest framework.
To execute all tests, run:
python -m unittest discoverCATCH is also available through the conda package manager as part of the bioconda channel. If you use conda, the easiest way to install CATCH is by running:
conda install -c bioconda catchThere are 3 ways of using CATCH to consider. They are all related — in that they wrap around the command described in Option #1 — but they can have large differences in their required computational resources (runtime and memory) and the design criteria they use. If you want a command that is quick to run without needing close familiarity with CATCH, we recommend Option #2. If you have the time to design a complex probe set that works well in practice and/or carefully read documentation, we recommend Option #1 and Option #3.
This way of running CATCH uses design.py.
To see details on all of the arguments that the program accepts, run:
design.py --helpdesign.py requires one or more datasets that specify input sequence data to target, as well as a path to which the probe sequences are written:
design.py [dataset] [dataset ...] -o OUTPUTEach dataset can be one of two input formats:
download:TAXID where TAXID is the taxonomy ID.
CATCH will fetch all accessions (representing whole genomes) for this taxonomy and download the sequences.
For viruses, NCBI taxonomy IDs can be found via the Taxonomy Browser.The probe sequences are written to OUTPUT in FASTA format.
This program sets cautious hybridization criteria by default (e.g., tolerate no probe-target mismatches) and does not automatically enable options that, in practice, reduce runtime and memory usage.
The program was built and described in our publication as a subroutine of CATCH applied to one viral species at a time.
Nevertheless, it can be applied to multiple taxa and to non-viral taxa with appropriate settings: if datasets encompass multiple taxa and/or include large genomes, please (i) consider the arguments described below that reduce runtime and memory usage or (ii) consider running CATCH as described in Option #2 or Option #3.
Below are several important arguments to design.py:
-pl/--probe-length PROBE_LENGTH/-ps/--probe-stride PROBE_STRIDE: Design probes to be PROBE_LENGTH nt long, and generate candidate probes using a stride of PROBE_STRIDE nt.
(Default: 100 and 50.)-m/--mismatches MISMATCHES: Tolerate up to MISMATCHES mismatches when determining whether a probe covers a target sequence.
Higher values lead to fewer probes.
This value can considerably affect runtime, with lower runtime at smaller values.
Also, see -l/--lcf-thres and --island-of-exact-match for adjusting additional hybridization criteria, as described by the output of design.py --help.
(Default: 0.)-c/--coverage COVERAGE: Guarantee that at least COVERAGE of each target genome is captured by probes, where COVERAGE is either a fraction of a genome or a number of nucleotides.
Higher values lead to more probes.
(Default: 1.0 — i.e., whole genome.)-e/--cover-extension COVER_EXTENSION: Assume that a probe will capture both the region of the sequence to which it hybridizes, as well as COVER_EXTENSION nt on each side of that.
This parameter is reasonable because library fragments are generally longer than the capture probes, and its value may depend on the library fragment length.
Higher values lead to fewer probes, whereas lower values are more stringent in modeling capture.
Values of around 50 are commonly used and work well in practice.
(Default: 0.)-i/--identify: Design probes to perform differential identification.
This is typically used with small values of COVERAGE and >1 specified datasets.
Probes are designed such that each dataset should be captured by probes that are unlikely to hybridize to other datasets.
Also, see -mt/--mismatches-tolerant, -lt/--lcf-thres-tolerant, and --island-of-exact-match-tolerant, as described by the output of design.py --help.--avoid-genomes dataset [dataset ...]: Design probes to be unlikely to hybridize to any of these datasets.
Also, see -mt/--mismatches-tolerant, -lt/--lcf-thres-tolerant, and --island-of-exact-match-tolerant, as described by the output of design.py --help.--add-adapters: Add PCR adapters to the ends of each probe sequence.
This selects adapters to add to probe sequences so as to minimize overlap among probes that share an adapter, allowing probes with the same adapter to be amplified together.
(See --adapter-a and --adapter-b too, as described by the output of design.py --help.)--custom-hybridization-fn PATH FN: Specify a function, for CATCH to dynamically load, that implements a custom model of hybridization between a probe and target sequence.
See design.py --help for details on the expected input and output of this function.
If not set, CATCH uses its default model of hybridization based on -m/--mismatches, -l/--lcf-thres, and --island-of-exact-match.
Relatedly, see --custom-hybridization-fn-tolerant as described by the output of design.py --help.Several arguments change the design process in a way that can considerably reduce the computational burden needed for design — especially for large and highly diverse inputs. The trade-off of these arguments is an increase in the number of output probes, but this increase is usually small (<10%). The arguments are:
--filter-with-lsh-minhash FILTER_WITH_LSH_MINHASH: Use locality-sensitive hashing (LSH) to reduce the space of candidate probes that are considered by detecting and filtering near-duplicate candidate probes.
This can significantly improve runtime and memory requirements when t暂无开放 Issues,或尚未同步最近议题。