GithubHelp home page GithubHelp logo

photocyte / ncbi_sra_subscribe_bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 17 KB

This is a python bot that emails you when new sequencing data from SRA is available

License: MIT License

Python 100.00%

ncbi_sra_subscribe_bot's Introduction

NCBI_SRA_subscribe_bot

This is a python script/bot which is intended to run on a regular basis (e.g. every week, or every 2 weeks), and emails you when new NCBI SRA records from a particular taxonomic grouping are available.

The SRA may already allow you to subscribe to new data by email updates in this way, but if it exists I haven't found it. (Please let me know if you are aware of such a service!)

The script uses realtime querying of the NCBI databases, and uses Gmail's SMTP server to send the email, so internet access to those servers is required.

Dependencies

These are all python dependencies installable with pip/MacPorts/HomeBrew depending on your setup. The rest of the dependencies should be included with standard python3 installs.

Usage

python3 NCBI_SRA_subscribe_bot.py -t 94777 --reldate 360 --gmail_password YOURPASSWORDHERE --gmail_sender YOUR_GOOGLE_EMAIL_ADDRESS

This script command line would email you all the elaterid (Family Phengodidae; NCBI taxon id 94777) sequences which have released in the past year.

python3 NCBI_SRA_subscribe_bot.py -h to see the help documentation

The scheduling to run regularly isn't handled by this script. The idea is you'd use a scheduler for your own OS to regularly run the script without your supervision. E.g. cron to run the script every 2 weeks

FAQ

  • Q: I have to put my password into the command line to enable automatically emailing of results, is my email password exposed?

  • A: Yes and no. Your password isn't exposed when going over the internet, as it is protected by SSL encryption to Google's SMTP server, but your password is in plaintext on the script, so if another user can read that file (e.g. the crontab file), the password would be exposed.

  • Q: Can other email services than GMail be used?

  • A: Yes, but would require support to be written into the script. It's not so hard, as it would be handled by smtplib.

ncbi_sra_subscribe_bot's People

Contributors

photocyte avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.