View source: R/getSequenceContent.R
fasta2nucleotideContent | R Documentation |
This function with takes a path to FASTA file containing a single sequence and report counts and frequencies of user defined ‘sequence.pattern' (such as exact DNA pattern, e.g. ’GA') or 'nucleotide.content' (such as sequence GC content) across the whole sequence or in user defined bins.
fasta2nucleotideContent(
fasta.seq = NULL,
fasta.file = NULL,
binsize = NULL,
sequence.pattern = NULL,
nucleotide.content = NULL
)
fasta.seq |
A |
fasta.file |
A path to a valid FASTA file to be processed. |
binsize |
A user defined number of base pairs to split the loaded FASTA sequence into |
sequence.pattern |
A user defined DNA sequence pattern which occurrences will be counted in submitted 'fasta.seq'. (e.g. set ‘sequence.pattern' to ’GA' to obtain counts of all 'GA' occurrences per FASTA sequence). |
nucleotide.content |
A user defined nucleotides which total content will be counted in submitted 'fasta.seq'. (e.g. to obtain 'GC' content set ‘nucleotide.content' to ’GC') |
A GRanges-class
object with reported nucleotide content metacolumns
David Porubsky
## Get FASTA to process ##
asm.fasta <- system.file("extdata", "test_getFASTA_query.fasta", package = "SVbyEye")
## Report sequence content for a given FASTA file in 5000bp long bins
fasta2nucleotideContent(fasta.file = asm.fasta, binsize = 5000, sequence.pattern = "AT")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.