MultipleUniprotAccNumber_rearrange_array_20140520.html
Key commands for making the array
in a loop that goes through each of the IDs
get the info from the XML file
in loop that goes through each of the features
protein[i] =Array(type[i], desc[i], stat[i], start[i], end[i]);
then combine this with
proteins.push(protein);
Now proteins is organised with
- an array for each protein
- an array for each feature
- five bits of info for each feature (type, desc, status, start, end)
proteins.length give the number of proteins (ordered by UniID)
protein[i].length gives the number of features for protein[i]
proteins[2][0][0] returns the type of the first feature of the third protein.
Now I should be able to loop through these all relatively easily.
No comments:
Post a Comment