Skip to content

Commit

Permalink
Some bug fixes and fix for #62
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermo-carrasco committed Mar 26, 2015
1 parent b91d78b commit ae9a01b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion doc/_templates/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ This is how the configuration file should look like:
# Location of samplesheets for demultiplexing
samplesheets_dir: /path/to/samplesheets/dir
bcl2fastq:
path: /path/to/bcl2fastq
XTen: /path/to/bcl2fastq (XTen version)
HiSeq: /path/to/bcl2fastq (HiSeq version)
MiSeq: /path/to/bcl2fastq (MiSeq version)
- all command line options of bcl2fastq , i.e runfolder, input-dir, etc.
sync:
user: remote_user_analysis_server
Expand Down
20 changes: 10 additions & 10 deletions taca/illumina/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"""
import os

from datetime import datetime
from xml.etree import ElementTree as ET

from taca.log import LOG
from scilifelab.utils import misc
from taca.utils import misc
from taca.utils.config import CONFIG
from taca.utils.filesystem import chdir

Expand Down Expand Up @@ -138,7 +139,7 @@ def _extract_run_info(self):
# HiSeq and HiSeq X runParameter.xml files will have a Flowcell child with run type info
run_type = run_parameters.find('Flowcell')
# But MiSeqs doesn't...
if not run_type:
if run_type is None:
run_type = run_parameters.find('ApplicationName')

try:
Expand All @@ -160,13 +161,12 @@ def is_finished(self):
@property
def status(self):
if self.run_type == 'HiSeq X':
def processing_status(run):
demux_dir = os.path.join(self.run_dir, 'Demultiplexing')
if not os.path.exists(demux_dir):
return 'TO_START'
elif os.path.exists(os.path.join(demux_dir, 'Stats', 'DemultiplexingStats.xml')):
return 'COMPLETED'
else:
return 'IN_PROGRESS'
demux_dir = os.path.join(self.run_dir, 'Demultiplexing')
if not os.path.exists(demux_dir):
return 'TO_START'
elif os.path.exists(os.path.join(demux_dir, 'Stats', 'DemultiplexingStats.xml')):
return 'COMPLETED'
else:
return 'IN_PROGRESS'
else:
raise NotImplementedError('Sorry... no status method defined for {} runs'.format(self.run_type))

0 comments on commit ae9a01b

Please sign in to comment.