Closed ridderl closed 10 years ago
I need some clarifications on the numbers and what clicking should do. The example is the column content shown for a molecule row. Let's say the molecule has metid 3 and Rule1 is 'esterase'.
What does nr of molecules
mean?
SELECT count() FROM reactions WHERE name='esterase' or SELECT count() FROM reactions WHERE name='esterase' AND reactant=3
What does nr of molecules with peak
mean?
Nr of molecules which have been fragmented or Nr of molecules which have been assigned to a peak
Clicking where will do what? There are 4 places where you can click
In the issue description says clicking on 'Rule1' (option 2). Is this correct? Should clicking on option 1 also perform a filtering?
In issue208 branch there is now functionality for filtering molecules on reactions.
In the column header filter you can filter on:
The Reaction column is now rendered from json.
To use the metabolites.reactionsequence column in results.db must be refilled. This can be done with web/magmaweb/models.py:fill_molecules_reactionsequence() with:
from magmaweb.job import JobFactory
factory = JobFactory('data/jobs')
session = factory._makeJobSession('58f05077-aad8-4fc9-a497-310495ab8b62')
from magmaweb.models import fill_molecules_reactionsequence
fill_molecules_reactionsequence(session)
To update job result databases use:
cd web
pip install alembic
for x in `ls data/jobs` ; do echo $x;alembic -x jobid=$x upgrade head; done
The reaction filter can give zero results because of other filters like nhits>1 and scanid.
The Failed to load fragments from server
error is back.
When a scan has been selected and then selecting a reaction (which has molecules with a scan) will give the error.
Errors occurs only when reaction has 1 molecule as target. Before click a scan and molecule are selected, after click same scan is still selected, but another molecule is selected which did not form fragments on selected scan.
Solution: Scan markers are filled check if previously selected scan is absent then unselect scan
Example:
Clicking will filter metabolites on molecules which are products of rule1.