Skip to content

Commit

Permalink
Reduce memory footprint for STAR (resolves #97)
Browse files Browse the repository at this point in the history
Reduced from 2 * reference_size to 1.85 * reference_size so the requirement for a full run will be < 50G
  • Loading branch information
arkal committed Aug 22, 2016
1 parent 797449f commit 7d78186
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/protect/alignment/rna.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def align_rna(job, fastqs, univ_options, star_options):
"""
star = job.wrapJobFn(run_star, fastqs, univ_options, star_options,
cores=star_options['n'],
memory=PromisedRequirement(lambda x: 2 * x.size,
memory=PromisedRequirement(lambda x: 1.85 * x.size,
star_options['tool_index']),
disk=PromisedRequirement(star_disk, fastqs, star_options['tool_index']))
index = job.wrapJobFn(index_star, star.rv(), univ_options,
Expand Down
6 changes: 3 additions & 3 deletions src/protect/pipeline/ProTECT.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
from math import ceil

from protect.addons import run_mhc_gene_assessment
from protect.alignment.dna import align_dna, bwa_disk
from protect.alignment.rna import align_rna, star_disk
from protect.alignment.dna import align_dna
from protect.alignment.rna import align_rna
from protect.binding_prediction.common import spawn_antigen_predictors, merge_mhc_peptide_calls
from protect.common import delete_fastqs, ParameterError
from protect.expression_profiling.rsem import rsem_disk, wrap_rsem
from protect.expression_profiling.rsem import wrap_rsem
from protect.haplotyping.phlat import merge_phlat_calls, phlat_disk, run_phlat
from protect.mutation_annotation.snpeff import run_snpeff, snpeff_disk
from protect.mutation_calling.common import run_mutation_aggregator
Expand Down

0 comments on commit 7d78186

Please sign in to comment.