annotate CADDSuite/galaxyconfigs/confFiles.py @ 0:e590e0f70b60 default tip

Migrated tool version 0.93 from old tool shed archive to new tool shed repository
author marcel
date Tue, 07 Jun 2011 15:59:36 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
1 # -*- coding: utf-8 -*-
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
2 """
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
3 XML format classes
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
4 """
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
5 import data
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
6 import logging
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
7 from galaxy.datatypes.sniff import *
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
8 import commands
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
9
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
10 log = logging.getLogger(__name__)
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
11
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
12
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
13 class ini( data.Text ):
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
14 file_ext = "ini"
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
15 def sniff( self, filename ):
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
16 self.no_sections = commands.getstatusoutput("grep -c \"\[Docking-Settings\]\" "+filename)
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
17 if (self.no_sections[0] == 0) & (self.no_sections[1] > 0):
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
18 return True
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
19 else:
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
20 self.no_sections = commands.getstatusoutput("grep -c \"\[ReferenceArea\" "+filename)
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
21 if (self.no_sections[0] == 0) & (self.no_sections[1] > 0):
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
22 return True
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
23 else:
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
24 self.no_sections = commands.getstatusoutput("grep -c \"\[PharmacophoreConstraint\" "+filename)
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
25 if (self.no_sections[0] == 0) & (self.no_sections[1] > 0):
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
26 return True
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
27 else:
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
28 return False
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
29
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
30
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
31
e590e0f70b60 Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
32