-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColumnDirectiveTest.cpp
More file actions
42 lines (32 loc) · 1.01 KB
/
ColumnDirectiveTest.cpp
File metadata and controls
42 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <iostream>
#include <string>
#include <regex>
#include "ColumnsDirectives.h"
using namespace std;
int main(int argc,char**argv)
{
vector<string> headerFields;
headerFields.push_back("GeneName"); //1
headerFields.push_back("Start"); //2
headerFields.push_back("End"); //3
headerFields.push_back("Exp1"); //4
headerFields.push_back("Ctl3"); //5
headerFields.push_back("Ctl2"); //6
headerFields.push_back("Exp2"); //7
headerFields.push_back("Exp3"); //8
headerFields.push_back("Ctl1"); //9
headerFields.push_back("Ctl1"); //10
string request;
while(cin.good()){
request="";
getline(cin,request);
if(request==""){
break;
}
cout<<"request "<<request<<endl;
vector<int> indices=getCol0ListFromCol1ListStringAdv(headerFields,request);
for(vector<int>::iterator i=indices.begin();i!=indices.end();i++){
cout<<"column "<<(*i)<<endl;
}
}
}