-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CONECT records to unknown entries (hopefully TER) are now ignored
- Loading branch information
1 parent
8f803a4
commit 59916ed
Showing
5 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
HEADER ISSUE936 Test File | ||
REMARK Contains a CONECT record to a TER entry | ||
MODEL 1 | ||
CRYST1 216.489 216.489 216.489 90.00 90.00 90.00 P 1 1 | ||
ATOM 1 CA ABC A 1 111.252 98.373 98.187 | ||
ATOM 2 CA ABC A 1 111.203 101.742 96.430 | ||
ATOM 3 CA ABC A 1 107.607 102.968 96.316 | ||
TER 4 ABC A 1 | ||
CONECT 1 2 | ||
CONECT 2 1 3 | ||
CONECT 3 2 4 | ||
ENDMDL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- | ||
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 | ||
# | ||
# MDAnalysis --- http://www.MDAnalysis.org | ||
# Copyright (c) 2006-2015 Naveen Michaud-Agrawal, Elizabeth J. Denning, Oliver Beckstein | ||
# and contributors (see AUTHORS for the full list) | ||
# | ||
# Released under the GNU Public Licence, v2 or any higher version | ||
# | ||
# Please cite your use of MDAnalysis in published work: | ||
# N. Michaud-Agrawal, E. J. Denning, T. B. Woolf, and O. Beckstein. | ||
# MDAnalysis: A Toolkit for the Analysis of Molecular Dynamics Simulations. | ||
# J. Comput. Chem. 32 (2011), 2319--2327, doi:10.1002/jcc.21787 | ||
# | ||
|
||
from numpy.testing import assert_ | ||
from MDAnalysisTests.datafiles import ( | ||
PDB_conect2TER, | ||
) | ||
|
||
import MDAnalysis as mda | ||
from MDAnalysis.topology.PDBParser import PDBParser | ||
|
||
|
||
def test_conect2ter(): | ||
with PDBParser(PDB_conect2TER) as p: | ||
struc = p.parse() | ||
|
||
assert_('bonds' in struc) | ||
assert_(len(struc['bonds']) == 4) |