insertSequence.Sequence: Insert a Sequence object into another Sequence object after a...

Description Usage Arguments Value Author(s) See Also Examples

Description

Insert a Sequence object into another Sequence object after a specified position.

Usage

1
2
## S3 method for class 'Sequence'
insertSequence(this, insert, position, process=NA, paranoid=FALSE, ...)

Arguments

this

The target Sequence object.

insert

The Sequence object to be inserted.

position

The position after the Sequence object will be inserted.

process

The Process object performing the insertion (optional).

paranoid

If TRUE, then the consistency of teh target objects is checked more rigurously after insertion.

...

Not used.

Value

The Sequence object (invisible).

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Sequence.

Examples

1
2
3
4
5
6
7
8
	# create some sequence objects.
	target<-NucleotideSequence(string="AAAAAAAAAAA")
	insert<-NucleotideSequence(string="GGGGGGGGGGG")
	# insert after position 5
	insertSequence(target,insert,5)
	# print the target sequence
	target
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.