Skip to content

Commit

Permalink
Merge pull request #19 from cokelaer/main
Browse files Browse the repository at this point in the history
Fix bwa_split
  • Loading branch information
cokelaer committed Feb 7, 2024
2 parents 8d02c9d + b812600 commit f49c9ce
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/apptainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
- name: install package itself
run: |
pip install .
pip install "pulp==2.7.0" --no-deps
- name: testing
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
shell: bash -l {0}
run: |
pip install .
pip install "pulp==2.7.0" --no-deps
- name: Install dependencies
shell: bash -l {0}
Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ Changelog
========= ======================================================================
Version Description
========= ======================================================================
1.2.1 * fix bwa_split bwa aggreate stage (bug fix)
1.2.0 * Implement a bwa_split method to speed up mapping of very large
fastq files.
1.1.0 * BAM files are now filtered to remove unmapped reads
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "sequana-mapper"
version = "1.2.0"
version = "1.2.1"
description = "A multi-sample mapper to map reads onto a reference"
authors = ["Sequana Team"]
license = "BSD-3"
Expand Down
10 changes: 3 additions & 7 deletions sequana_pipelines/mapper/mapper.rules
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,9 @@ elif config['general']['mapper'] == 'bwa_split':

def aggregate_bwa(wildcards):
checkpoint_output = checkpoints.split_fasta.get(**wildcards).output[0]

splitter = glob.glob(checkpoint_output+ "/*fastq.gz")
# FIXME: hardcoded fastq.gz
splitter = [x.split('.')[-3] for x in splitter if x.endswith(".fastq.gz") and "_R1_" in x]
filenames = expand("{sample}/split/{sample}.sorted.{splitid}.bam",
sample=manager.samples,
splitid=splitter)
splitter = glob.glob(checkpoint_output+ "/*.gz")
splitter = [x.split('.')[-3] for x in splitter if x.endswith(".gz") and "_R1_" in x]
filenames = expand("{{sample}}/split/{{sample}}.sorted.{splitid}.bam", splitid=splitter)
return filenames

rule bwa_merge:
Expand Down

0 comments on commit f49c9ce

Please sign in to comment.