I used local galaxy to run data. However I deleted the current library. but I think this still occupied my disk volume. I want to clean them totally, how I can do it?
Thank you very much in advance!
I used local galaxy to run data. However I deleted the current library. but I think this still occupied my disk volume. I want to clean them totally, how I can do it?
Thank you very much in advance!
Hi,
please have a look at the following script:
python ./scripts/cleanup_datasets/cleanup_datasets.py --help
Hope this helps,
Bjoern
Hi Bjoern,
First I added the following sentences in cleanup_datasets.py from" ./ scripts/cleanup_datasets/cleanup_datasets.py"
GALAXY_LIB="/Users/biowzmailustceducn/galaxy/lib"
if [ "$GALAXY_LIB" != "/Users/biowzmailustceducn/galaxy/lib" ]: then
if [ -n "$PYTHONPATH" ]: then
export PYTHONPATH="$GALAXY_LIB:$PYTHONPATH"
else
export PYTHONPATH="$GALAXY_LIB"
fi
fi
And next
python /Users/biowzmailustceducn/galaxy/scripts/cleanup_datasets/cleanup_datasets.py
The error occurs as following
File "/Users/biowzmailustceducn/galaxy/scripts/cleanup_datasets/cleanup_datasets.py", line 6
if [ -n "$PYTHONPATH" ]: then
^
IndentationError: unexpected indent
Would you like to help me solve this problem? Thank you very much for your help!
Best wishes
Hil
If I just run this code, the errors like this as following:
Traceback (most recent call last):
File "/Users/biowzmailustceducn/galaxy/scripts/cleanup_datasets/cleanup_datasets.py", line 14, in <module>
from galaxy import eggs
ImportError: No module named galaxy
Would you like to help us about this?
Are you running it inside your galaxy root dir?
Thank you very much! I pasted this file under galaxy root dir, but I met another question,as follow:
Traceback (most recent call last):
File "./cleanup_datasets.py", line 531, in <module>
if __name__ == "__main__": main()
File "./cleanup_datasets.py", line 101, in main
for key, value in config_parser.items( "app:main" ):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py", line 642, in items
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'app:main'