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

STAR unmapped reads not output #413

Closed
ameynert opened this issue Apr 30, 2020 · 1 comment
Closed

STAR unmapped reads not output #413

ameynert opened this issue Apr 30, 2020 · 1 comment

Comments

@ameynert
Copy link

ameynert commented Apr 30, 2020

Suggest change in process star - this will output files of format Unmapped_R{1,2}.fastq.gz to the unmapped folder.

else if (params.saveUnaligned && filename != "where_are_my_files.txt" && (filename =~ /Unmapped/)) "unmapped/$filename".replaceAll(/\.out\.mate(\d)/, '_R$1.fastq')

And this at the end of the process:

          if [ $params.saveUnaligned ]
          then
            gzip *Unmapped*
          fi
@drpatelh drpatelh added this to the 1.5 milestone Aug 24, 2020
@drpatelh
Copy link
Member

I have added some logic in the STAR DSL2 module here that will check if the unmapped files exist and if so, to rename and zip them. The logic to publish has changed too for DSL2 so the snippet below should achieve this if -save_unmapped is speficied:

if (params.save_unaligned)       { params.modules['star_align'].publish_files.put('fastq.gz','unmapped') }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants