make_ext_fasta | R Documentation |
Create a fasta file of coding sequences extended nbp on either end.
make_ext_fasta(gtf, fasta, outfasta, fpext = 50, tpext = 50)
gtf |
A GTF file with annotation. |
fasta |
A genomic Fasta file |
outfasta |
The name of the fasta file to output |
fpext |
How many bp to extendt the CDS on the 5' end |
tpext |
How many bp to extendt the CDS on the 3' end |
This creates a fasta file with gencode-style headers. The sequences are created by extending the coding sequences by the specified amount in transcript space, (or past the) end of the transcript if necessary, so that all sequences have the same 'UTRs'.
the name of the file to which the sequences were output
Dermot Harnett, dermot.p.harnett@gmail.com
gtf <- system.file("extdata", "gcv37.anno.chr22.gtf",
package = "Ribostan",
mustWork = TRUE
)
fafile <- system.file("extdata", "chr22.fa.gz",
package = "Ribostan",
mustWork = TRUE
)
file.copy(fafile, ".")
system2("gunzip -f chr22.fa.gz")
fafile <- "chr22.fa"
ext_fasta <- make_ext_fasta(gtf, fafile, outfasta = "tmp.fa", fpext = 50, tpext = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.