1Ace::Sequence::Feature(U3s)er Contributed Perl DocumentatAicoen::Sequence::Feature(3)
2
3
4
6 Ace::Sequence::Feature - Examine Sequence Feature Tables
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 homologies (a list of Ace::Sequence::Feature objs)
19 @homol = $seq->features('Similarity');
20
21 # Get information about the first one
22 $feature = $homol[0];
23 $type = $feature->type;
24 $subtype = $feature->subtype;
25 $start = $feature->start;
26 $end = $feature->end;
27 $score = $feature->score;
28
29 # Follow the target
30 $target = $feature->info;
31
32 # print the target's start and end positions
33 print $target->start,'-',$target->end, "\n";
34
36 Ace::Sequence::Feature is a subclass of Ace::Sequence::Feature
37 specialized for returning information about particular features in a
38 GFF format feature table.
39
41 You will not ordinarily create an Ace::Sequence::Feature object
42 directly. Instead, objects will be created in response to a feature()
43 call to an Ace::Sequence object. If you wish to create an
44 Ace::Sequence::Feature object directly, please consult the source code
45 for the new() method.
46
48 Most methods are inherited from Ace::Sequence. The following methods
49 are also supported:
50
51 seqname()
52 $object = $feature->seqname;
53
54 Return the ACeDB Sequence object that this feature is attached to.
55 The return value is an Ace::Object of the Sequence class. This
56 corresponds to the first field of the GFF format and does not
57 necessarily correspond to the Ace::Sequence object from which the
58 feature was obtained (use source_seq() for that).
59
60 source()
61 method()
62 subtype()
63 $source = $feature->source;
64
65 These three methods are all synonyms for the same thing. They
66 return the second field of the GFF format, called "source" in the
67 documentation. This is usually the method or algorithm used to
68 predict the feature, such as "GeneFinder" or "tRNA" scan. To avoid
69 ambiguity and enhance readability, the method() and subtype()
70 synonyms are also recognized.
71
72 feature()
73 type()
74 $type = $feature->type;
75
76 These two methods are also synonyms. They return the type of the
77 feature, such as "exon", "similarity" or "Predicted_gene". In the
78 GFF documentation this is called the "feature" field. For
79 readability, you can also use type() to fetch the field.
80
81 abs_start()
82 $start = $feature->abs_start;
83
84 This method returns the absolute