kmer_by_gene: Count Kmers within each sequence of a DNAStringSet

Description Usage Arguments Value See Also Examples

View source: R/kmer_by_gene.R

Description

This function simply returns the counts of each kmer for each gene in a DNAStringSet.

Usage

1
kmer_by_gene(DNAStringSet, k)

Arguments

DNAStringSet

A DNAStringSet Object. Use readDNAStringSet on a fasta file to create.

k

An Integer. The length of kmers to count. Values 3 < k < 8 are recommended.

Value

a dataframe containing kmer counts across each sequences within the DNAStringSet

See Also

write_Sequence, readDNAStringSet, oligonucleotideFrequency, kmer_compare

Examples

1
2
case_fasta <- Biostrings::readDNAStringSet("example_case.fa")
case_fasta_kmer_counts <- kmer_by_gene(case_fasta, 6)

TaliaferroLab/FeatureReachR documentation built on Aug. 15, 2021, 2:21 p.m.