kbaseapps / kb_uploadmethods

MIT License
4 stars 21 forks source link

kb_uploadmethods

Current Status

Branch Build Coverage LGTM Alerts
master KBase SDK Tests codecov Total alerts

Release Notes

Description

This module implements KBase apps that are used to transform data files into KBase data objects for use in analysis. This also includes a few apps for adding external files to the user's staging area, and manipulating them there.

See here for more information on uploading data to KBase.

Development

This module was created using the KBase SDK. See the documentation for more detail. Apps are mostly broken down into submodules. Instructions for setting up a local development environment can be found here (note that Docker is required).

The main entrypoint is in lib/kb_uploadmethods/kb_uploadmethodsImpl.py. Individual apps in that module use one or more utility module to handle different file types. These are all under lib/kb_uploadmethods/Utils. Add a new Util module if you're adding an uploader for a new data type.

Testing

This module can be tested with the following steps, common to all KBase SDK modules.

  1. Install the KBase SDK.
  2. Fetch this module and navigate to it from the console.
  3. Run kb-sdk test once - this will initialize the test_local/test.cfg file.
  4. Populate the test_local/test.cfg file with a KBase authentication token (see here for details).
  5. Run kb-sdk test again.

Once steps 1-4 have been run once, you can just run kb-sdk test to run the test suite any time.

Apps

Each app is listed below with the following format: Display name - what the user sees - links to module doc page, if available app id: id - how the app is identified to the system, including the directory under ui/narrative/methods entrypoint: function - name of the function that gets run in this module, as described in kb_uploadmethods.spec output type: typed object(s) created

Batch Import Assembly from Staging Area

Batch Import Genome from Staging Area

Import TSV/Excel File as Attribute Mapping from Staging Area

Import JSON File as EscherMap from Staging Area

Import FASTA File as Assembly from Staging Area

Import a FASTA file from your staging area into your Narrative as a Protein/DNA Sequence Set data object

Import FASTQ/SRA File as Reads from Staging Area

Import TSV/XLS/SBML File as an FBAModel from Staging Area

Import GenBank File as Genome from Staging Area

Import GFF3/FASTA file as Genome from Staging Area

Import GFF3/FASTA file as Annotated Metagenome Assembly from Staging Area

Import SRA File as Reads From Web - v1.0.7

Import TSV File as Expression Matrix From Staging Area

Import TSV File as Phenotype Set from Staging Area

Import Media file (TSV/Excel) from Staging Area

Import Paired-End Reads from Web - v1.0.12

Import Single-End Reads from Web - v1.0.12

Unpack a Compressed File in Staging Area - v1.0.12

Upload File to Staging from Web - v1.0.12

Import SRA File as Reads from Staging Area

Import FASTQ Interleaved Reads from Staging Area

Load FASTQ Non Interleaved Reads From Staging Area

(not in use) Import Paired-End Reads from Staging Area

(not in use) Load Single-End Reads From Staging Area