| 1 | /** |
| 2 | * \file Splice_Sites.hpp |
| 3 | * Parses of splice sites and also filters the introns and through this is able to determine the intron strand. |
| 4 | */ |
| 5 | |
| 6 | #ifndef SPLICE_SITES_HPP_ |
| 7 | #define SPLICE_SITES_HPP_cxx . . $ `auxprogs/utrrnaseq/src/Splice_Sites.hpp:7:9`! |
| 8 | |
| 9 | #include <vector> |
| 10 | #include <string> |
| 11 | #include <utility> |
| 12 | |
| 13 | /** |
| 14 | * @brief Filters the introns and determines the strand if undefined. |
| 15 | * @param sp_sites Splice sites used for splice site filtering. |
| 16 | * @param sequence Genomic sequence of the scaffold. |
| 17 | * @param start Start position of intron. Strand independent. Smaller than end. |
| 18 | * @param end End position of intron. Strand independent. Greater than start. |
| 19 | * @param strand_defined True, if the strand was defined ( '+', '-'). False, if the strand was undefined ('.'). |
| 20 | * @param strand Strand of the intron as stated in the GFF file with the introns. |
| 21 | * @return True, if intron is accepted; False, if intron is not accepted. And strand of the intron, only important when the |
| 22 | * strand was undefined. |
| 23 | */ |
| 24 | stdcxx . . $ std/::paircxx . . $ std/pair#<bool, stdcxx . . $ std/::stringcxx . . $ std/string#> check_sp_sitescxx . . $ check_sp_sites(f15f8376234fcbcf). (const stdcxx . . $ std/::vectorcxx . . $ std/vector#< stdcxx . . $ std/::paircxx . . $ std/pair# <stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#> >& sp_sites, const stdcxx . . $ std/::stringcxx . . $ std/string#& sequence, |
| 25 | unsigned start, unsigned end, bool strand_defined, stdcxx . . $ std/::stringcxx . . $ std/string# strand); |
| 26 | |
| 27 | /** |
| 28 | * @brief Converts splice site on minus strand into complementary splice site so it fits the format |
| 29 | * of the splice sites on the plus strand, e.g. ...CT...AC... on minus strand, with donor site CA and |
| 30 | * acceptor site TC, is converted into donor site GT respectively acceptor site AG. |
| 31 | * @param sequence Genomic sequence of the scaffold. |
| 32 | * @param start Start coordinate of splice site in the sequence. |
| 33 | * @param end End coordinate of splice site in the sequence. |
| 34 | * @returns Splice site of minus strand in plus strand format. |
| 35 | */ |
| 36 | stdcxx . . $ std/::stringcxx . . $ std/string# sp_site_conversioncxx . . $ sp_site_conversion(ed57294d936b03ec). (const stdcxx . . $ std/::stringcxx . . $ std/string#& sequence, unsigned start, unsigned end); |
| 37 | |
| 38 | /** |
| 39 | * @brief Parses the splice sites from command line format. |
| 40 | * @param raw_sp_sites Unparsed and raw splice sites. Original input format, all splice sites in one string. |
| 41 | * @return All splice sites separated into donor and acceptor site. |
| 42 | */ |
| 43 | stdcxx . . $ std/::vectorcxx . . $ std/vector#< stdcxx . . $ std/::paircxx . . $ std/pair# <stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::stringcxx . . $ std/string#> > parse_sp_sitescxx . . $ parse_sp_sites(11b1865b31e53cb5). (stdcxx . . $ std/::stringcxx . . $ std/string# raw_sp_sites); |
| 44 | |
| 45 | |
| 46 | #endif /* SPLICE_SITES_HPP_ */ |