Hi, here's my problem:
I have this file which can be anywhere from 200 MB+, and within that file contains lines that look look like this:
ENG|glucopyranoside|C0644705|L1129264|S1355824|
So, what I want to do is sort by the 2nd field (glucopyranoside)alphanumerically. I've been trying to add each line to a list and sort using the collections.sort(), but I get out of memory errors. I think my problem is trying to put all the lines on a list and sort, haha. Is there a way around this?
I have this file which can be anywhere from 200 MB+, and within that file contains lines that look look like this:
ENG|glucopyranoside|C0644705|L1129264|S1355824|
So, what I want to do is sort by the 2nd field (glucopyranoside)alphanumerically. I've been trying to add each line to a list and sort using the collections.sort(), but I get out of memory errors. I think my problem is trying to put all the lines on a list and sort, haha. Is there a way around this?