Skip to content

Commit

Permalink
updated the rxn table for individual cpd to align with main rxn table
Browse files Browse the repository at this point in the history
  • Loading branch information
qzzhang committed Jul 29, 2020
1 parent 63525bf commit fa09ace
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/ctrls/ms-ctrls.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,10 @@ function($s, Biochem, $stateParams) {
MetaCyc_r: 'https://biocyc.org/META/NEW-IMAGE?type=REACTION&object=' //e.g. https://biocyc.org/META/NEW-IMAGE?type=REACTION&object=INORGPYROPHOSPHAT-RXN
}
// Reactions
var cpd_rxn_sFields = ['id', 'name', 'status', 'aliases', 'pathways', 'ontology', 'stoichiometry'];
var cpd_rxn_sFields = ['id', 'name', 'status', 'aliases', 'pathways', 'ontology', 'stoichiometry', 'notes'];
$s.rxnOpts = {query: $s.id, limit: 25, offset: 0, sort: {field: 'id'}, core: 'reactions', searchFields: cpd_rxn_sFields,
visible: ['name', 'id', 'definition', 'deltag', 'deltagerr', 'direction', 'stoichiometry', 'status',
'inchikey', 'smiles', 'aliases', 'is_obsolete', 'ontology', 'pathways'] };
'inchikey', 'smiles', 'aliases', 'is_obsolete', 'ontology', 'pathways', 'notes'] };

$s.rxnHeader = [
{label: 'ID', key: 'id', format: function(row) {
Expand All @@ -454,6 +454,9 @@ function($s, Biochem, $stateParams) {
}},
{label: 'deltaG', key: 'deltag'},
{label: 'Status', key: 'status'},
{label: 'Notes', key: 'notes', format: function(row){
return row.notes.join('|');
}},
{label: 'Synonyms', key: 'synonyms', format: function(row){
if(row.aliases===undefined || row.aliases.length==0) return "N/A";
var synms= row.aliases[row.aliases.length -1];
Expand Down

0 comments on commit fa09ace

Please sign in to comment.