View source: R/annotDT2exonList.R
annotDT2exonList | R Documentation |
A data.table with information on the start and end of exons is used to generate a list containing each exon as an indexed item. The indexes exon sequences are in the order and orientation that they would be transcribed in. That is, they can be pasted together and translated to form the protein sequence. Note, this function has been designed to work for a single gene on a single chromosome. If you want to run multiple genes, you will need to loop the function.
annotDT2exonList(
annotDT,
genomeSeq,
chromCol = "CHROM",
startCol = "START",
endCol = "END",
strandCol = "STRAND"
)
annotDT |
Data.table: Contains information on the exon positions. Requires the following columns:
|
genomeSeq |
DNAStringSet: The loaded genome sequence as a
|
chromCol |
Character: The chromosome column name in |
startCol |
Character: The exon start position in |
endCol |
Character: The exon end position in |
strandCol |
Character: The exon strand position in |
Returns a list, with each indexed item a character vector, the exon extracted from the genome. Exons are ordered based on their order of transcriptions, and are in the correct orientation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.