Skip to content

Commit

Permalink
test: edgeR script and job tests
Browse files Browse the repository at this point in the history
  • Loading branch information
meono committed Aug 1, 2016
1 parent 0277883 commit c77f20b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion iLoop_RNAseq_pipeline/master_qsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ def edgeR_job(project_path, groups, output, collectjobID, defaults, ppn='1', wal
.replace('JOB_OUTPUTS', abspath(join_path(project_path, 'job_outputs')))
.replace('EMAILADDRESS', defaults['email'])]

jobstr += ['Rscript {}/edge_Rscript.r -p {}, -c {} -s {} -o {}'.format(project_path,
jobstr += ['Rscript {}/edge_Rscript.r -p {}, -c {} -s {} -o {}'.format(abspath(join_path(iLoop_RNAseq_pipeline.__path__, 'scripts')),
project_path,
abspath(join_path(project_path,
'results',
'featureCounts_collected.csv')),
Expand Down Expand Up @@ -481,6 +482,15 @@ def job_organizer(project_path, groups, ref, defaults, map_to_mask, ppn='8', rea
type(ex).__name__, ex.args))
return False

if 'edgeR' in jobs:
try:
js = edgeR_job(project_path=project_path, groups=groups, output=results_path, collectjobID=collectjobID, defaults=defaults)
edgeRjobID= job_submitter(js=js, path=job_files_path, name='job_edgeR.sh')
except Exception as ex:
logger.error(
'Problem with edgeR. RNAseq analysis is stopped.\nAn exception of type {} occured. Arguments:\n{}'.format(
type(ex).__name__, ex.args))
return False

# generate and submit merge job
if ('cuffmerge' in jobs) or (jobs == []):
Expand Down

0 comments on commit c77f20b

Please sign in to comment.