dalicious.string

Some additional string functions.

Members

Aliases

score_t
alias score_t = uint
Undocumented in source.

Classes

AlignmentException
class AlignmentException
Undocumented in source.

Enums

EditOp
enum EditOp

One edit operation of the Needleman-Wunsch algorithm.

Strip
enum Strip
Undocumented in source.
dashCaseCT
eponymoustemplate dashCaseCT(string camelCase)

Convert a camelCase string to dash-case.

Functions

dashCase
string dashCase(string camelCase)

Convert a camelCase string to dash-case.

findAlignment
SequenceAlignment!(const(S), scoreFun) findAlignment(S reference, S query, score_t indelPenalty, Flag!"freeShift" freeShift, size_t memoryLimit)

Compute an alignment of query against reference using the Needleman-Wunsch algorithm with non-negative scores and constant indel penalty. Optionally, the freeShift mode may be activated as to allow large indels at the beginning and end of the alignment.

indent
S indent(S str, size_t indentSize)

Adds one level of indentation for a multi-line string. Adds indentSize spaces to each non-empty line.

longestInputsLength
size_t longestInputsLength(size_t memoryLimit)

Returns longest query and refernce length possible with memoryLimit.

memoryRequired
size_t memoryRequired(S reference, S query)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString(Float value, uint precision)

Convert a floating point number to a base-10 string at compile time. This function is very crude and will not work in many cases!

Structs

SequenceAlignment
struct SequenceAlignment(S, alias scoreFun = "a == b ? 0 : 1")

Represents an alignment of two sequences.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE file.

Authors

Arne Ludwig <arne.ludwig@posteo.de>