rtviii / ribosome.xyz-backend

2 stars 0 forks source link

Add an identification field to all ligand-like Polymer and Ligand neighborhoods. #14

Open rtviii opened 2 years ago

rtviii commented 2 years ago

Should look something like this in the end:

export type LigandBindingSite = {
source_object:{
rcsb_id: ..., // <------------------------------------
is_polymer: ...,
description: auth_asym_id of poly or chemical_id of a ligand
},
  [ chainname    :string ] :
  { sequence     : string
    nomenclature : string[ ]
    asym_ids     : string[ ]
    residues     : Residue[]
  }}

export type LigandPrediction = {
source_object:{
rcsb_id: ..., // <------------------------------------
is_polymer: ...,
description: auth_asym_id of poly or chemical_id of a ligand
},
  [ polypeptide_class :string ] :
  {
  source   : {src    :string, auth_asym_id :string, src_ids:number[]},
  target   : {tgt    :string, auth_asym_id :string, tgt_ids:number[]},
  alignment: {src_aln:string, tgt_aln:string, aln_ids:number[]},
  }
}
rtviii commented 2 years ago

Don't forget to edit types in RibosomeTypes.ts and eveyrwehre across the back-end accordingly. Shouldn't break anything tragically since you're only adding but hey have a good night's sleep beforehand. Take care of yourself.