Learn R Programming

seqmagick (version 0.1.9)

fa_summary: fa_summary

Description

summarize sequences in a fasta file

Usage

fa_summary(x)

Value

data.frame with one row: n_seq, min_len, max_len, mean_len, GC_pct and ambiguous_pct

Arguments

x

fasta file or XStringSet object

Author

Guangchuang Yu

Details

Compute number of sequences, length distribution, GC content and proportion of ambiguous characters (anything other than A/C/G/T/U, including gaps).

Examples

Run this code
fa_file <- system.file("extdata/HA.fas", package="seqmagick")
fa_summary(fa_file)

Run the code above in your browser using DataLab