Skip to content

Commit

Permalink
simplify it
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimens committed May 10, 2024
1 parent 789642b commit bccdc06
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 77 deletions.
77 changes: 0 additions & 77 deletions src/harpy/scripts/filterBXBAM.py

This file was deleted.

9 changes: 9 additions & 0 deletions src/harpy/scripts/separateValidBX
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#! /usr/bin/env bash

if [[ -z "$1" ]]; then
echo -e "\n Split a BAM file with BX:Z tags into 2 files, one with valid ACBD barcodes (stdout), one with invalid ACBD barcodes (stderr)."
echo -e "\n [usage] separateValidBX input.bam > valid.bam 2> invalid.bam"
exit
fi

samtools view -e '[BX]!~"[ABCD]0{2,4}"' --unoutput /dev/stderr $1

0 comments on commit bccdc06

Please sign in to comment.