rename.fas: Change the sequence names of fasta objects.

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

This function could be used to change the names of the DNA squences according to given names. If no names provided by names, the function will return the original sequences.

Usage

1

Arguments

x

fasta object to be renamed.

names

A vector of character strings indicating the names..

Details

The number of names provided by the user must be equal to the number of sequences, otherwise the function will stop.

Value

A fasta object with all the sequences with new names.

Note

To be added.

Author(s)

Jinlong zhang jinlongzhang01@gmail.com

References

None.

See Also

See Also gnames.fas, for obtaining the names of sequences from fasta objects.

Examples

1
2
3
### rename.fas() example
data(fil.fas)
rename.fas(fil.fas, name = paste("Sequence", as.character(1:19), sep = ""))

seqRFLP documentation built on May 2, 2019, 6:02 a.m.