Skip to content

Commit c21cd19

Browse files
FIX float counts in Paladin mapping (#74)
* FIX setup.py - Eliminate problems of compability * Add AMP and Hemo models for compatibility - Add downgraded IR versions of Hemo and AMP models to wide compatibility - Downgrade of IR versions to 7 (allows compatibility to the present the installed environment and before ones) Include the same models adapted with: ``` >>> from onnx import version_converter >>> model = onnx.load('TEST.onnx') >>> model.ir_version = 7 >>> model = optimize(model, ["eliminate_identity", "fuse_consecutive_transposes"]) >>> model = version_converter.convert_version(model, 16) >>> onnx.save(model, "TEST.onnx") ``` * ENH count.ngl Include a filter of sam matchers: filtered = select(input, keep_if=[{unique}]) and a count parameter to avoid secondary aligments: multiple={unique_only}
1 parent c59432b commit c21cd19

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

macrel/data/models/AMP.onnx.gz

56.9 KB
Binary file not shown.

macrel/data/models/Hemo.onnx.gz

3.19 KB
Binary file not shown.

macrel/data/scripts/count.ngl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ ngless "1.0"
33
input = samfile(ARGV[1],
44
name="MACREL")
55

6+
# Keep only primary alignments
67
filtered = select(input, keep_if=[{unique}])
78

9+
# Count features from filtered alignments
810
counts = count(filtered,
911
features=["seqname"],
1012
include_minus1=False,
1113
normalization={raw},
1214
multiple={unique_only})
1315

14-
counts = as_integer(round(counts))
1516
write(counts, ofile=ARGV[2])

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
'Intended Audience :: Science/Research',
4747
'Programming Language :: Python',
4848
'Programming Language :: Python :: 3',
49-
'Programming Language :: Python :: 3.8',
5049
'Programming Language :: Python :: 3.9',
5150
'Programming Language :: Python :: 3.10',
5251
'Programming Language :: Python :: 3.11',

0 commit comments

Comments
 (0)