File: sequence_codon.pod

package info (click to toggle)
wise 2.4.1-28
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,348 kB
  • sloc: ansic: 276,376; makefile: 1,021; perl: 886; lex: 93; yacc: 81; sh: 25
file content (68 lines) | stat: -rw-r--r-- 1,646 bytes parent folder | download | duplicates (2)
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
66
67
68
=head1 NAME

sequence_codon module - part of the Wise2 package

=head1 SYNOPSIS

This module contains helper functions for the Wise2 package

=head1 DESCRIPTION

=over

=item reverse_complement_Sequence

&Wise2::reverse_complement_Sequence(seq)

  This both complements and reverses a sequence,
  - a common wish!

  The start/end are correct with respect to the start/end
  of the sequence (ie start = end, end = start).



  Argument seq          [READ ] Sequence to that is used to reverse (makes a new Sequence) [Sequence *]
  Return [OWNER] new Sequence which is reversed [Sequence *]


=item magic_trunc_Sequence

&Wise2::magic_trunc_Sequence(seq,start,end)

  Clever function for dna sequences.

  When start < end, truncates normally

  when start > end, truncates end,start and then
  reverse complements.

  ie. If you have a coordinate system where reverse 
  sequences are labelled in reverse start/end way,
  then this routine produces the correct sequence.



  Argument seq          [READ ] sequence that is the source to be truncated [Sequence *]
  Argument start        [READ ] start point [int]
  Argument end          [READ ] end point [int]
  Return [OWNER] new Sequence which is truncated/reversed [Sequence *]


=item translate_Sequence

&Wise2::translate(dna,ct)

  This translates a DNA sequence to a protein.
  It assumes that it starts at first residue
  (use trunc_Sequence to chop a sequence up).



  Argument dna          [READ ] DNA sequence to be translated [Sequence *]
  Argument ct           [READ ] Codon table to do codon->aa mapping [CodonTable *]
  Return [OWNER] new protein sequence [Sequence *]


=back