-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ghost-tree output files are in a folder now; provide alternative option to name files #49
Comments
Three output files are: ghost-tree.nwk, log/error file, and accession ID list for use with Qiime's filter_otus_from_otu_table.py. Ask for name of folder and put files there instead. Any thoughts? |
@ebolyen and I discussed this and recommend the following:
How does this sound? |
@gregcaporaso, @jairideout, @ebolyen @wasade @johnchase, for your reference only, don't need to read. Some of the updates I made 08/15/15 include:Users input a folder name (#49) so that they can get the These are the two default files that are saved, the rest are options for advanced users. @jairideout & @ebolyen, thank you, I like your suggestion about "either entering file names OR a folder" but I wasn't sure how to do it in Click so this will have to do for now (I decreased priority unless you feel very strongly about it). It made sense to have a folder since there could be a lot of output files if people want to experiment with ghost-tree via the new flag options I added. There are now more options:"--stderr", is_flag=True, help="'saves error log file" -ghost-tree lets you know that it is currently running and when it is finished (addresses #43) -added demo file folders |
Note to self: when I have time, reread Jai and Evan's suggestion and try to figure out how to do this via Click. |
@JTFouquier your solution sounds fine for now, I think this can be taken care of during review. stdout and stderr aren't specific to Click or even Python, they are some of the standard streams made available by the operating system (e.g., Unix) to your program. These are files that you can write to: stdout is a file for your program's output and stderr is a file for error messages, warnings, etc. You can interact with stdout/stderr like this: import sys
sys.stdout.write("message for stdout")
sys.stderr.write("message for stderr") Here's a resource for learning more about stdout/stderr in the context of Python. When you start working on this again let @ebolyen and I know, we're happy to help with designing the CLI! |
Thanks @jairideout for the tips/reading! Yeaaaaah.....my unix-ness is extremely spotty. Go 👻-tree team! |
ghost-tree output files should be in a folder (this might be a better option than the user selecting a name for all of their files...).
The text was updated successfully, but these errors were encountered: