Skip to content

Commit

Permalink
Merge pull request #19 from bodegalab/fix_escape_warning
Browse files Browse the repository at this point in the history
Fix invalid escape sequence warning message
  • Loading branch information
bepoli authored Sep 19, 2024
2 parents 20d0e3f + c63c220 commit 22ef8a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions irescue/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ def isec(bamFile, bedFile, whitelist, CBtag, UMItag, bpOverlap, fracOverlap,
cmd = f'{bedtools} intersect -a {stream} -b {refFile} '
cmd += f' -split -bed -wo -sorted {ovfrac} | gawk -vOFS="\\t" \'{ovbp} '
# remove mate information from read name
cmd += ' { sub(/\/[12]$/,"",$4); '
cmd += ' { sub(/\\/[12]$/,"",$4); '
# concatenate CB and UMI with feature name
cmd += ' n=split($4,qname,/\//); '
cmd += ' n=split($4,qname,/\\//); '
cmd += ' print qname[n-1]"\\t"qname[n]"\\t"qname[1]"\\t"$16 }\' '
cmd += f' | gzip > {isecFile}'

Expand Down

0 comments on commit 22ef8a8

Please sign in to comment.