aboutsummaryrefslogtreecommitdiffstats
path: root/ncbi-dna.txi
blob: de64ea274eccd5e9b718b53a4836af1c09f20997 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@code{(require 'ncbi-dma)}
@ftindex ncbi-dma


@defun ncbi:read-dna-sequence port

Reads the NCBI-format DNA sequence following the word @samp{ORIGIN}
from @var{port}.
@end defun


@defun ncbi:read-file file

Reads the NCBI-format DNA sequence following the word @samp{ORIGIN}
from @var{file}.
@end defun


@defun mrna<-cdna str

Replaces @samp{T} with @samp{U} in @var{str}
@end defun


@defun codons<-cdna cdna

Returns a list of three-letter symbol codons comprising the protein
sequence encoded by @var{cdna} starting with its first occurence of
@samp{atg}.
@end defun


@defun protein<-cdna cdna

Returns a list of three-letter symbols for the protein sequence
encoded by @var{cdna} starting with its first occurence of @samp{atg}.
@end defun


@defun p<-cdna cdna

Returns a string of one-letter amino acid codes for the protein
sequence encoded by @var{cdna} starting with its first occurence of
@samp{atg}.
@end defun


These cDNA count routines provide a means to check the nucleotide
sequence with the @samp{BASE COUNT} line preceding the sequence from
NCBI.


@defun cdna:base-count cdna

Returns a list of counts of @samp{a}, @samp{c}, @samp{g}, and
@samp{t} occurrencing in @var{cdna}.
@end defun


@defun cdna:report-base-count cdna

Prints the counts of @samp{a}, @samp{c}, @samp{g}, and @samp{t}
occurrencing in @var{cdna}.
@end defun