Skip to main content
https://travis-ci.org/galaxy-genome-annotation/python-apollo.svg?branch=master Documentation Status

Apollo is a Python library for interacting with Apollo. Arrow is its companion CLI tool.

for the record … arrow makes working with Apollo SOOO much easier — Nathan Dunn, Apollo Developer

Installation

pip install apollo

Examples

Example code to create a new organism and add yourself in the permission list:

from apollo import ApolloInstance
wa = ApolloInstance('https://fqdn/apollo', 'jane.doe@fqdn.edu', 'password')

orgs = wa.organisms.add_organism(
    "Yeast",
    "/path/to/jbrowse/data",
    genus='Saccharomyces',
    species='cerevisiae',
    public=False
)

# Give Apollo a second to process the uploaded organism.
time.sleep(1)

# Then add yourself to permission list
data = wa.users.update_organism_permissions(
    "jane.doe@fqdn.edu",
    "Yeast",
    write=True,
    export=True,
    read=True,
)

If you have already created an Arrow config file (with command arrow init), you can also get an ApolloInstance without writing credentials explicitely:

from arrow.apollo import get_apollo_instance
wa = get_apollo_instance()

Or with the Arrow client:

$ arrow groups create_group university
{
    "publicGroup": false,
    "class": "org.bbop.apollo.UserGroup",
    "name": "university",
    "users": null,
    "id": 558319
}
# THEN
$ arrow users get_users | \
    jq '.[] | select(.username | contains("@tamu.edu")) | .username' | \
    xargs -n1 arrow users add_to_group university
# OR
$ arrow users get_users | \
    jq '.[] | select(.username | contains("@tamu.edu")) | .username' | \
    paste -s -d',' | \
    xargs arrow group update_membership 558319 --users

History

  • 4.2.13
    • Relax biopython requirements

  • 4.2.12
    • Do not filter out username from api responses

  • 4.2.11
    • Updated wrong version number

  • 4.2.10
  • 4.2.9
    • Bugfix to update_organism when using suppress_output

  • 4.2.8
    • Added –suppress_output to update_organism

  • 4.2.7
    • Renamed –return_all option to –suppress_output

  • 4.2.6
    • Added –return_all option to add_organism and delete_organism methods

  • 4.2.5
    • Prevent from displaying login/password in the logs

  • 4.2.4
    • Remove unused dependency

  • 4.2.3
    • Fixed load_gff3 to more accurately load transcripts including the CDS as well as handle non-coding types more accurately.

  • 4.2.2
    • Drastically speed up load_gff3

    • load_gff3 now uses the Apollo add_transcript method if it is a gene or mRNA type

    • Added support for all of the current Apollo coding and non-coding types

    • Drop support for Python 2.7

  • 4.2.1
    • Fix getting groups by name

    • Add tests for group api

  • 4.2
    • Improve user update method

    • Add tests for user api

  • 4.1
    • Fix loading attributes from gff3

    • Better handling of genome sequence update, with or without the no_reload_sequences option

  • 4.0.1
    • Fix missing file in pypi package, no code change

  • 4.0
    • Added support for remote creation/update/deletion of organisms/tracks

    • Added support for adding GFF3 in the annotation track

    • Added tests

  • 3.1
    • Added user activate/inactivate

    • Added get_creator for user, group and organisms

    • Added omitEmptyOrganisms to get_users

    • Added support for group admins

    • Added support for bulk group creation/deletion

    • Repaired GFF3/Fasta downloading

  • 3.0.4
  • 3.0.3
    • findAllOrganisms works correctly, client side filtering no longer necessary.

  • 3.0.2
    • Patch a bug discovered in io.write, thanks Morgan!

  • 3.0
    • “Arrow” CLI utility

    • More pythonic API and many workarounds for Apollo bugs or oddities

    • Complete package restructure

    • Nearly all functions renamed

  • 2.0
    • Galaxy Functions

    • TTL Cache to work around Galaxy’s behaviour

    • Status and Canned* Clients from @abretaud

  • 1.0
    • Initial release

Development

The content of docs and arrow directories is automatically generated from the code in the apollo directory. To regenerate it, install the latest version of the code, then run:

make rebuild

License

Available under the MIT License

Support

This material is based upon work supported by the National Science Foundation under Grant Number (Award 1565146)

Metadata

Release files for apollo 4.2.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apollo 4.2.13
File Size Uploaded
apollo-4.2.13.tar.gz 41.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apollo 4.2.13
File Interpreter ABI Platform
apollo-4.2.13-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 132.5 kB

Release files / apollo-4.2.13.tar.gz

Download URL apollo-4.2.13.tar.gz
Size 41.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a16b3d6a6a202b5a6e62838c70c8d22162d875c3ef027a37727ae7de37deb68c
BLAKE2b-256 checksum
How to use checksums
b9210fbc73f4b94c7b06e7f8cbb39c02c08ae17590240b46771c965650037d99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Release files / apollo-4.2.13-py2.py3-none-any.whl

Download URL apollo-4.2.13-py2.py3-none-any.whl
Size 90.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a14a88d1feda162934f1fd0cf9f2989f579f4d4eeb086c785f272a78ea2c2178
BLAKE2b-256 checksum
How to use checksums
e96a5b1dbbc53f56f8d0208740ce73550e88d581f9840f90b3965fb958e903ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

4.2.13 This release

2 release files

4.2.12

2 release files

4.2.11

2 release files

4.2.9

1 release file

4.2.8

1 release file

4.2.7

2 release files

4.2.6

2 release files

4.2.5

1 release file

4.2.4

1 release file

4.2.3

1 release file

4.2.2

3 release files

4.2.1

2 release files

4.2

2 release files

4.1

1 release file

4.0.1

1 release file

4.0

1 release file

3.1

1 release file

3.0.4

1 release file

3.0.3

3 release files

3.0.2

3 release files

3.0

4 release files

2.0

3 release files

1.0

2 release files

0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page