annotate CADDSuite-1.0.1/galaxyconfigs/confFiles.py @ 23:389056b8864a

Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
author greg
date Mon, 14 Nov 2011 17:02:30 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
1 # -*- coding: utf-8 -*-
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
2 """
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
3 XML format classes
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
4 """
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
5 import data
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
6 import logging
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
7 from galaxy.datatypes.sniff import *
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
8 import commands
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
9
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
10 log = logging.getLogger(__name__)
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
11
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
12
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
13 class ini( data.Text ):
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
14 file_ext = "ini"
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
15 def sniff( self, filename ):
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
16 self.no_sections = commands.getstatusoutput("grep -c \"\[Docking-Settings\]\" "+filename)
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
17 if (self.no_sections[0] == 0) & (self.no_sections[1] > 0):
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
18 return True
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
19 else:
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
20 self.no_sections = commands.getstatusoutput("grep -c \"\[ReferenceArea\" "+filename)
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
21 if (self.no_sections[0] == 0) & (self.no_sections[1] > 0):
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
22 return True
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
23 else:
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
24 self.no_sections = commands.getstatusoutput("grep -c \"\[PharmacophoreConstraint\" "+filename)
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
25 if (self.no_sections[0] == 0) & (self.no_sections[1] > 0):
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
26 return True
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
27 else:
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
28 return False
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
29
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
30
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
31
389056b8864a Uploaded https://github.com/downloads/CADDSuite/main/CADDSuite_1.0.1_Linux_x86-64.tar.gz
greg
parents:
diff changeset
32