1Ace::Sequence::TranscriUpste(r3)Contributed Perl DocumenAtcaet:i:oSnequence::Transcript(3)
2
3
4
6 Ace::Sequence::Transcript - Simple "Gene" Object
7
9 # open database connection and get an Ace::Object sequence
10 use Ace::Sequence;
11
12 # get a megabase from the middle of chromosome I
13 $seq = Ace::Sequence->new(-name => 'CHROMOSOME_I,
14 -db => $db,
15 -offset => 3_000_000,
16 -length => 1_000_000);
17
18 # get all the transcripts
19 @genes = $seq->transcripts;
20
21 # get the exons from the first one
22 @exons = $genes[0]->exons;
23
24 # get the introns
25 @introns = $genes[0]->introns
26
27 # get the CDSs (NOT IMPLEMENTED YET!)
28 @cds = $genes[0]->cds;
29
31 Ace::Sequence::Gene is a subclass of Ace::Sequence::Feature. It
32 inherits all the methods of Ace::Sequence::Feature, but adds the
33 ability to retrieve the annotated introns and exons of the gene.
34
36 You will not ordinarily create an Ace::Sequence::Gene object directly.
37 Instead, objects will be created in response to a transcripts() call to
38 an Ace::Sequence object.
39
41 Most methods are inherited from Ace::Sequence::Feature. The following
42 methods are also supported:
43
44 exons()
45 @exons = $gene->exons;
46
47 Return a list of Ace::Sequence::Feature objects corresponding to
48 annotated exons.
49
50 introns()
51 @introns = $gene->introns;
52
53 Return a list of Ace::Sequence::Feature objects corresponding to
54 annotated introns.
55
56 cds()
57 @cds = $gene->cds;
58
59 Return a list of Ace::Sequence::Feature objects corresponding to
60 coding sequence. THIS IS NOT YET IMPLEMENTED.
61
62 relative()
63 $relative = $gene->relative;
64 $gene->relative(1);
65
66 This turns on and off relative coordinates. By default, the exons
67 and intron features will be returned in the coordinate system used
68 by the gene. If relative() is set to a true value, then
69 coordinates will be expressed as relative to the start of the gene.
70 The first exon will (usually) be 1.
71
73 Ace, Ace::Object, Ace::Sequence,Ace::Sequence::Homol,
74 Ace::Sequence::Feature, Ace::Sequence::FeatureList, GFF
75
77 Lincoln Stein <lstein@cshl.org> with extensive help from Jean Thierry-
78 Mieg <mieg@kaa.crbm.cnrs-mop.fr>
79
80 Copyright (c) 1999, Lincoln D. Stein
81
82 This library is free software; you can redistribute it and/or modify it
83 under the same terms as Perl itself. See DISCLAIMER.txt for
84 disclaimers of warranty.
85
87 Hey! The above document had some coding errors, which are explained
88 below:
89
90 Around line 168:
91 You forgot a '=back' before '=head1'
92
93
94
95perl v5.30.0 2019-07-26 Ace::Sequence::Transcript(3)