Modification to matlab code:
Output1 (no changes here):
The first change is to get all possible columns corresponding to the 'required rows' regardless of the value of elements:
1.e., [url removed, login to view] = [url removed, login to view];
Conditions for Output2:
Then, for 'required_rows', the retained columns will satisfy 3 conditions:
1. Column elements must not be equal to zero
2. For this line, percent = sum(idx2,2)./sum(idx3,2)*100; , the denominator ([url removed, login to view]) needs to change according to each row after columns have satified condition 1. For all rows, idx2 is static according to efm.rxns. The percent %matches per row is required to show the percent match of [url removed, login to view] in the changing struc.genomes.
1. %matched :
2. matched rxns:
3. how many matched rxns: (i.e, how many of the 'matchesnames' for each row)
4. how many [url removed, login to view] elements
Please let me know if anything is unclear.