How to interpret this PubChem record of L-Alanine2019 Community Moderator ElectionCompressing structural...
What is the wife of a henpecked husband called?
How to properly claim credit for peer review?
What is the purpose of easy combat scenarios that don't need resource expenditure?
What is the meaning of "pick up" in this sentence?
When does coming up with an idea constitute sufficient contribution for authorship?
Wanted: 5.25 floppy to usb adapter
How to avoid being sexist when trying to employ someone to function in a very sexist environment?
How much time does it take for a broken magnet to recover its poles?
Should I choose Itemized or Standard deduction?
Inventor that creates machine that grabs man from future
Has the Isbell–Freyd criterion ever been used to check that a category is concretisable?
LTSpice: When running a linear AC simulation, how to view the voltage ratio between two voltages?
Using AWS Fargate as web server
Predict mars robot position
Where is this triangular-shaped space station from?
Why do neural networks need so many training examples to perform?
Is my plan for fixing my water heater leak bad?
raspberry pi change directory (cd) command not working with USB drive
What are these green text/line displays shown during the livestream of Crew Dragon's approach to dock with the ISS?
Meaning of すきっとした
Can a hotel cancel a confirmed reservation?
Why is this code uniquely decodable?
What to do when being responsible for data protection in your lab, yet advice is ignored?
For Loop and Sum
How to interpret this PubChem record of L-Alanine
2019 Community Moderator ElectionCompressing structural information in PDB filesHow to selectively download 3 fields from every record in UniProtKB?What do “e” “-” “C” and “E” mean in this output?How to interpret this cuffcompare result? Sensitivity over 100?How to interpret the simple sequence repeat (SSR) on the coding sequence, but not the related protein sequence?how to change format of ent file into PDB format?How to interpret Percent identity matrix created by Clustal Omega?This Sequence Data (DNA) has very few Methionin-starts. How is that possible?How to interpret Glimmer scores?How to interpret the relationships of PTMs from BioGRID's data
$begingroup$
Using the PUG service from NCBI, I am retrieving 3d structure data for a molecule.
Raw data here.
I am trying to understand this record, specifically for the purpose of rendering in a 3D coordinate system using threejs.
Could anyone please assist in understanding this information.
Due to the large size of the json response and as I am using javascript, I have constructed some Typescript types that describe the shape of the data to assist the discussion. I have specific questions, which are stated below.
//// Root Object
interface JSON_Response {
PC_Compounds: PC_Compound[];
}
//// Compound Object
// must stand for PubChem Compound
interface PC_Compound {
id: ID;
atoms: {
aid: number[];
element: number[];
};
bonds: {
aid1: number[];
aid2: number[];
order: number[];
};
stereo: Stereo[];
coords: Coords[];
props: Data[];
count: Count;
}
//////// Sub-types described below
Atoms
The atoms object has two arrays; 'aid' and 'element'.In the above JSON response, these arrays are both of length 13. The data for L-Alanine shows it has 13 atoms. I am correct in saying that the numbers in the 'element' array are corresponding to Atomic Numbers? And these atomic numbers are assigned to ids from the corresponding indexes in the 'id' array?
Bonds
What are aid1, aid2, and order? These arrays are 12 entries each so each must represent 1 bond between two atoms. But what do the number values correspond to? How should they be interpretted?
Coords
In the coordinates object,
interface Coords {
type: number[];
aid: number[];
conformers: [
{
x: number[];
y: number[];
z: number[];
data: Data[];
}
];
data: Data[];
}
The x, y, & z arrays are of length 13. Am I correct in saying that these represent the x, y, and z coordinates of atoms in the corresponding index of the above elements array?
Data
Data Object seems to be part of a esoteric system for attaching arbitrary data to the object. If anyone has any pointer on this it would be greatly appreciated.
interface Data {
urn: {
label: string;
name: string;
datatype: number;
release: string;
version?: string;
software?: string;
source?: string;
parameters?: string;
};
value: {
sval?: string;
fval?: number;
slist?: string[];
fvec?: number[];
ivec?: number[];
};
}
stereo
seems to describe planes of rotation
//// Compound sub-types
interface Stereo {
tetrahedral: {
center: number;
above: number;
top: number;
bottom: number;
below: number;
parity: number;
type: number;
};
}
interface ID {
id: {
cid: number;
};
}
miscellaneous chemical information
interface Count {
heavy_atom: number;
atom_chiral: number;
atom_chiral_def: number;
atom_chiral_undef: number;
bond_chiral: number;
bond_chiral_def: number;
bond_chiral_undef: number;
isotope_atom: number;
covalent_unit: number;
tautomers: number;
}
In addition, if anyone has any techniques or advice on how to extract meaning from the response data from PubChem, if they could please post below it could come in handy for me or some other person working on this.
molecular-biology bioinformatics database amino-acids 3d-structure
$endgroup$
add a comment |
$begingroup$
Using the PUG service from NCBI, I am retrieving 3d structure data for a molecule.
Raw data here.
I am trying to understand this record, specifically for the purpose of rendering in a 3D coordinate system using threejs.
Could anyone please assist in understanding this information.
Due to the large size of the json response and as I am using javascript, I have constructed some Typescript types that describe the shape of the data to assist the discussion. I have specific questions, which are stated below.
//// Root Object
interface JSON_Response {
PC_Compounds: PC_Compound[];
}
//// Compound Object
// must stand for PubChem Compound
interface PC_Compound {
id: ID;
atoms: {
aid: number[];
element: number[];
};
bonds: {
aid1: number[];
aid2: number[];
order: number[];
};
stereo: Stereo[];
coords: Coords[];
props: Data[];
count: Count;
}
//////// Sub-types described below
Atoms
The atoms object has two arrays; 'aid' and 'element'.In the above JSON response, these arrays are both of length 13. The data for L-Alanine shows it has 13 atoms. I am correct in saying that the numbers in the 'element' array are corresponding to Atomic Numbers? And these atomic numbers are assigned to ids from the corresponding indexes in the 'id' array?
Bonds
What are aid1, aid2, and order? These arrays are 12 entries each so each must represent 1 bond between two atoms. But what do the number values correspond to? How should they be interpretted?
Coords
In the coordinates object,
interface Coords {
type: number[];
aid: number[];
conformers: [
{
x: number[];
y: number[];
z: number[];
data: Data[];
}
];
data: Data[];
}
The x, y, & z arrays are of length 13. Am I correct in saying that these represent the x, y, and z coordinates of atoms in the corresponding index of the above elements array?
Data
Data Object seems to be part of a esoteric system for attaching arbitrary data to the object. If anyone has any pointer on this it would be greatly appreciated.
interface Data {
urn: {
label: string;
name: string;
datatype: number;
release: string;
version?: string;
software?: string;
source?: string;
parameters?: string;
};
value: {
sval?: string;
fval?: number;
slist?: string[];
fvec?: number[];
ivec?: number[];
};
}
stereo
seems to describe planes of rotation
//// Compound sub-types
interface Stereo {
tetrahedral: {
center: number;
above: number;
top: number;
bottom: number;
below: number;
parity: number;
type: number;
};
}
interface ID {
id: {
cid: number;
};
}
miscellaneous chemical information
interface Count {
heavy_atom: number;
atom_chiral: number;
atom_chiral_def: number;
atom_chiral_undef: number;
bond_chiral: number;
bond_chiral_def: number;
bond_chiral_undef: number;
isotope_atom: number;
covalent_unit: number;
tautomers: number;
}
In addition, if anyone has any techniques or advice on how to extract meaning from the response data from PubChem, if they could please post below it could come in handy for me or some other person working on this.
molecular-biology bioinformatics database amino-acids 3d-structure
$endgroup$
add a comment |
$begingroup$
Using the PUG service from NCBI, I am retrieving 3d structure data for a molecule.
Raw data here.
I am trying to understand this record, specifically for the purpose of rendering in a 3D coordinate system using threejs.
Could anyone please assist in understanding this information.
Due to the large size of the json response and as I am using javascript, I have constructed some Typescript types that describe the shape of the data to assist the discussion. I have specific questions, which are stated below.
//// Root Object
interface JSON_Response {
PC_Compounds: PC_Compound[];
}
//// Compound Object
// must stand for PubChem Compound
interface PC_Compound {
id: ID;
atoms: {
aid: number[];
element: number[];
};
bonds: {
aid1: number[];
aid2: number[];
order: number[];
};
stereo: Stereo[];
coords: Coords[];
props: Data[];
count: Count;
}
//////// Sub-types described below
Atoms
The atoms object has two arrays; 'aid' and 'element'.In the above JSON response, these arrays are both of length 13. The data for L-Alanine shows it has 13 atoms. I am correct in saying that the numbers in the 'element' array are corresponding to Atomic Numbers? And these atomic numbers are assigned to ids from the corresponding indexes in the 'id' array?
Bonds
What are aid1, aid2, and order? These arrays are 12 entries each so each must represent 1 bond between two atoms. But what do the number values correspond to? How should they be interpretted?
Coords
In the coordinates object,
interface Coords {
type: number[];
aid: number[];
conformers: [
{
x: number[];
y: number[];
z: number[];
data: Data[];
}
];
data: Data[];
}
The x, y, & z arrays are of length 13. Am I correct in saying that these represent the x, y, and z coordinates of atoms in the corresponding index of the above elements array?
Data
Data Object seems to be part of a esoteric system for attaching arbitrary data to the object. If anyone has any pointer on this it would be greatly appreciated.
interface Data {
urn: {
label: string;
name: string;
datatype: number;
release: string;
version?: string;
software?: string;
source?: string;
parameters?: string;
};
value: {
sval?: string;
fval?: number;
slist?: string[];
fvec?: number[];
ivec?: number[];
};
}
stereo
seems to describe planes of rotation
//// Compound sub-types
interface Stereo {
tetrahedral: {
center: number;
above: number;
top: number;
bottom: number;
below: number;
parity: number;
type: number;
};
}
interface ID {
id: {
cid: number;
};
}
miscellaneous chemical information
interface Count {
heavy_atom: number;
atom_chiral: number;
atom_chiral_def: number;
atom_chiral_undef: number;
bond_chiral: number;
bond_chiral_def: number;
bond_chiral_undef: number;
isotope_atom: number;
covalent_unit: number;
tautomers: number;
}
In addition, if anyone has any techniques or advice on how to extract meaning from the response data from PubChem, if they could please post below it could come in handy for me or some other person working on this.
molecular-biology bioinformatics database amino-acids 3d-structure
$endgroup$
Using the PUG service from NCBI, I am retrieving 3d structure data for a molecule.
Raw data here.
I am trying to understand this record, specifically for the purpose of rendering in a 3D coordinate system using threejs.
Could anyone please assist in understanding this information.
Due to the large size of the json response and as I am using javascript, I have constructed some Typescript types that describe the shape of the data to assist the discussion. I have specific questions, which are stated below.
//// Root Object
interface JSON_Response {
PC_Compounds: PC_Compound[];
}
//// Compound Object
// must stand for PubChem Compound
interface PC_Compound {
id: ID;
atoms: {
aid: number[];
element: number[];
};
bonds: {
aid1: number[];
aid2: number[];
order: number[];
};
stereo: Stereo[];
coords: Coords[];
props: Data[];
count: Count;
}
//////// Sub-types described below
Atoms
The atoms object has two arrays; 'aid' and 'element'.In the above JSON response, these arrays are both of length 13. The data for L-Alanine shows it has 13 atoms. I am correct in saying that the numbers in the 'element' array are corresponding to Atomic Numbers? And these atomic numbers are assigned to ids from the corresponding indexes in the 'id' array?
Bonds
What are aid1, aid2, and order? These arrays are 12 entries each so each must represent 1 bond between two atoms. But what do the number values correspond to? How should they be interpretted?
Coords
In the coordinates object,
interface Coords {
type: number[];
aid: number[];
conformers: [
{
x: number[];
y: number[];
z: number[];
data: Data[];
}
];
data: Data[];
}
The x, y, & z arrays are of length 13. Am I correct in saying that these represent the x, y, and z coordinates of atoms in the corresponding index of the above elements array?
Data
Data Object seems to be part of a esoteric system for attaching arbitrary data to the object. If anyone has any pointer on this it would be greatly appreciated.
interface Data {
urn: {
label: string;
name: string;
datatype: number;
release: string;
version?: string;
software?: string;
source?: string;
parameters?: string;
};
value: {
sval?: string;
fval?: number;
slist?: string[];
fvec?: number[];
ivec?: number[];
};
}
stereo
seems to describe planes of rotation
//// Compound sub-types
interface Stereo {
tetrahedral: {
center: number;
above: number;
top: number;
bottom: number;
below: number;
parity: number;
type: number;
};
}
interface ID {
id: {
cid: number;
};
}
miscellaneous chemical information
interface Count {
heavy_atom: number;
atom_chiral: number;
atom_chiral_def: number;
atom_chiral_undef: number;
bond_chiral: number;
bond_chiral_def: number;
bond_chiral_undef: number;
isotope_atom: number;
covalent_unit: number;
tautomers: number;
}
In addition, if anyone has any techniques or advice on how to extract meaning from the response data from PubChem, if they could please post below it could come in handy for me or some other person working on this.
molecular-biology bioinformatics database amino-acids 3d-structure
molecular-biology bioinformatics database amino-acids 3d-structure
asked 15 hours ago
Joey GoughJoey Gough
1085
1085
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
The PubChem format description is not that easy to find:
https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/asn_spec/pcsubstance.asn.html
And the ASN file linked here:
https://pubchemdocs.ncbi.nlm.nih.gov/data-specification
I am correct in saying that the numbers in the 'element' array are corresponding to Atomic Numbers?
Yes, 1 is hydrogen, 6 is carbon, 8 is oxygen, etc.
And these atomic numbers are assigned to ids from the corresponding indexes in the 'id' array?
in your example, "atoms": {"aid": [1, 2, 3, ..., 13], "element": [8, 8, 7, ..., 1]},
, the the ID of the first atom would be 1
and element 8
(oxygen), the third atom: ID 3
and element 7
(nitrogen).
Am I correct in saying that these represent the x, y, and z coordinates of atoms in the corresponding index of the above elements array?
Yes
What are aid1, aid2, and order?
aid1
and aid2
are the a
tom id
entifiers. order
is the bond type.
These arrays are 12 entries each so each must represent 1 bond between two atoms. But what do the number values correspond to? How should they be interpretted?
For example aid1 = [1, 2], aid2 = [3, 4], order = [1, 2]
would mean a single bond between atom 1 and atom 3 and a double bond between atom 2 and atom 4.
Good examples of implementations:
- PubChemPy
- pubchem_2d_structure_json_to_svg.py
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "375"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fbiology.stackexchange.com%2fquestions%2f81674%2fhow-to-interpret-this-pubchem-record-of-l-alanine%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
The PubChem format description is not that easy to find:
https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/asn_spec/pcsubstance.asn.html
And the ASN file linked here:
https://pubchemdocs.ncbi.nlm.nih.gov/data-specification
I am correct in saying that the numbers in the 'element' array are corresponding to Atomic Numbers?
Yes, 1 is hydrogen, 6 is carbon, 8 is oxygen, etc.
And these atomic numbers are assigned to ids from the corresponding indexes in the 'id' array?
in your example, "atoms": {"aid": [1, 2, 3, ..., 13], "element": [8, 8, 7, ..., 1]},
, the the ID of the first atom would be 1
and element 8
(oxygen), the third atom: ID 3
and element 7
(nitrogen).
Am I correct in saying that these represent the x, y, and z coordinates of atoms in the corresponding index of the above elements array?
Yes
What are aid1, aid2, and order?
aid1
and aid2
are the a
tom id
entifiers. order
is the bond type.
These arrays are 12 entries each so each must represent 1 bond between two atoms. But what do the number values correspond to? How should they be interpretted?
For example aid1 = [1, 2], aid2 = [3, 4], order = [1, 2]
would mean a single bond between atom 1 and atom 3 and a double bond between atom 2 and atom 4.
Good examples of implementations:
- PubChemPy
- pubchem_2d_structure_json_to_svg.py
$endgroup$
add a comment |
$begingroup$
The PubChem format description is not that easy to find:
https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/asn_spec/pcsubstance.asn.html
And the ASN file linked here:
https://pubchemdocs.ncbi.nlm.nih.gov/data-specification
I am correct in saying that the numbers in the 'element' array are corresponding to Atomic Numbers?
Yes, 1 is hydrogen, 6 is carbon, 8 is oxygen, etc.
And these atomic numbers are assigned to ids from the corresponding indexes in the 'id' array?
in your example, "atoms": {"aid": [1, 2, 3, ..., 13], "element": [8, 8, 7, ..., 1]},
, the the ID of the first atom would be 1
and element 8
(oxygen), the third atom: ID 3
and element 7
(nitrogen).
Am I correct in saying that these represent the x, y, and z coordinates of atoms in the corresponding index of the above elements array?
Yes
What are aid1, aid2, and order?
aid1
and aid2
are the a
tom id
entifiers. order
is the bond type.
These arrays are 12 entries each so each must represent 1 bond between two atoms. But what do the number values correspond to? How should they be interpretted?
For example aid1 = [1, 2], aid2 = [3, 4], order = [1, 2]
would mean a single bond between atom 1 and atom 3 and a double bond between atom 2 and atom 4.
Good examples of implementations:
- PubChemPy
- pubchem_2d_structure_json_to_svg.py
$endgroup$
add a comment |
$begingroup$
The PubChem format description is not that easy to find:
https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/asn_spec/pcsubstance.asn.html
And the ASN file linked here:
https://pubchemdocs.ncbi.nlm.nih.gov/data-specification
I am correct in saying that the numbers in the 'element' array are corresponding to Atomic Numbers?
Yes, 1 is hydrogen, 6 is carbon, 8 is oxygen, etc.
And these atomic numbers are assigned to ids from the corresponding indexes in the 'id' array?
in your example, "atoms": {"aid": [1, 2, 3, ..., 13], "element": [8, 8, 7, ..., 1]},
, the the ID of the first atom would be 1
and element 8
(oxygen), the third atom: ID 3
and element 7
(nitrogen).
Am I correct in saying that these represent the x, y, and z coordinates of atoms in the corresponding index of the above elements array?
Yes
What are aid1, aid2, and order?
aid1
and aid2
are the a
tom id
entifiers. order
is the bond type.
These arrays are 12 entries each so each must represent 1 bond between two atoms. But what do the number values correspond to? How should they be interpretted?
For example aid1 = [1, 2], aid2 = [3, 4], order = [1, 2]
would mean a single bond between atom 1 and atom 3 and a double bond between atom 2 and atom 4.
Good examples of implementations:
- PubChemPy
- pubchem_2d_structure_json_to_svg.py
$endgroup$
The PubChem format description is not that easy to find:
https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/asn_spec/pcsubstance.asn.html
And the ASN file linked here:
https://pubchemdocs.ncbi.nlm.nih.gov/data-specification
I am correct in saying that the numbers in the 'element' array are corresponding to Atomic Numbers?
Yes, 1 is hydrogen, 6 is carbon, 8 is oxygen, etc.
And these atomic numbers are assigned to ids from the corresponding indexes in the 'id' array?
in your example, "atoms": {"aid": [1, 2, 3, ..., 13], "element": [8, 8, 7, ..., 1]},
, the the ID of the first atom would be 1
and element 8
(oxygen), the third atom: ID 3
and element 7
(nitrogen).
Am I correct in saying that these represent the x, y, and z coordinates of atoms in the corresponding index of the above elements array?
Yes
What are aid1, aid2, and order?
aid1
and aid2
are the a
tom id
entifiers. order
is the bond type.
These arrays are 12 entries each so each must represent 1 bond between two atoms. But what do the number values correspond to? How should they be interpretted?
For example aid1 = [1, 2], aid2 = [3, 4], order = [1, 2]
would mean a single bond between atom 1 and atom 3 and a double bond between atom 2 and atom 4.
Good examples of implementations:
- PubChemPy
- pubchem_2d_structure_json_to_svg.py
edited 3 hours ago
answered 14 hours ago
AshafixAshafix
618512
618512
add a comment |
add a comment |
Thanks for contributing an answer to Biology Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fbiology.stackexchange.com%2fquestions%2f81674%2fhow-to-interpret-this-pubchem-record-of-l-alanine%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown