Get GC content of each sequence in an MS object

Share:

Description

Get GC content of each sequence in an MS object

Usage

1

Arguments

ms

MS object

Value

numeric vector containing GC content of each sequence in ms. GC content is computed as (# of GC bases)/(# of ACGT bases).

Examples

1
2
3
4
require("rtfbs")
seqs <- ms(seqs=c("AAAA", "ACACACAC", "CGCCG", "ACGTACGTACGT", "CGGGGGGGGGG"),
           paste("fake", 1:5, sep=""))
gcContent.ms(seqs)