Skip to content

Commit

Permalink
Update fastq_from_bam to publish illumina data properly. Regexes are …
Browse files Browse the repository at this point in the history
…geting crazy, need to rethink this.
  • Loading branch information
matthuska committed Dec 13, 2023
1 parent 4228c4b commit 26bd1d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/alignment_processing.nf
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ process fastq_from_bam {
fn.matches('.*.mapped_merged.fast[aq].gz$') ? "removed/${fn}".replaceAll(~'.mapped_merged(.fast[aq].gz)$', '$1') :
fn.matches('.*.unmapped_merged_merged.fast[aq].gz$') ? "clean/${fn}".replaceAll(~'.unmapped_merged_merged(.fast[aq].gz)$', '$1') :
fn.matches('.*.soft-clipped_merged.fast[aq].gz$') ? "clean/${fn}".replaceAll(~'.soft-clipped_merged(.fast[aq].gz)$', '$1') :
fn.matches('.*.unmapped_(1|2|singleton).fast[aq].gz$') ? "clean/${fn}".replaceAll(~'.unmapped_(1|2|singleton)(.fast[aq].gz)$', '_$1$2') :
fn.matches('.*.mapped_(1|2|singleton).fast[aq].gz$') ? "removed/${fn}".replaceAll(~'.mapped_(1|2|singleton)(.fast[aq].gz)$', '_$1$2') :
fn
}
)
Expand Down

0 comments on commit 26bd1d0

Please sign in to comment.