MCPcopy Create free account
hub / github.com/deweylab/RSEM / loadMappingInfo

Function loadMappingInfo

extractRef.cpp:71–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void loadMappingInfo(char* mappingF) {
72 ifstream fin(mappingF);
73 string line, key, value;
74
75 general_assert(fin.is_open(), "Cannot open " + cstrtos(mappingF) + "! It may not exist.");
76
77 mi_table.clear();
78 while (getline(fin, line)) {
79 line = cleanStr(line);
80 if (line[0] == '#') continue;
81 istringstream strin(line);
82 strin>>value>>key;
83 mi_table[key] = value;
84 }
85
86 fin.close();
87}
88
89bool buildTranscript(int sp, int ep) {
90 int cur_s, cur_e; // current_start, current_end

Callers 1

mainFunction · 0.70

Calls 3

cstrtosFunction · 0.85
cleanStrFunction · 0.85
clearMethod · 0.80

Tested by

no test coverage detected