Icon representing a recipe

Recipe: SegData w Small Name v1.1

created by Mike Cassidy

Profile


Name
SegData w Small Name v1.1
ID
34381
Shared with
Public
Parent
SegData w Small Name
Children
Created on
October 25, 2011 at 16:05 PM UTC
Updated on
October 25, 2011 at 16:05 PM UTC
Description

Small Name added; Print ouput has been cleaned up

Best for


Code


--Segment Data with Small Name segCnt = structure.GetCount() - 1 function swop(this) segName = schains[this] --print(segName, this) end schains = {} s = {} schains= { a = "Ala", b = "Asx", c = "Cys", d = "Asp", e = "Glu", f = "Phe", g = "Gly", h = "His", i = "Ile", j = "Xle", k = "Lys", l = "Leu", m = "Met", n = "Asn", o = "Pyl", p = "Pro", q = "Gln", r = "Arg", s = "Ser", t = "The", u = "Sec", v = "Val", w = "Trp", x = "Xaa", y = "Tyr", z = "Glx" , } for i = 260, segCnt do snaps = rotamer.GetCount(i) segScore = current.GetSegmentEnergyScore(i) segScore1 = current.GetSegmentEnergySubscore(i,"clashing") segScore2 = current.GetSegmentEnergySubscore (i, "packing" ) segFreeze = freeze.IsFrozen(i) segMutant = structure.IsMutable(i) segName = structure.GetAminoAcid(i) pcall(swop, segName) s [i] = {i, snaps, segScore, segScore2, segFreeze, segMutant, segName} print("Seg # = ", i) print("Name =", s[i][7]) print("Seg score =", s[i][3]) print("# of positions =", s[i][1]) print("Number of positions =", s[i][2]) print("Clashing =", s[i][4]) print("Packing =", s[i][5]) print("Mutant? =", s[i][6]) print(" ") end

Comments