When I downloaded the project and ran samparser.py, I got the error that that "the Namespace object has no attribute infile" (line 3800 of samparser.py at if args.infile == args.outfile:).
The problem seems to be that infile is a member of the parsed arguments of the io_parser rather than the argparser, and the problem seemed to be fixed by changing
args = argparser.parse_args()
to
args = io_parser.parse_args()
(It seemed to me that io_parser was in fact supposed to be the main parser, but I don't know enough to know whether that's true)
The issue was that while infile was inherited correctly by both the subparsers, none of them were invoked when samparser.py was invoked with no subcommand.
When I downloaded the project and ran samparser.py, I got the error that that "the
Namespace
object has no attributeinfile
" (line 3800 of samparser.py atif args.infile == args.outfile:
).The problem seems to be that
infile
is a member of the parsed arguments of theio_parser
rather than theargparser
, and the problem seemed to be fixed by changingargs = argparser.parse_args()
toargs = io_parser.parse_args()
(It seemed to me that
io_parser
was in fact supposed to be the main parser, but I don't know enough to know whether that's true)