API documentation

barcode.barcode.all_barcodes(length)

Generate all possible barcodes of a certain length.

Parameters

length (int) – Lenth of the barcodes.

Returns list

List of barcodes.

barcode.barcode.filter_distance(barcodes, min_dist, distance=<built-in function distance>)

Filter a list of barcodes for distance to other barcodes.

Parameters
  • barcodes (list) – List of barcodes.

  • min_dist (int) – Minimum distance between the barcodes.

  • distance (function) – Distance function.

Returns list

List of barcodes filtered for distance to other barcodes.

barcode.barcode.filter_stretches(barcodes, max_stretch)

Filter a list of barcodes for mononucleotide stretches.

Parameters
  • barcodes (list) – List of barcodes.

  • max_stretch (int) – Maximum mononucleotide stretch length.

Returns list

List of barcodes filtered for mononucleotide stretches.