Commit cc547bea authored by cmaffeo2's avatar cmaffeo2
Browse files

Run script catches error when sequence is too short, falls back to random sequence

parent 43182aa7
......@@ -181,7 +181,10 @@ def simulateDesign(inFile, outPrefix, numCoarsestSteps=5000000, gpu=0, shiftEule
finerModelCoords = readArbdCoords( "output/%s.0.restart" % out )
out = outPrefix + "-5"
finestModel.setScaffoldSeq(readSequenceFile(sequenceFile))
try:
finestModel.setScaffoldSeq( readSequenceFile(sequenceFile) )
except Exception as err:
print("WARNING:", err)
finestModel.randomizeUnassignedNtSeqs()
# finestModel.setUnassignedNtSeqs("T")
finestModel.writePdbPsf( out + ".ideal" )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment