@@ -21,24 +21,24 @@ def main():
2121 sub = parser .add_subparsers (dest = "cmd" , required = True )
2222
2323 c1 = sub .add_parser ("count-mapped" )
24- c1 .add_argument ("-i " , "--input " , required = True )
24+ c1 .add_argument ("-a " , "--alignments " , required = True )
2525
2626 c2 = sub .add_parser ("count-unmapped" )
27- c2 .add_argument ("-i " , "--input " , required = True )
27+ c2 .add_argument ("-a " , "--alignments " , required = True )
2828
2929 args = parser .parse_args ()
30- sam_path = Path (args .input )
30+ sam_path = Path (args .alignments )
3131 if not sam_path .exists ():
32- print (f"Error: input file '{ args .input } ' does not exist." , file = sys .stderr )
32+ print (f"Error: input file '{ args .alignments } ' does not exist." , file = sys .stderr )
3333 sys .exit (1 )
3434
3535 try :
36- raw = subprocess .check_output (["aligncount_cpp " , args .input ])
36+ raw = subprocess .check_output (["Aligncount " , "-a" , args .alignments ])
3737 except FileNotFoundError :
38- print ("Error: C++ binary 'aligncount_cpp ' not found in PATH." , file = sys .stderr )
38+ print ("Error: C++ binary 'Aligncount ' not found in PATH." , file = sys .stderr )
3939 sys .exit (1 )
4040 except subprocess .CalledProcessError as e :
41- print (f"Error: 'aligncount_cpp ' failed (exit { e .returncode } )." , file = sys .stderr )
41+ print (f"Error: 'Aligncount ' failed (exit { e .returncode } )." , file = sys .stderr )
4242 sys .exit (e .returncode )
4343
4444 # Use our new helper to produce the final string to print
0 commit comments