genomic_gc3 {sscu} | R Documentation

## genomic gc3 for an multifasta genomic file

### Description

The function calculates the genomic gc3 for an multifasta genomic CDS file. The function first concatenated all the CDS sequences in the file into one long CDS string, than calculated the gc3 from the GC3 function in seqinr package. You can also use the function to calculate the gc3 for a single gene, or a set of genes, depends what content you put in the input file.

### Usage

      genomic_gc3(inputfile)

### Arguments

`inputfile` | a character vector for the filepath of the whole genome cds file

### Details

The function calculates the genomic gc3 for an multifasta genomic CDS file. The function first concatenated all the CDS sequences in the file into one long CDS string, than calculated the gc3 from the GC3 function in seqinr package. You can also use the function to calculate the gc3 for a single gene, or a set of genes, depends what content you put in the input file. The result can be used as input for the s_index calculation.

### Value

a numeric vector genomic_gc3 is returned

### Author(s)

Yu Sun

### See Also

`GC3` in seqinr library

### Examples

    # ----------------------------------------------- #
    #     Lactobacillus kunkeei example               #
    # ----------------------------------------------- #

      # Here is an example to calculate the genomic gc3
      # input the one multifasta files to calculate genomic gc3
      genomic_gc3(system.file("sequences/L_kunkeei_genome_cds.ffn",package="sscu"))

[Package sscu version 2.10.0 Index]