Skip to content

Commit

Permalink
Exporting R_LIBS_SITE env variable to avoid inheriting from some shells
Browse files Browse the repository at this point in the history
  • Loading branch information
skchronicles committed Oct 26, 2022
1 parent 3bf833f commit e9633fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions workflow/rules/paired-end.smk
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,10 @@ if references(config, pfamily, ['FUSIONBLACKLIST', 'FUSIONCYTOBAND', 'FUSIONPROT
END {{print maxlen-1}}'
)
# Avoids inheriting $R_LIBS_SITE
# from local env variables
R_LIBS_SITE=/usr/local/lib/R/site-library
STAR --runThreadN {threads} \
--sjdbGTFfile {params.gtffile} \
--sjdbOverhang ${{readlength}} \
Expand Down Expand Up @@ -907,6 +911,9 @@ rule rna_report:
config['bin'][pfamily]['tool_versions']['RVER']
container: config['images']['rna']
shell: """
# Avoids inheriting $R_LIBS_SITE
# from local env variables
R_LIBS_SITE=/usr/local/lib/R/site-library
# Generate RNA QC Dashboard
{params.rwrapper} \
-m {params.rmarkdown} \
Expand Down

0 comments on commit e9633fe

Please sign in to comment.