Debian Codegraph @

auxprogs/utrrnaseq/src/Coord_Transform.hpp

raw symbols SCIP
1 /**
2 * \file Coord_Transform.hpp
3 */
4
5 #ifndef COORD_TRANSFORM_H_
6 #define COORD_TRANSFORM_H_cxx . . $ `auxprogs/utrrnaseq/src/Coord_Transform.hpp:6:9`!
7
8 #include "Genomic_Data.hpp"cxx . . $ `<file>/auxprogs/utrrnaseq/src/Genomic_Data.hpp`/
9 #include "flex_vec.hpp"cxx . . $ `<file>/auxprogs/utrrnaseq/src/flex_vec.hpp`/
10
11 #include <string>
12 #include <vector>
13
14 /**
15 * @brief Class to transform the scaffold positions into positions in a relative coordinate system
16 * where 0 corresponds to the start position of the determination of the UTR in the scaffold.
17 * The UTR is at most, independently from the used determination method, \b limit long or ends at \b max_pos,
18 * which is either the end of the scaffold or the position before the boundary of the next gene on the scaffold.
19 */
20 class Coord_Transformcxx . . $ Coord_Transform# {
21
22 public:
23
24 /**
25 * @brief Compute and save the corresponding positions of the scaffold in the relative
26 * coordinate system in a container. The positions in the container correspond to the ones in the relative coordinate
27 * system. Returns container with positions in the scaffold corresponding to the ones in the relative coordinate system, where \b comp_start
28 * is the index 0 in this container.
29 * @param comp_start Position in the scaffold where the UTR determination starts. Corresponding position in the container is 0.
30 * @param dir Direction of the computation. Either 1 (starting from stop codon on + strand or start codon on - strand) or -1
31 * (starting from start codon on + strand or stop codon on - strand).
32 * @param limit Greatest possible length of UTR, excluding introns.
33 * @param max_pos Largest end position of the UTR in the Scaffold. Either end of scaffold or beginning of next gene.
34 * @param W Smoothing window size (for more information see external documentation: "Finding likely transcript ends based
35 * on RNA-Seq coverage").
36 * @param scaffold_size Length of the scaffold. Number of base pairs in the scaffold.
37 * @param curr_introns Current set of introns of the scaffold. Only introns of the scaffold on the strand of the start or stop
38 * codon and therefore of the later computed UTR.
39 */
40 Coord_Transformcxx . . $ Coord_Transform#Coord_Transform(f4ea124e59aa3795).(unsigned comp_start, int dir, unsigned limit, unsigned max_pos, unsigned W, unsigned scaffold_size,
41 stdcxx . . $ std/::vectorcxx . . $ std/vector#<Genomic_Datacxx . . $ Genomic_Data#::Introncxx . . $ Genomic_Data#Intron#>* curr_introns);
42
43 /**
44 * @brief Transforms a coordinate in the relative coordinate system into the corresponding scaffold position.
45 * @param pos Coordinate in the relative coordinate system, which has a corresponding position in the scaffold.
46 * @return Returns the corresponding scaffold position for coordinate \b pos in the relative coordinate system.
47 */
48 unsigned pos_transformcxx . . $ Coord_Transform#pos_transform(46cc46841198e427).(int pos);
49
50 /**
51 * @brief Get the last coordinate in the relative coordinate system with a corresponding scaffold position.
52 * @return Returns the last coordinate in the relative coordinate system.
53 */
54 int get_last_vec_poscxx . . $ Coord_Transform#get_last_vec_pos(b126dc7c1de90089).() { return m_last_vec_poscxx . . $ Coord_Transform#m_last_vec_pos.; }
55
56 private:
57
58 /**
59 * @brief Scaffold positions for the corresponding positions in the relative coordinate system.
60 *
61 * This container contains the scaffold positions for the corresponding positions in the relative
62 * coordinate system, which correspond directly to the positions in this container. First index in
63 * this container is \b -W and the last index \b limit.
64 */
65 Flex_Veccxx . . $ Flex_Vec#<unsigned> m_transform_veccxx . . $ Coord_Transform#m_transform_vec.;
66
67 /**
68 * @brief Smoothing window size.
69 *
70 * Smoothing window size W (for more information see external documentation: "Finding likely transcript ends based on
71 * RNA-Seq coverage").
72 */
73 unsigned m_win_sizecxx . . $ Coord_Transform#m_win_size.;
74
75 /**
76 * @brief Last coordinate in the relative coordinate system.
77 *
78 * Last coordinate in the relative coordinate system with a corresponding scaffold position.
79 * This position is at most \b limit.
80 */
81 int m_last_vec_poscxx . . $ Coord_Transform#m_last_vec_pos.;
82 };
83
84
85 #endif /* COORD_TRANSFORM_H_ */