Skip to content

Commit 2993803

Browse files
Update count.ngl
1 parent a86d4a7 commit 2993803

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

macrel/data/scripts/count.ngl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
ngless "1.0"
22

3-
input = samfile(ARGV[1], name='MACREL')
3+
input = samfile(ARGV[1], name="MACREL")
44

5-
# Filter to keep only primary alignments (equivalent to -F 256)
6-
filtered = select(input, keep_if=[!is_secondary])
5+
# Keep only primary alignments
6+
filtered = select(input, keep_if=[is_primary(read)])
77

88
# Count features from filtered alignments
99
counts = count(filtered,

0 commit comments

Comments
 (0)