replace empty chains with "_" instead "A"
This commit is contained in:
committed by
Mike Beachy
parent
4566cd67f9
commit
ae462842c1
@@ -75,7 +75,10 @@ class Atom:
|
||||
self.z = float( line[46:54].strip() )
|
||||
self.resNumb = int( line[22:26].strip() )
|
||||
self.resName = "%-3s" % (line[17:20].strip())
|
||||
self.chainID = max(line[21], 'A') # set chain id to A in case of white space
|
||||
self.chainID = line[21]
|
||||
# Set chain id to "_" if it is just white space.
|
||||
if not self.chainID.strip():
|
||||
self.chainID = '_'
|
||||
self.type = line[:6].strip().lower()
|
||||
|
||||
if self.resName in ['DA ','DC ','DG ','DT ']:
|
||||
|
||||
Reference in New Issue
Block a user