rna_library.structure.singlestrand

Module Contents

Classes

SingleStrand

Represents a single stranded region in an RNA structure. Does not include unpaired regions that are part of a Junction() or Helix().

class rna_library.structure.singlestrand.SingleStrand(**kwargs)

Bases: rna_library.structure.motif.Motif

Inheritance diagram of rna_library.structure.singlestrand.SingleStrand

Represents a single stranded region in an RNA structure. Does not include unpaired regions that are part of a Junction() or Helix().

buffer(self)

For the SingleStrand() type, this does not have any meaning and is always the value -1.

Returns

buffer

Return type

int

is_singlestrand(self)

Indicates that the Motif() is of type SingleStrand().

Returns

is_singlestrand

Return type

bool

recursive_structure(self)

Returns the owned portion of the structure. In this coding of structure it is just the nucleotides in the single strand plus its child if it exists.

Returns

recursive_structure

Return type

str

recursive_sequence(self)

Returns the owned portion of the sequence. In this coding of sequence it is just the nucleotides in the single strand plus its child if it exists.

Returns

recursive_sequence

Return type

str

has_non_canonical(self)

Because there are no pairs “owned” by SingleStrand()’s, it always returns False.

Returns

has_non_canonical

Return type

bool

generate_sequences(self)

Generates all possible sequences for the SingleStrand() that are compatible with the constraints for the motif.