Go to the documentation of this file.Go to the SVN repository for this file.
39 ifstream is(
file.c_str());
48 is.getline(line, 0xFFF);
52 char *token = strtok(line,
" \t");
60 string genome_name=
"";
66 case 1: genome_name = token;
break;
68 case 3: from = atoi(token);
break;
69 case 4: to = atoi(token);
break;
70 case 5: type3= token;
if(type3==
"SeC") type3=
"Sec";
break;
71 case 6: codon = token;
72 case 7: from_i = atoi(token);
break;
73 case 8: to_i = atoi(token);
break;
74 case 9: score = atof(token);
break;
77 token = strtok(0,
" \t");
85 if(reverse) {
int t=to_i; to_i=from_i;from_i=
t; }
86 last_for_type[type3]++;
89 int ilast_for_type = last_for_type[type3];
91 namestr << genome_name <<
"|calculated|" << type3 <<
"_" << ilast_for_type <<
'\0';
93 descstr <<
"tRNA for " << type3 <<
", codon " << codon <<
" predicted by tRNAscan" <<
'\0';
96 ext_rna.
exons.resize(1);
97 ext_rna.
exons[0].from = from-1;
98 ext_rna.
exons[0].strand = strand;
101 ext_rna.
exons.resize(2);
102 ext_rna.
exons[0].to=from_i-1;
103 ext_rna.
exons[1].from=to_i+1;
104 ext_rna.
exons[1].to =to;
105 ext_rna.
exons[1].strand = strand;
109 ext_rna.
exons[0].to = to - 1;
111 ext_rna.
type =
"tRNA";
112 ext_rna.
type =
"tRNA";
113 ext_rna.
type3 = type3;
115 ext_rna.
name = namestr.str();
static bool PrintDetails(int current_verbosity=m_current_verbosity)
static double m_trnascan_scoreThreshold
TSimpleSeqs m_extRNAtable2
int ReadTRNA2(const string &file)
ENa_strand
strand of nucleic acid