1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/7c66e468c602/ Changeset: 7c66e468c602 User: martenson Date: 2014-10-22 18:08:57+00:00 Summary: data libs API documentation Affected #: 1 file diff -r 2fd74c3386c8934297d2b85249539a17353d8269 -r 7c66e468c6024b2e17a70ffadae0ad080b174c68 lib/galaxy/webapps/galaxy/api/lda_datasets.py --- a/lib/galaxy/webapps/galaxy/api/lda_datasets.py +++ b/lib/galaxy/webapps/galaxy/api/lda_datasets.py @@ -370,8 +370,8 @@ :param encoded_dataset_id: the encoded id of the dataset to change :type encoded_dataset_id: an encoded id string + :returns: dict containing information about the dataset :rtype: dictionary - :returns: dict containing information about the dataset """ undelete = util.string_as_bool( kwd.get( 'undelete', False ) ) try: @@ -400,16 +400,34 @@ @expose_api def load( self, trans, **kwd ): """ - Load dataset from the given source into the library. + load( self, trans, **kwd ): + * POST /api/libraries/datasets + Load dataset from the given source into the library. + Source can be: + user directory - root folder specified in galaxy.ini as "$user_library_import_dir" + example path: path/to/galaxy/$user_library_import_dir/user@example.com/{user can browse everything here} + the folder with the user login has to be created beforehand + (admin)import directory - root folder specified in galaxy ini as "$library_import_dir" + example path: path/to/galaxy/$library_import_dir/{admin can browse everything here} + (admin)any absolute or relative path - option allowed with "allow_library_path_paste" in galaxy.ini + + :param encoded_folder_id: the encoded id of the folder to import dataset(s) to + :type encoded_folder_id: an encoded id string + :param source: source the datasets should be loaded form + :type source: str + :param link_data: flag whether to link the dataset to data or copy it to Galaxy, defaults to copy + while linking is set to True all symlinks will be resolved _once_ + :type link_data: bool + :param preserve_dirs: flag whether to preserve the directory structure when importing dir + if False only datasets will be imported + :type preserve_dirs: bool + :param file_type: file type of the loaded datasets, defaults to 'auto' (autodetect) + :type file_type: str + :param dbkey: dbkey of the loaded genome, defaults to '?' (unknown) + :type dbkey: str - :param encoded_folder_id: the encoded id of the folder to import dataset to - :type encoded_folder_id: an encoded id string - :param source: source of the dataset to be loaded - :type source: str - :param link_data: flag whether to link the dataset to data or copy it to Galaxy - :type link_data: bool - :param preserve_dirs: flag whether to preserver directory structure when importing dir - :type preserve_dirs: bool + :returns: dict containing information about the created upload job + :rtype: dictionary """ kwd[ 'space_to_tab' ] = 'False' @@ -443,9 +461,7 @@ if user_base_dir is None: raise exceptions.ConfigDoesNotAllowException( 'The configuration of this Galaxy instance does not allow upload from user directories.' ) full_dir = os.path.join( user_base_dir, user_login ) - # path_to_root_import_folder = None if not path.lower().startswith( full_dir.lower() ): - # path_to_root_import_folder = path path = os.path.join( full_dir, path ) if not os.path.exists( path ): raise exceptions.RequestParameterInvalidException( 'Given path does not exist on the host.' ) 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.