Luis M Rodríguez-R
and 1 contributors


Bio::Polloc::Locus::crispr - A CRISPR locus


A CRISPR locus. Implements Bio::Polloc::LocusI.

AUTHOR - Luis M. Rodriguez-R

Email lmrodriguezr at gmail dot com


Methods provided by the package


  • Creates a Bio::Polloc::Locus::repeat object.

  • Arguments

    -spacers_no int

    The number of spacers.

    -dr str

    Direct repeat sequence.


  • Gets/sets the number of spacers.

  • Arguments

    The number of spacers (int, optional).

  • Returns

    The number of spacers (int or undef).


  • Sets/gets the Direct Repeat sequence.

  • Arguments

    The direct repeat sequence (str, optional).

  • Returns

    The direct repeat sequence (str or undef).


  • Gets/sets the score.

  • Arguments

    The score (float, optional).

  • Returns

    The score (float or undef).


  • Adds information for an spacer.

  • Arguments

    -from int

    Where the spacer starts. This is a coordinate on the whole genome (or defined global sequence), NOT with respect to the CRISPR.

    -to int

    Where the spacer ends. This is a coordinate on the whole genome (or defined global sequence). NOT with respect to the CRISPR.

    -raw_seq str

    Optional parameter to set the raw sequence of the spacer. If not provided, it is calculated based on the coordinates. If no global sequence is set, it remains undefined.


  • Gets the spacers as an arrayref or hashrefs with keys from, to and raw_seq.


  • Gets the repeats as an arrayref of hashrefs with keys from and to. The actual sequence of the repeats can be retrieved using dr. There is no way to directly set the coordinates of the repeats, instead, you must set the coordinates of the spacers.


Methods intended to be used only within the scope of Bio::Polloc::*


8 POD Errors

The following errors were encountered while parsing the POD:

Around line 33:

Expected '=item *'

Around line 66:

Expected '=item *'

Around line 70:

Expected '=item *'

Around line 93:

Expected '=item *'

Around line 97:

Expected '=item *'

Around line 119:

Expected '=item *'

Around line 123:

Expected '=item *'

Around line 145:

Expected '=item *'