annotate CADDSuite/galaxyconfigs/confFiles.py @ 0:bac3c274238f

Migrated tool version 0.93 from old tool shed archive to new tool shed repository
author marcel
date Tue, 07 Jun 2011 16:43:30 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
1 # -*- coding: utf-8 -*-
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
2 """
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
3 XML format classes
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
4 """
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
5 import data
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
6 import logging
bac3c274238f 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 *
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
8 import commands
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
9
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
10 log = logging.getLogger(__name__)
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
11
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
12
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
13 class ini( data.Text ):
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
14 file_ext = "ini"
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
15 def sniff( self, filename ):
bac3c274238f 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)
bac3c274238f 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):
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
18 return True
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
19 else:
bac3c274238f 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)
bac3c274238f 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):
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
22 return True
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
23 else:
bac3c274238f 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)
bac3c274238f 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):
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
26 return True
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
27 else:
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
28 return False
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
29
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
30
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
31
bac3c274238f Migrated tool version 0.93 from old tool shed archive to new tool shed repository
marcel
parents:
diff changeset
32