syedarshi16 has asked for the wisdom of the Perl Monks concerning the following question:
I want to parse a big .csv file into .xls based on the keywords present on each csv line. There would be redundancy in the keywords which needs to be compiled and send to .xls file, in this way the .xls file will contain all the information with respect to each keywords in one line. I do not want to read .csv file again and again for each keyword as it takes too much of time.
for example:
.xls file format required () represents separate column.csv file format ARL6IP2,298757,Hyperalgesia,MESH:D006930 ARL6IP2,298757,Liver Diseases,MESH:D008107 ARL6IP2,298757,"Liver Failure, Acute",MESH:D017114 ARL6IP2,298757,Liver Neoplasms,MESH:D008113 CCL22,6367,Esophageal Neoplasms,MESH:D004938 CCL22,6367,Fatty Liver,MESH:D005234 CCL22,6367,Fetal Growth Retardation,MESH:D005317 CCL22,6367,Fever,MESH:D005334
(ARL6IP2) (Hyperalgesia,Hyperalgesia,"Liver Failure, Acute",Liver Neop +lasms) (MESH:D006930,MESH:D008107,MESH:D017114,MESH:D008113) (CCL22) (Esophageal Neoplasms,Fatty Liver,Fetal Growth Retardation,Fev +er) (MESH:D004938,MESH:D005234,MESH:D005317,MESH:D005334)
Any help would be highly appreciated.
Thanks in advance
Arshi
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: csv parsing
by ELISHEVA (Prior) on Sep 29, 2009 at 06:24 UTC | |
|
Re: csv parsing
by BioLion (Curate) on Sep 29, 2009 at 08:42 UTC | |
|
Re: csv parsing
by Bloodnok (Vicar) on Sep 29, 2009 at 11:12 UTC | |
|
Re: csv parsing
by Anonymous Monk on Sep 29, 2009 at 06:22 UTC | |
|
Re: csv parsing
by ack (Deacon) on Sep 29, 2009 at 19:57 UTC |