Description Usage Arguments Details Value Author(s) Examples
Short insertion/deletion may lead to aberrant proteins in cells. We provide a function to generate FASTA file containing this kind of proteins.
1 2 | Outputaberrant(positiontab, outfile, coding, proteinseq, ids, RPKM = NULL,
...)
|
positiontab |
a data frame which is the output of function Positionincoding() for INDELs. |
outfile |
output file name |
coding |
a data frame cotaining coding sequence for each protein. |
proteinseq |
a data frame cotaining amino acid sequence for each protein. |
ids |
a dataframe containing gene/transcript/protein id mapping information. |
RPKM |
if includes the RPKM value in the header of each sequence, default is NULL. |
... |
Additional arguments. |
the function applys the INDEL into the coding sequence, then translates them into protein sequence, terminated by stop codon. Remove the sequences the same as normal ones or as part of normal ones.
FASTA file containing aberrant proteins.
Xiaojing Wang
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | vcffile <- system.file("extdata/vcfs", "test1.vcf", package="customProDB")
vcf <- InputVcf(vcffile)
table(GenomicRanges::values(vcf[[1]])[['INDEL']])
index <- which(GenomicRanges::values(vcf[[1]])[['INDEL']] == TRUE)
indelvcf <- vcf[[1]][index]
load(system.file("extdata/refseq", "exon_anno.RData", package="customProDB"))
load(system.file("extdata/refseq", "dbsnpinCoding.RData", package="customProDB"))
load(system.file("extdata/refseq", "procodingseq.RData", package="customProDB"))
load(system.file("extdata/refseq", "proseq.RData", package="customProDB"))
load(system.file("extdata/refseq", "ids.RData", package="customProDB"))
postable_indel <- Positionincoding(indelvcf, exon)
txlist_indel <- unique(postable_indel$txid)
codingseq_indel <- procodingseq[procodingseq$tx_id %in% txlist_indel, ]
outfile <- paste(tempdir(), '/test_indel.fasta', sep='')
Outputaberrant(postable_indel, coding=codingseq_indel,
proteinseq=proteinseq, outfile=outfile, ids=ids)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.