Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Molstar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Malý
Molstar
Commits
16e66b83
Commit
16e66b83
authored
7 years ago
by
David Sehnal
Browse files
Options
Downloads
Patches
Plain Diff
Added mol2 schema
parent
ff97d71b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package-lock.json
+0
-0
0 additions, 0 deletions
package-lock.json
src/reader/mol2/schema.d.ts
+67
-0
67 additions, 0 deletions
src/reader/mol2/schema.d.ts
with
67 additions
and
0 deletions
package-lock.json
+9.42 KiB (+7%)
View file @
16e66b83
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
This diff is collapsed.
Click to expand it.
src/reader/mol2/schema.d.ts
0 → 100644
+
67
−
0
View file @
16e66b83
/**
* Copyright (c) 2017 molio contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import
{
Column
}
from
'
../common/column
'
// Full format http://chemyang.ccnu.edu.cn/ccb/server/AIMMS/mol2.pdf
// there are many records but for now ignore (pass over) all but the following
// @<TRIPOS>MOLECULE
// @<TRIPOS>ATOM
// @<TRIPOS>BOND
//
// note that the format is not a fixed column format but white space separated
export
interface
Molecule
{
mol_name
:
string
num_atoms
:
number
num_bonds
:
number
num_subst
:
number
num_feat
:
number
num_sets
:
number
mol_type
:
string
charge_type
:
string
status_bits
:
string
mol_comment
:
string
}
export
interface
Atoms
{
count
:
number
,
atom_id
:
Column
<
number
>
,
atom_name
:
Column
<
string
>
,
x
:
Column
<
number
>
,
y
:
Column
<
number
>
,
z
:
Column
<
number
>
,
atom_type
:
Column
<
string
>
,
// optional in the format, assign UndefinedColumn if not available
subst_id
:
Column
<
number
>
,
subst_name
:
Column
<
string
>
,
charge
:
Column
<
number
>
,
status_bit
:
Column
<
string
>
}
export
interface
Bonds
{
count
:
number
,
bond_id
:
Column
<
number
>
,
origin_atom_id
:
Column
<
number
>
,
target_atom_id
:
Column
<
number
>
,
bond_type
:
Column
<
string
>
,
// optional in the format, assign UndefinedColumn if not available
status_bits
:
Column
<
string
>
}
export
interface
Structure
{
molecule
:
Readonly
<
Molecule
>
,
atoms
:
Readonly
<
Atoms
>
,
bonds
:
Readonly
<
Bonds
>
}
export
interface
File
{
structures
:
Structure
[]
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment