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 inher‐
32 its all the methods of Ace::Sequence::Feature, but adds the ability to
33 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 coordi‐
69 nates will be expressed as relative to the start of the gene. The
70 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 dis‐
84 claimers of warranty.
85
86
87
88perl v5.8.8 2001-02-20 Ace::Sequence::Transcript(3)