March
22
Class Poster Editing 3/22/19
Rationale: Work on parts of poster as a class to compete a final version
Process:
- began working in graphic design group to design small images to put onto the poster
- Main contributions:
- created the worst design that was too small
- found the exact code for the color used on the poster
- Main contributions:
- Joined Ram’s group to help create data figures for in silico results
- main contributions:
- created a c++ program that parsed through a text block generated from a pharmerator image to extract different NapoleonB information
- main contributions:
Results:
code:
#include <iostream> #include <fstream> #include <cctype> #include <string> using namespace std; struct Entry { string id; int code; int num; }; int main() { ifstream in; in.open("data.txt"); int count = 0; int ecap = 100; Entry *entries = new Entry[ecap]; string save[5000]; int scnt = 0; char name[40]; char num[10]; int nc = 0; char a[40]; char *b; while ( in >> a ) { save[scnt] = a; char *da = a; while (*da != '\0') { if (*da == 'i') { da++; if (*da == 'd') { da++; if (*da == '=') { char *dname = name; da += 2; while (*da != '"') { *dname = *da; dname++; da++; } *dname = '\0'; //cout << name << endl; entries[count].id = name; count++; //cout << entries[count].id << endl; } } } da++; } if ( a[0] == '(' ) { //cout << save[scnt -1] << endl; char *na = a; char *dnum = num; na++; while ( *na != ')' ) { *dnum = *na; dnum++; na++; } *dnum = '\0'; entries[nc].num = atoi( num ); string codeLine = save[scnt-1]; string codeS = codeLine.substr(codeLine.find(">") + 1); entries[nc].code = stoi( codeS ); //cout << entries[nc].code << " " << nc << endl; nc++; } scnt++; } in.close(); //bubble sort Entry temp; bool madeAswap; do { madeAswap = false; for ( int i = 0; i < 100; i++ ) { if ( entries[i].num > entries[i + 1].num ) { temp = entries[i]; entries[i] = entries[i+1]; entries[i+1]= temp; madeAswap = true; } } } while ( madeAswap ); for ( int i = 0; i < 100; i++ ) { cout << entries[i].num << "," << entries[i].id << "," << entries[i].code << endl; } return 0; } Generated List: 1,NAPOLEONB_DRAFT_30,8973 1,NAPOLEONB_DRAFT_46,2172 2,NAPOLEONB_DRAFT_18,17808 2,NAPOLEONB_DRAFT_28,620 2,NAPOLEONB_DRAFT_82,9032 3,NAPOLEONB_DRAFT_29,9160 3,NAPOLEONB_DRAFT_80,6235 4,NAPOLEONB_DRAFT_35,5503 4,NAPOLEONB_DRAFT_64,23957 4,NAPOLEONB_DRAFT_66,14746 6,NAPOLEONB_DRAFT_43,14427 6,NAPOLEONB_DRAFT_96,5481 7,NAPOLEONB_DRAFT_94,16425 8,NAPOLEONB_DRAFT_78,7010 8,NAPOLEONB_DRAFT_88,16636 9,NAPOLEONB_DRAFT_90,2220 10,NAPOLEONB_DRAFT_17,15199 10,NAPOLEONB_DRAFT_89,17851 11,NAPOLEONB_DRAFT_27,20203 11,NAPOLEONB_DRAFT_40,2745 11,NAPOLEONB_DRAFT_65,15086 12,NAPOLEONB_DRAFT_55,3201 13,NAPOLEONB_DRAFT_63,16469 14,NAPOLEONB_DRAFT_21,1334 14,NAPOLEONB_DRAFT_22,5598 14,NAPOLEONB_DRAFT_31,1350 14,NAPOLEONB_DRAFT_32,12456 14,NAPOLEONB_DRAFT_33,7647 14,NAPOLEONB_DRAFT_34,13454 14,NAPOLEONB_DRAFT_36,15534 14,NAPOLEONB_DRAFT_4,24501 14,NAPOLEONB_DRAFT_41,4750 14,NAPOLEONB_DRAFT_45,15236 14,NAPOLEONB_DRAFT_47,9175 14,NAPOLEONB_DRAFT_48,21289 14,NAPOLEONB_DRAFT_49,8333 14,NAPOLEONB_DRAFT_50,4594 14,NAPOLEONB_DRAFT_51,5790 14,NAPOLEONB_DRAFT_52,2845 14,NAPOLEONB_DRAFT_57,11576 14,NAPOLEONB_DRAFT_59,11096 14,NAPOLEONB_DRAFT_6,21245 14,NAPOLEONB_DRAFT_60,15626 14,NAPOLEONB_DRAFT_67,6336 14,NAPOLEONB_DRAFT_68,7770 14,NAPOLEONB_DRAFT_70,9736 14,NAPOLEONB_DRAFT_72,9734 14,NAPOLEONB_DRAFT_73,24174 14,NAPOLEONB_DRAFT_74,19891 14,NAPOLEONB_DRAFT_75,12457 14,NAPOLEONB_DRAFT_76,8135 14,NAPOLEONB_DRAFT_79,18042 14,NAPOLEONB_DRAFT_83,18383 14,NAPOLEONB_DRAFT_84,23835 14,NAPOLEONB_DRAFT_85,11536 14,NAPOLEONB_DRAFT_86,9686 14,NAPOLEONB_DRAFT_91,2726 14,NAPOLEONB_DRAFT_92,23725 14,NAPOLEONB_DRAFT_93,6962 15,NAPOLEONB_DRAFT_1,23265 15,NAPOLEONB_DRAFT_25,10017 15,NAPOLEONB_DRAFT_37,3102 15,NAPOLEONB_DRAFT_39,14856 16,NAPOLEONB_DRAFT_26,25449 17,NAPOLEONB_DRAFT_87,21252 19,NAPOLEONB_DRAFT_10,1045 20,NAPOLEONB_DRAFT_11,17557 21,NAPOLEONB_DRAFT_53,15168 21,NAPOLEONB_DRAFT_69,24820 23,NAPOLEONB_DRAFT_95,24540 24,NAPOLEONB_DRAFT_56,24917 32,NAPOLEONB_DRAFT_54,12742 36,NAPOLEONB_DRAFT_13,9387 37,NAPOLEONB_DRAFT_58,8182 38,NAPOLEONB_DRAFT_24,19229 38,NAPOLEONB_DRAFT_38,24858 41,NAPOLEONB_DRAFT_23,1881 46,NAPOLEONB_DRAFT_42,15962 46,NAPOLEONB_DRAFT_77,9657 47,NAPOLEONB_DRAFT_71,9303 56,NAPOLEONB_DRAFT_97,17850 62,NAPOLEONB_DRAFT_8,15225 83,NAPOLEONB_DRAFT_3,13517 84,NAPOLEONB_DRAFT_12,943 84,NAPOLEONB_DRAFT_2,2026 84,NAPOLEONB_DRAFT_44,24949 85,NAPOLEONB_DRAFT_100,24878 85,NAPOLEONB_DRAFT_15,12693 85,NAPOLEONB_DRAFT_19,21786 85,NAPOLEONB_DRAFT_20,17763 85,NAPOLEONB_DRAFT_5,4824 85,NAPOLEONB_DRAFT_61,19831 85,NAPOLEONB_DRAFT_62,19129 85,NAPOLEONB_DRAFT_7,9738 85,NAPOLEONB_DRAFT_81,24076 85,NAPOLEONB_DRAFT_9,16027 85,NAPOLEONB_DRAFT_98,20968 85,NAPOLEONB_DRAFT_99,1026 114,NAPOLEONB_DRAFT_14,4461 114,NAPOLEONB_DRAFT_16,4461
Next Steps:
Begin individual project