complement: Get the complement sequences

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

Description

This function could be used to convert the sequences to its complement sequence. The input data must be fasta format.

Usage

1

Arguments

fas

Fasta format object

Details

This function could be used to obtain the complement sequence given a fasta file. For example, the complement sequence for "5-TTGAACC-3" is "5-GGTTCAA-3".This may be used for converting the consensus sequence to its complement, when the user find that the sequence can not be aligned with other sequences.

Value

The complement sequences in fasta format.

Author(s)

Jinlong Zhang jinlongzhang01@gmail.com

References

None

See Also

revComp for more information.

Examples

1
2
3
4
5
6
7
8
cat(
">No305",
"NTTCGAAAAACACACCCACTACTAAAANTTATCAGTCACT",
file = "dna1.fas", sep = "\n")

sequence <- read.fasta("dna1.fas")
complement(sequence)
unlink("dna1.fas")


Search within the phylotools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.