You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use cat test.fasta | smof grep -f test.txt and got a "ShitInput" error. This only occurs when a subcommand flag is invoked when trying to pipe from standard input. I added default=sys.stdin to all file arguments. I then encountered TypeError: can only concatenate list (not "_io.TextIOWrapper") to list in the main function. This was simply resolved by overwriting fh entirely instead of appending. Since the default value of fh is now standard input, appending text is not compatible. I also considered the additional conditionals to be unnecessary.
Created pull request #5 with proposed solution. Tested with the following: cat test.fasta | smof grep -f test.txt smof grep -f test.txt test.fasta
The text was updated successfully, but these errors were encountered:
I tried to use
cat test.fasta | smof grep -f test.txt
and got a "ShitInput" error. This only occurs when a subcommand flag is invoked when trying to pipe from standard input. I addeddefault=sys.stdin
to all file arguments. I then encounteredTypeError: can only concatenate list (not "_io.TextIOWrapper") to list
in the main function. This was simply resolved by overwriting fh entirely instead of appending. Since the default value of fh is now standard input, appending text is not compatible. I also considered the additional conditionals to be unnecessary.Created pull request #5 with proposed solution. Tested with the following:
cat test.fasta | smof grep -f test.txt
smof grep -f test.txt test.fasta
The text was updated successfully, but these errors were encountered: