Skip to content

Commit

Permalink
feat: edgeR script improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
meono committed Sep 9, 2016
1 parent 6a6f1df commit 12168ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions iLoop_RNAseq_pipeline/master_qsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def collect_counts_job(project_path, output, mapjobIDs, defaults, ppn='1', wallt
return '\n\n'.join(jobstr).replace('PPN', ppn)


def edgeR_job(project_path, groups, output, collectjobID, defaults, ppn='1', walltime="12:00:00"):
def edgeR_job(project_path, groups, output, collectjobID, defaults, ppn='1', walltime="12:00:00", filter_threshold=0.5):
'''Prepare inputs for edgeR and generate a job script'''

# Generate conditions input file
Expand All @@ -257,15 +257,16 @@ 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(abspath(join_path(iLoop_RNAseq_pipeline.__path__[0], 'scripts')),
jobstr += ['Rscript {}/edge_Rscript.r -p {}, -c {} -s {} -o {} -f {}'.format(abspath(join_path(iLoop_RNAseq_pipeline.__path__[0], 'scripts')),
project_path,
abspath(join_path(project_path,
'results',
'featureCounts_collected.csv')),
abspath(join_path(project_path,
'inputs',
'conditions_Rready.csv')),
output)]
output,
str(filter_threshold))]



Expand Down

0 comments on commit 12168ed

Please sign in to comment.