Open phraenquex opened 2 months ago
"CentroidRes" column on F/E part is populated by centroid_res
property of matched canon site to canon_site_conf
property of an observation and if there is not a match then it is blank.
In this situation, for example an observation with 597 id
and "Ax0486a" code
has 72 canon_site_conf
but there is not any canon site with 72 id
@matej-vavrek canon_site
and canon_site_conf
are different objects, canon_site_conf
has a foreign key to canon_site
, in the API it's the canon_site
attribute.
@kaliif, I am not sure if I am following this right, so observation's canon_site_conf
points to api/canon_site_conf and that's canon_site
points to api/canon_site?
i.e. first call to api/canon_site_conf to match $observation.canon_site_conf
with $canon_site_conf.id
and then second call to api/canon_site to match $canon_site_conf.canon_site
with $canon_site.id
and $canon_site.centroid_res
is what we are looking for?
@kaliif, I am not sure if I am following this right, so observation's
canon_site_conf
points to api/canon_site_conf and that'scanon_site
points to api/canon_site?i.e. first call to api/canon_site_conf to match
$observation.canon_site_conf
with$canon_site_conf.id
and then second call to api/canon_site to match$canon_site_conf.canon_site
with$canon_site.id
and$canon_site.centroid_res
is what we are looking for?
@matej-vavrek correct, yes
@phraenquex, it should be on staging now. Could you verify it, please?
@matej-vavrek it looks right now - but we'll need an upload that uses @kaliif's loader fixes - so waiting for @mwinokan to confirm that such an upload has happened.
@phraenquex I have re-uploaded Flavi_Ns5_RdRp and the CentroidRes is populated in the table. I do now have some questions about the spec. Currently:
Category | Box Tooltip | Table |
---|---|---|
CanonicalSite | Upload name | Alias + Upload name |
ConformerSite | Upload name | Upload name |
CrystalformSite | Upload name | Upload name |
Crystalform | Upload name | Upload name |
Quatassembly | Upload name | Upload name |
CentroidRes | N/A | LongCode |
LongCode | N/A | LongCode |
Zika_NS5A-x0411+A+1104+1
, shouldn't we show the alias assigned by the curator instead?The CentroidRes now looks right - so we can close this ticket. Thanks!
@mwinokan can you move your questions into a new ticket, let's call it "Observations panel tweaks". (I have things to add too.)
In this snapshot, the CentroidRes is not showing up in the extended table.
https://fragalysis.xchem.diamond.ac.uk/viewer/react/projects/47/19
Sounds like an API or F/E parsing issue?
Green for now.