GC.content {metaCluster}R Documentation

Calculation of GC content

Description

This function will calculate GC content from each sequence or contigs of a FASTA file.

Usage

GC.content(fasta_file)

Arguments

fasta_file

Name of the fasta or multifasta file

Value

Value of the GC content of each sequence or contig.

Author(s)

Dipro Sinha <diprosinha@gmail.com>,Sayanti Guha Majumdar, Anu Sharma, Dwijesh Chandra Mishra

Examples

library(metaCluster)
library(seqinr)
sample_data <- read.fasta(file = system.file("extdata/sample1.fasta", package = "metaCluster"),
seqtype = "DNA")
gc <- GC.content(sample_data)

[Package metaCluster version 0.1.1 Index]