Git Product home page Git Product logo

pavlidislab / rnaseq-pipeline Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 4.0 44.58 MB

RNA-seq pipeline for raw sequence alignment and transcript/gene quantification.

License: The Unlicense

Shell 3.34% Python 88.35% Makefile 0.07% C 0.83% HTML 7.41%
alignment bash bioinformatics bioinformatics-pipeline fastqc gene-expression genomics illumina ngs ngs-analysis quantification rna-seq rsem splice-aware spliced-alignment star stringtie transcriptomics

rnaseq-pipeline's People

Contributors

arteymix avatar mbelmadani avatar ppavlidis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rnaseq-pipeline's Issues

ERCC Spike-ins support

It would be convenient to automate generation of ERCC spike-in count and storing the result for QC purposes.

Minimize usage of network between DownloadSample and AlignSample

In the current setup, it's possible that the AlignSample task get scheduled on a different node than the matching DownloadSample task which disrupt the NFS caching.

We could first start by pinning align jobs on whichever node was used to download the data. If that works well, we would then switch to use the local scratch filesystem to completely avoid the NFS.

Use --origfmt with fastq-dump

Currently, we use the SRA format for FASTQ headers which prefix the SRR run accession to the original string from the sequencer. This format is not compatible with ArrayExpress and local sources and will pose a problem if we try to generalize batch information extraction for arbitrary FASTQs and not just GEO series.

The solution is to add the --origfmt flag to fastq-dump so that the original header will be used instead.

This might require some adjustment in how Gemma parses the batch information.

Remove --taxon argument

The information that the taxon provide is redundant because we already have the genome and the annotation reference identifiers.

For that to work, we have to update Gemma platform identifiers to use explicit Ensembl versions.

Prepare/Load metadata into Gemma

Addressing request from PavlidisLab/Gemma#20

For GEO datasets/expression experiments, we would like to obtain:

  • The GSExxxxx
  • Pipeline parameters (Assembly, software versions, etc)
  • Fastq header information
  • Alignment information (may not be straightforward with RSEM)

To start, let's produce a text file in a "METADATA" directory similar to the Data directory.

Move to Python 3

Luigi (and also the Python core developers...) is about to drop support for Python 2.7 see spotify/luigi#2876.

This is a rather simple move as we only have to update the Conda environment to use Python 3 and possibly adjust some code in the pipeline.

Let sources handle taxons and other metadata

This would basically resolve #13 since we would pull the information from SRA/GEO/Gemma instead of requesting it.

For the local source, we would still need a flag to override a default taxon.

STAR does not always cleanup shared memory

This is basically due to memory leakage when a process does not decrement the shared memory usage counter. It would be better to establish the count on the number of attached process on the segment instead.

Raise warning on download when GEO accession doesn't have matching SRA data

Experiments from GEO can sometimes have an accession but not actually have SRA data. An example is GSE64018.

Currently the pipeline will not see this as a failure on DownloadGSE, but the Qc step will fail (assuming the --nsamples argument from QcGSE is not 0). It would be nicer if DownloadGSE would either return a failure when it can't find a matching SRA accession from the MINIML file, or at least raise a loud warning so the problem is obvious to the pipeline user.

Add task for backfilling FASTQ metadata only

Some experiments may need to be re-downloaded for the only purpose of getting the FASTQ metadata. This could be made as a luigi task.

Additional considerations:

  • Is it possible to speed this up by only downloading a small part of the file?
  • Are there external meta data repos for GEO/SRA data? (e.g. MetaSRA, http://metasra.biostat.wisc.edu/api.html)
  • Is it better to overwrite existing (obsolete or missing) metadata for historical purposes or append to it?

Upload pipeline metadata to Gemma

There's been discussion about using a subset of CWL to produce a file with structured pipeline metadata.

This process can be entirely automated by introspecting the Luigi task graph and extending ExternalProgramTask to provide additional metadata such as a version number. Ideally, we would move that logic into bioluigi and make all our task CWL-friendly.

Remove FASTQs when not needed if source is not local

We need the FASTQ files for two things: alignment tasks and batch information extraction.

At this time, submitting a batch information and quantifying gene expression are two separate and independent tasks that share some common dependencies. This makes it a bit difficult to determine the right moment to clear the FASTQ files.

We could add a wrapper task that depends on any task that needs the FASTQ files to exist and that would be considered completed if all its dependencies are met AND the FASTQ files do not exist.

This logic cannot apply for the local source.

Spring cleanup!

Most of the logic is now in scheduler/tasks.py, so it would be great to clean up the legacy code and get this repository tidy.

Look into including adapter trimming

While it is not generally needed, some datasets might require adapter trimming and there's pretty popular solution out there that automate some decisions:

What's nice about Trim Galore! is that we already use FastQC for reporting read quality and it might be possible to reuse the generated report.

Add a SRA source

In addition to the GEO source which invokes the SRA source, it would be nice to complement this with a SRA source that works with SRX accession (see #23).

FastQC fails silently

It causes the following error in Luigi:

Runtime error:
Traceback (most recent call last):
  File "/space/grp/Pipelines/rnaseq-pipeline/venv/lib/python2.7/site-packages/luigi/worker.py", line 184, in run
    raise RuntimeError('Unfulfilled %s at run time: %s' % (deps, ', '.join(missing)))
RuntimeError: Unfulfilled dependency at run time: QualityControlSample_GSE117223_GSM3288306_d6aef47967

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.