Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared memory feature with Snakemake STAR wrapper #420

Closed
RuiyuRayWang opened this issue Nov 13, 2021 · 3 comments
Closed

Shared memory feature with Snakemake STAR wrapper #420

RuiyuRayWang opened this issue Nov 13, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@RuiyuRayWang
Copy link

RuiyuRayWang commented Nov 13, 2021

This is a duplicate issue of
snakemake/snakemake#1259 (comment)

I'm writing a pipeline using STAR aligner. The task involves sequentially aligning fastq files to the same genome index. To speed up the alignment, I figured that the "shared memory" feature can be used to avoid repeatedly loading and un-loading the genome index.

I have tried and successfully achieved this with STAR pre-built on my machine or STAR built by the integrated package management in snakemake.
I reallly want to use the Snakemake wrapper to do this as it provides better transportability. However, the "STAR align" wrapper requires "fq1" as a minimum input which prevents the "un-load" step of STAR genome index.

The shell command for STAR to unload genome doesn't have any input or output, which is why the current wrapper cannot be used:

STAR --genomeLoad Remove --genomeDir {input.index}

Would it be possible to modify the existing code to make this feature possible?

It may be even better to add a new wrapper sub-commands under star (i.e. STAR GENOMELOAD) that incorporates both --genomeLoad LoadAndExit and --genomeLoad Remove options.

@RuiyuRayWang
Copy link
Author

Created a pull request for this:
#421 (comment)

First time contributing to the repo, correct me if I made any mistakes. Thanks!

@RuiyuRayWang
Copy link
Author

RuiyuRayWang commented Feb 24, 2022

Closing this issue as Snakemake service support has been explicitly developed to address similar jobs at backend. Thanks @johanneskoester!

Check out the relevant links:
#421
snakemake/snakemake#1413

@moxgreen
Copy link

I'm also interested in this feature. Unfortunately the provided links do not work.
Where can I find documentation about how to use shared memory in STAR wrapper?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants