hallamlab / MetaPathways

A modular pipeline for constructing Pathway/Genome Databases from environmental sequence information
http://hallam.microbiology.ubc.ca/MetaPathways
12 stars 7 forks source link

Not sure if the grid likes dots (.) in filenames #14

Closed hallamlab closed 11 years ago

hallamlab commented 11 years ago

Another cause of the float division problem on the grid could be dots in filenames: See this case where the sample name was output//PDSYNTPWS.seed.fasta this seemed to case problems in the parsing later.


Issuing Command : {'run_type': 'overlay', 'dbnames': ['metacyc'], 'sample_name': 'output//PDSYNTPWS.seed', 'max_parallel_jobs': '400', 'server': 'bugaboo.westgrid.ca', 'database_files': ['metacyc-v4-2011-07-03'], 'batch_size': '200', 'user': 'nielsh'}

6. Blasting  ORFs against reference database - metacyc-v4-2011-07-03 ....
     Server bugaboo.westgrid.ca is working 
     Successfully copied daemon script
     'MetaPathways'
                 found
     'MetaPathways/databases'
                 found
     'MetaPathways/executables'
                 found
     MetaPathways/executables/blastp
                 found
     MetaPathways/executables/formatdb
                 found
     MetaPathways/databases/metacyc-v4-2011-07-03
                 found
                 already formatted
     Sample  folder PDSYNTPWS.seed
                 found
     MetaPathways/PDSYNTPWS.seed/.qstatdir
                 found
     MetaPathways/PDSYNTPWS.seed/PDSYNTPWS.seed.qced.faa
                 NOT found
                 copied
     Number of sequence files created :0

[ Traceback (most recent call last):                                                                 ]
  File "./MetaPathways.py", line 233, in <module>
    main(sys.argv[1:])    
  File "./MetaPathways.py", line 228, in main
    run_type = run_type
  File "/Users/nielsh/Desktop/MetaPathways/libs/python_modules/metapaths.py", line 1187, in run_metapathways
    #   print create_pgdb_cmd 
  File "/Users/nielsh/Desktop/MetaPathways/libs/python_modules/metapaths_pipeline.py", line 147, in call_commands_serially
    blastgrid(c[1])
  File "/Users/nielsh/Desktop/MetaPathways/libs/python_modules/BlastGrid.py", line 528, in blastgrid
    print "                 copied"
ZeroDivisionError: float division
nielshanson commented 11 years ago

We will mention this in the documentation. Sample names should just not include dots.