commit/galaxy-central: 2 new changesets
2 new commits in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/47480f11d5d5/ changeset: 47480f11d5d5 user: natefoo date: 2013-03-06 18:40:31 summary: Make maf-to-bed object-store aware affected #: 1 file diff -r 3ec030c42b9e59234d4c005e6a7f1de6e0e1e736 -r 47480f11d5d5c99dfe67710cc4a7ecbaeebebb4a tools/maf/maf_to_bed_code.py --- a/tools/maf/maf_to_bed_code.py +++ b/tools/maf/maf_to_bed_code.py @@ -1,3 +1,4 @@ +import os import pkg_resources; pkg_resources.require( "bx-python" ) from bx.align import maf from galaxy import datatypes, config, jobs @@ -38,7 +39,8 @@ app.model.context.add( history ) app.model.context.flush() try: - move(filepath,newdata.file_name) + app.object_store.update_from_file( newdata.dataset, file_name=filepath, create=True ) + os.unlink( filepath ) newdata.info = newdata.name newdata.state = newdata.states.OK except: https://bitbucket.org/galaxy/galaxy-central/commits/b65ed2831d23/ changeset: b65ed2831d23 branch: stable user: natefoo date: 2013-03-06 18:40:31 summary: Make maf-to-bed object-store aware affected #: 1 file diff -r c177960e4ed61925a8b6c858e1f3f8d54c93cb37 -r b65ed2831d234ef9fc78b8c15d9dfcf40f879c4f tools/maf/maf_to_bed_code.py --- a/tools/maf/maf_to_bed_code.py +++ b/tools/maf/maf_to_bed_code.py @@ -1,3 +1,4 @@ +import os import pkg_resources; pkg_resources.require( "bx-python" ) from bx.align import maf from galaxy import datatypes, config, jobs @@ -38,7 +39,8 @@ app.model.context.add( history ) app.model.context.flush() try: - move(filepath,newdata.file_name) + app.object_store.update_from_file( newdata.dataset, file_name=filepath, create=True ) + os.unlink( filepath ) newdata.info = newdata.name newdata.state = newdata.states.OK except: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org