| 1 | /** |
| 2 | * \file Compute_UTRs.hpp |
| 3 | * Reads in and stores the coverage information for the scaffolds. |
| 4 | * Computes the %UTRs for all the scaffoldswith this coverage information and the other input data. |
| 5 | */ |
| 6 | |
| 7 | #ifndef COMPUTE_UTRS_HPP_ |
| 8 | #define COMPUTE_UTRS_HPP_cxx . . $ `auxprogs/utrrnaseq/src/Compute_UTRs.hpp:8:9`! |
| 9 | |
| 10 | #include "Genomic_Data.hpp"cxx . . $ `<file>/auxprogs/utrrnaseq/src/Genomic_Data.hpp`/ |
| 11 | |
| 12 | #include <vector> |
| 13 | #include <string> |
| 14 | #include <map> |
| 15 | |
| 16 | #include <boost/tuple/tuple.hpp> |
| 17 | |
| 18 | /** |
| 19 | * @brief Determines if the scaffold of a block in a WIG file also is in the genomic sequence file and if it is |
| 20 | * finds the index number of this scaffold in the genomic sequence file (starting from 0). Else an error occurs and the user is notified. A block are all |
| 21 | * entries belonging to the scaffold, independent on the WIG format. |
| 22 | * @param block_scaff_name Name of the scaffold of the current block in the WIG file. |
| 23 | * @return Number of the scaffold in the FASTA file. |
| 24 | */ |
| 25 | unsigned get_idx_curr_scaffcxx . . $ get_idx_curr_scaff(6dd362bbdd4c6448).(stdcxx . . $ std/::stringcxx . . $ std/string# block_scaff_name); |
| 26 | |
| 27 | /** |
| 28 | * @brief Processes definition line in a WIG file for the variableStep format. Extracts scaffold name. |
| 29 | * @param tokens All substrings of the declaration line, split via tabulator. |
| 30 | * @param idx_curr_row Line number of the declaration line in the WIG file. Only used for error message. |
| 31 | * @param curr_row Whole declaration line of the WIG file. Only used for error message. |
| 32 | * @return Scaffold name in the declaration line. |
| 33 | */ |
| 34 | stdcxx . . $ std/::stringcxx . . $ std/string# process_variable_stepcxx . . $ process_variable_step(a2032542800a4cec).(const stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#>& tokens, unsigned idx_curr_row, stdcxx . . $ std/::stringcxx . . $ std/string# curr_row); |
| 35 | |
| 36 | /** |
| 37 | * @brief Processes of definition line in the WIG file for fixedStep format. |
| 38 | * @param tokens All substrings of the declaration line, split via tabulator. |
| 39 | * @param idx_curr_row Line number of the declaration line in the WIG file. Only used for error message. |
| 40 | * @param curr_row current Whole declaration line of the WIG file. Only used for error message. |
| 41 | * @return Scaffold name, start position in scaffold and step size. |
| 42 | */ |
| 43 | boostcxx . . $ boost/::tuplecxx . . $ boost/tuple#<stdcxx . . $ std/::stringcxx . . $ std/string#, unsigned, unsigned> |
| 44 | process_fixed_stepcxx . . $ process_fixed_step(9c86532d0c5cbb1f).(const stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#>& tokens, unsigned idx_curr_row, stdcxx . . $ std/::stringcxx . . $ std/string# curr_row); |
| 45 | |
| 46 | /** |
| 47 | * @brief Processes the WIG file and determines %UTRs from WIG file. |
| 48 | * @param wiggle_fname Name of the file containing the wiggle data in WIG format. |
| 49 | */ |
| 50 | void compute_UTRscxx . . $ compute_UTRs(8d4ab0a187bf9331).(stdcxx . . $ std/::stringcxx . . $ std/string# wiggle_fname); |
| 51 | |
| 52 | #endif /* COMPUTE_UTRS_HPP_ */ |