dotComp: Compute the difference between RNA secondary dot bracket form...

Description Usage Arguments Value Examples

View source: R/dotComp.R

Description

A function that calculates the difference between two dot bracket form of RNA sequences, takes two sequences as function arguments.This function can handle point mutation, insertion, and deletion.

Usage

1
dotComp(seq1, seq2, option = 0)

Arguments

seq1

A string represent an RNA secondary structure in dot bracket form

seq2

A string represent an RNA secondary structure in dot bracket form

option

Anumber represent the method for comparison, if option is 0, then the function will compare every characters in the two sequence, if option is 1, then the function will use string alignment method (Needleman–Wunsch algorithm) for comparison

Value

Returns a number represent the different in two structure

Examples

1
2
#this should return 2
dotComp("...(((...)))...", ".(.(.(...)))...")

Deemolotus/gscVisualizer documentation built on Dec. 31, 2020, 11:55 a.m.