revComp {ftrCOOL}R Documentation

reverseCompelement (revComp)

Description

This function returns the reverse compelement of a dna sequence.

Usage

revComp(seq, outputType = "str")

Arguments

seq

is a dna sequence.

outputType

this parameter can take two values: 'char' or 'str'. If outputType is 'str', the reverse complement sequence of the input sequence is returned as a string. Otherwise, a vector of characters which represent the reverse complement is returned. Default value is 'str'.

Value

The reverse complement of the input sequence.

Examples


ptmSeqsADR<-system.file("extdata/",package="ftrCOOL")
ptmSeqsVect<-as.vector(read.csv(paste0(ptmSeqsADR,"/ptmVect101AA.csv"))[,2])
Seq<-ptmSeqsVect[1]
revCompSeq<-revComp(seq=Seq,outputType="char")

[Package ftrCOOL version 2.0.0 Index]