API Reference#
PyO3 bindings to diced, a library for CRISPRs detection.
Diced is re-implementation of MinCED, a method developed by Connor T. Skennerton to identify CRISPRs in isolate and metagenomic-assembled genomes. It was derived from the CRISPR recognition tool developed by Charles Bland et al..
Example
Load a genome from a FASTA file using Biopython:
>>> import Bio.SeqIO
>>> record = Bio.SeqIO.read("Aquifex_aeolicus_VF5.fna", "fasta")
Detect CRISPR regions with Diced using the default parameters:
>>> import diced
>>> for crispr in diced.scan(str(record.seq[:300000])):
... print(
... crispr.start,
... crispr.end,
... len(crispr.repeats),
... crispr.repeats[0],
... )
156459 156767 5 GTTCCTAATGTACCGTGTGGAGTTGAAACC
244560 244791 4 GTTTCAACTCCACACGGTACATTAGGAAC
279263 279555 5 GTTTTAACTCCACACGGTACATTAGAAAC
Functions#
Classes#
A scanner for iterating on the CRISPR regions of a genome. |
|
A CRISPR region in a nucleotide sequence. |
|
A CRISPR repeat. |
|
A list of repeats inside a CRISPR region. |
|
A CRISPR spacer. |
|
A list of spacers inside a CRISPR region. |
|
A sequence region. |