473,387 Members | 1,290 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to figure it out

I am new to python. I wrote my own text script and the programm from somebody else.
This is my script followed by the incomplete putput( i need help in this)
filepath = ./phd/top500H
filenames = [ ]
motifDescription = Chain
chainID = 'betabulgeloop5'

torsion-bound = (2.C 3.N 3.CA 3.C) -80 +/- 60
torsion-bound = (3.N 3.CA 3.C 4.N) -25 +/- 65

torsion-bound = (3.C 4.N 4.CA 4.C) -80 +/- 60
torsion-bound = (4.N 4.CA 4.C 5.N) -25 +/- 65

torsion-bound = (4.C 5.N 5.CA 5.C) 80 +/- 60
torsion-bound = (5.N 5.CA 5.C 6.N) 25 +/- 65

torsion-bound = (2.C 2.CA 2.CB 2.CG) -80 +/- 60
torsion-bound = (3.N 2.C 2.CA 2.CB) -25 +/- 65

hydrogen-bond = (2.CG 2.OD1 6.H 6.N) 3.0 90.0 90.0
hydrogen-bond = (2.C 2.O 5.H 5.N) 3.0 90.0 90.0

Residue position = 1
Residue position = 2
Residue position = 3
Residue position = 4
Residue position = 5
Residue position = 6
Residue position = 7

measures = Distance (2.OD1 4.H)
Distance (2.OD1 5.H)
Distance (2.OD1 6.H)

Distance (2.O 4.H)
Distance (2.O 5.H)
Distance (2.O 6.H)

Torsion (4.H 4.N 5.N 5.H)
Torsion (5.H 5.N 6.N 6.H)

Torsion (2.OD2 2.CG 2.OD1 4.H)
Torsion (2.OD2 2.CG 2.OD1 5.H)
Torsion (2.OD2 2.CG 2.OD1 6.H)

Torsion (1.N 2.C 2.O 4.H)
Torsion (1.N 2.C 2.O 5.H)
Torsion (1.N 2.C 2.O 6.H)

Torsion (2.OD1 4.H 4.N 4.CA)
Torsion (2.OD1 5.H 5.N 5.CA)
Torsion (2.OD1 6.H 6.N 6.CA)

Torsion (2.O 4.H 4.N 4.CA)
Torsion (2.O 5.H 5.N 5.CA)
Torsion (2.O 6.H 6.N 6.CA)

Torsion (3.C 4.N 4.CA 4.C)
Torsion (4.N 4.CA 4.C 5.N)

Torsion (4.C 5.N 5.CA 5.C)
Torsion (5.N 5.CA 5.C 6.N)

Torsion (5.C 6.N 6.CA 6.C)
Torsion (6.N 6.CA 6.C 7.N)

Angle (4.N 5.N 6.N)

Angle (2.CG 2.OD1 4.H)
Angle (2.CG 2.OD1 5.H)
Angle (2.CG 2.OD1 6.H)

Angle (2.C 2.O 4.H)
Angle (2.C 2.O 5.H)
Angle (2.C 2.O 6.H)

Angle (2.OD1 4.H 4.N)
Angle (2.OD1 5.H 5.N)
Angle (2.OD1 6.H 6.N)

Angle (2.O 4.H 4.N)
Angle (2.O 5.H 5.N)
Angle (2.O 6.H 6.N)
and this is the output following the script
pdbid motif Distance Distance Distance DistanceDistance
Distance Torsion Torsion Torsion Torsion Torsion Torsion TorsionT
orsion Torsion Torsion Torsion Torsion Torsion Torsion Torsion Torsion TorsionT
orsion Torsion Torsion Angle Angle Angle Angle Angle Angle AngleAng
le Angle Angle Angle Angle Angle
Processing : 119lH
119lH betabulgeloop5 19-25 1.95 2.67 1.90 3.00 2.04 3.8365.3
2 -54.19 -94.03 -160.58 80.14 -137.34 -117.13 -85.60 -59.81 105.35-8
1.00 -124.02 -27.89 -135.91 -95.32 -2.55 88.85 12.87 -92.54 147.7711
3.89 113.09 150.33 132.24 62.82 110.17 86.94 142.55 107.98 159.5284
.78 159.86 111.37
Processing : 153lH
Processing : 16pkH
Processing : 19hcAH
Processing : 1a12AH
1a12AH betabulgeloop5 309-315 2.14 3.15 2.01 2.82 2.76 3.6177.3
7 -46.03 -106.65 -130.77 59.67 -137.92 -131.89 -88.89 -46.58 110.8023
.19 -133.02 97.28 -119.25 -116.48 22.26 82.45 19.06 -108.80 138.0511
5.29 107.02 156.40 150.05 65.21 117.84 99.39 154.80 95.05 157.9610
4.92 156.45 140.60
Processing : 1a1yIH
1a1yIH betabulgeloop5 70-76 2.18 2.84 2.09 3.01 2.07 3.6666.4
2 -44.27 -104.04 -162.09 74.11 -141.25 -127.73 -87.15 -52.69 105.17-3
8.72 -119.20 16.61 -131.22 -89.99 0.18 66.48 31.02 -100.90 154.7211
6.85 109.19 149.82 140.47 62.43 115.93 96.72 131.12 102.97 159.0789
.99 153.93 124.64
Processing : 1a28BH
Processing : 1a2pAH
Processing : 1a2zAH
Processing : 1a3aDH
Processing : 1a4iBH
Processing : 1a62H
Processing : 1a6mH
Processing : 1a73AH
Processing : 1a7sH
Processing : 1a8dH
1a8dH betabulgeloop5 142-148 1.90 2.56 1.87 2.90 2.36 3.8364.0
0 -61.05 -101.06 -147.88 63.21 -140.87 -129.33 -92.34 -51.73 109.47-7
7.57 -130.89 19.05 -118.11 -107.58 5.69 98.09 3.84 -77.43 145.7711
8.94 106.73 156.92 132.61 63.22 111.39 93.26 147.59 103.25 161.5999
.28 171.42 114.57
Processing : 1a8eH
Processing : 1a8iH
Processing : 1a92AH
Processing : 1aacH
Processing : 1aayH
Processing : 1abaH
Processing : 1adsH
Processing : 1agjAH
1agjAH betabulgeloop5 92-98 1.88 2.54 1.87 2.94 2.25 3.8671.6
1 -61.47 -109.41 179.39 54.84 -139.48 -125.66 -88.51 -56.65 109.81-9
2.58 -125.70 47.92 -124.90 -102.23 7.99 88.86 6.68 -83.42 117.1111
6.87 107.90 159.77 119.83 60.23 114.10 91.77 134.59 97.58 163.3992
.50 169.26 116.95
Traceback (most recent call last):
File "Tailor/Script.py", line 221, in ?
run.run()
File "/users/brc/jeddahbi/Tailor-1.2/Tailor/Run.py", line 102, in run
result = measure.measure(motif)
File "/users/brc/jeddahbi/Tailor-1.2/Tailor/Measure.py", line 127, in measure
a = feature.findFeature(self.descriptionA).center
AttributeError: 'NoneType' object has no attribute 'center'
art.dcs.gla.ac.uk{jeddahbi}3: python Tailor/Script.py scripts/betabulge5.scr>out
putbeta5
Processing : 119lH
Processing : 153lH
Processing : 16pkH
Processing : 19hcAH
Processing : 1a12AH
Processing : 1a1yIH
Processing : 1a28BH
Processing : 1a2pAH
Processing : 1a2zAH
Processing : 1a3aDH
Processing : 1a4iBH
Processing : 1a62H
Processing : 1a6mH
Processing : 1a73AH
Processing : 1a7sH
Processing : 1a8dH
Processing : 1a8eH
Processing : 1a8iH
Processing : 1a92AH
Processing : 1aacH
Processing : 1aayH
Processing : 1abaH
Processing : 1adsH
Processing : 1agjAH
Traceback (most recent call last):
File "Tailor/Script.py", line 221, in ?
run.run()
File "/users/brc/jeddahbi/Tailor-1.2/Tailor/Run.py", line 102, in run
result = measure.measure(motif)
File "/users/brc/jeddahbi/Tailor-1.2/Tailor/Measure.py", line 127, in measure
a = feature.findFeature(self.descriptionA).center
AttributeError: 'NoneType' object has no attribute 'center'
art.dcs.gla.ac.uk{jeddahbi}4:

Can you please tell me what is wrong, I tried to figure it out but I couldnt. I tried to seek help but no one works on python.
Thanks
Fawzia
Aug 9 '06 #1
0 1398

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Sugapablo | last post by:
My brain is frozen on a convenient way to figure out if today is the 1st, 2nd, 3rd, 4th, or last Thursday of the month. Basically I need something that will figure this out for any given day for...
4
by: Wugi | last post by:
I'm trying to find an equivalent of key-event trapping which is easy in QBasic. Several of my programs build up a geometric figure with two parameter line families, eg with two nested for..next...
1
by: Tom | last post by:
How can you figure out exactly where in the classpath a class is located ? For example, assume that my computer has a class "com.MyCompany.MyClass" that is physically located in the jar-file...
7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure...
3
by: Brian Blais | last post by:
Hello, I have an odd kind of Heisenbug in what looks like a pretty simple program. The program is a progress bar code I got at the Python Cookbook: ...
1
by: Rich | last post by:
Hello, I have created icons before with icon editor that comes with VS2003 without any issues. Today I created another icon for my VB.Net app. But this .ico file is not displaying the figure...
0
by: Rich | last post by:
Hello, When I create an icon in VB2005 icon editor - 32x32, the figure I draw in the editor is not displaying on the icon file in the solution explorere, in windows explorer, on the exe, or on...
1
by: Leonnhy | last post by:
HI, I'm a beginner in using MS Access. What's the code for the bring forward figure in current sales report I create as follows:- Once I click on the sales report, it will show me the date range...
0
by: Frank | last post by:
Hi, I use rpy to plot functions and have the following problem. When I execute the following code line by line (start python and then execute line by line) the resulting figure looks as it...
2
by: dmitrey | last post by:
Hi all, here is a question already mentioned below, and I'm also interested in that one very much. unfortunatly, I can't write anything to matplotlib mailing lists because I constantly get server...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.