Skip to content

Commit

Permalink
Added code to skip commented lines so that AMULET can run on Cell Ranger
Browse files Browse the repository at this point in the history
ATAC 2.0 fragment file outputs.
  • Loading branch information
Asa Thibodeau authored and ajt986 committed Sep 10, 2021
1 parent c4ecf9d commit f45d1c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions FragmentFileOverlapCounter.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,12 @@ def findOverlaps(fragmentfile, singlecellfile, expectedoverlap, chrlist, path, m
stats_readcount += 1

decodedline = linedecoder(curline)

if decodedline.strip().startswith("#"):
continue

split = decodedline.split("\t")

curchr = split[0]
curstart = int(split[1])+startbases
curend = int(split[2])+endbases
Expand Down

0 comments on commit f45d1c4

Please sign in to comment.