Coder Social home page Coder Social logo

radusuciu / ctesi Goto Github PK

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

Automated processing of chemoproteomics data

Python 56.24% Shell 1.56% CSS 1.46% JavaScript 17.82% HTML 21.60% Mako 0.50% Dockerfile 0.82%
proteomics biology data-pipeline drug-discovery

ctesi's Introduction

Ctesi

Ctesi is a project meant to simplify processing and quantification of chemoproteomic mass spectrometry data in the Cravatt lab. The following are automated:

  • Conversion of .raw files to .ms2 and mzXML formats
  • Submission to an instance of IP2 maintained at The Scripps Research Institute
  • Quantification of data with in-house software (cimage)

Dev setup notes

Ctesi requires a copy of the cimage-minimal project, to be placed alongside it.

On development instances you must create a file config/secrets.override.yml. This will by default not be entered into version control. It must contain credentials for accessing Active Directory. There is an example file in config/secrets.yml.

You must also mount an NFS share that is accessible by a cravatt-rawprocessor (not included here) instance. An example mount commmand is included in config/mount-nfs.example.sh. This command must be issued with root privileges.

ctesi's People

Contributors

radusuciu avatar

Watchers

 avatar  avatar

ctesi's Issues

Make better use of flask_principal

Would be nicer than a lot of this:

experiment = api.Experiment.query.get(experiment_id) 
if experiment.user_id == int(current_user.get_id()) or current_user.has_role('admin'):
   // something that requires permissions

"Remember me" functionality for ip2

Need to modify ip2api to add a method to login via a stored cookie. On page load check if cookie still works and if not, require that the user passes their username and password once again.

ip2 credentials sometimes go stale transparently

Though there's a check for the presence of credentials in the session prior to rendering of the main page, these credentials aren't actually checked. The end result is sometimes the input boxes for these credentials pop up after the user has submitted.

Perhaps checking credentials before rendering every request is a bit much, but perhaps the experience of them being rejected/stale can be made a bit less jarring.

Database lock error when updating experiment status

Task ctesi.core.tasks.convert_task[f17e0507-8f93-4405-a099-ddac4fe54a69] raised unexpected: OperationalError('(sqlite3.OperationalError) database is locked',)
Traceback (most recent call last):
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 724, in _commit_impl
    self.engine.dialect.do_commit(self.connection)
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 462, in do_commit
    dbapi_connection.commit()
sqlite3.OperationalError: database is locked

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/celery/app/trace.py", line 382, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/celery/app/trace.py", line 641, in __protected_call__
    return self.run(*args, **kwargs)
  File "/home/ctesi/ctesi/ctesi/core/tasks.py", line 83, in convert_task
    status_callback=lambda s: update_status(experiment_id, 'converting', meta=s),
  File "/home/ctesi/ctesi/ctesi/core/convert.py", line 22, in convert
    status_callback(status)
  File "/home/ctesi/ctesi/ctesi/core/tasks.py", line 83, in <lambda>
    status_callback=lambda s: update_status(experiment_id, 'converting', meta=s),
  File "/home/ctesi/ctesi/ctesi/api/__init__.py", line 71, in update_experiment_status
    db.session.commit()
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/sqlalchemy/orm/scoping.py", line 153, in do
    return getattr(self.registry(), name)(*args, **kwargs)
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/sqlalchemy/orm/session.py", line 943, in commit
    self.transaction.commit()
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/sqlalchemy/orm/session.py", line 471, in commit
    t[1].commit()
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1643, in commit
    self._do_commit()
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1674, in _do_commit
    self.connection._commit_impl()
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 726, in _commit_impl
    self._handle_dbapi_exception(e, None, None, None, None)
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1413, in _handle_dbapi_exception
    exc_info
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 265, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=cause)
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 248, in reraise
    raise value.with_traceback(tb)
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 724, in _commit_impl
    self.engine.dialect.do_commit(self.connection)
  File "/home/ctesi/ctesi/venv/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 462, in do_commit
    dbapi_connection.commit()
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked (Background on this error at: http://sqlalche.me/e/e3q8)

Create separate celery queues

Cues that require little processing such as IP2 submission should be allowed higher concurrency than intense cues like running cimage.

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.