folders -- this module reads and writes the default settings for Motif Mapper and saves them in a default user folder. Currently this is only the defult folder itself.
Class Folders
- settings
- holds a dictionary of the default settings
- is the folder where the default settings are saved. This file is placed under os.environ['HOMEDRIVE'] + os.environ['HOMEPATH'] + os.sep + 'Motif-Mapper'.
- this is the folder where your mapping output goes. Change it either from the text file or by changing the value of the key 'ROOTFOLDER' in settings and then calling saveDefaults
makeDirectory(path)
- this will add a path is possible: success = 1, failre = 0. this is called internally from other functions.
loadDefaultsFromFile()
- this will load the settings file from the settingsfolder. The default location will be under the users HOMEPATH on the local machine. It is intended to hold settings for the user, to set the rootfolder location for saving mapping data.
makeDefaults()
- called by __init__ to set defaults
saveDefaults()
- this can be called by the user to save any changes they may have made. Make sure that you change the dictionary object settings.
makeFilelist(manual=0, dir = '')
- this will make a list of path names either all from a folder (dir), manual=0 or manually typed in, manual=1