Giter Club home page Giter Club logo

ananse-cage's Introduction

ANANSE-CAGE

Supporting scripts and notebooks detailing how to use ANANSE with CAGE data.

How to use

To perform the CAGE module of ANANSE we first need to generate the necessary input files using R, specifically the CAGEfightR package. Use this R markdown as a reference. Note, the best prediction algorithm currently only supports hg19 and hg38. We recommend to use triplicates.

Initialize

First, edit the first chunk of the this R markdown according to your own data and structure. For example, make sure you use the correct assembly, working directory, paths, and names.

Pre-processing

You can use BED files (tab seperated) with 6 columns:

  1. chr
  2. start
  3. end
  4. chr:start..end,strand
  5. tag count
  6. strand

For example: chr1 564586 564587 chr1:564586..564587,+ 2 +

CAGEfightR can turn this BED format and convert it to BigWig files that are then used for tag quantification. Make sure to set "PREPROCESSING = TRUE" in this R markdown script in order to convert the BED files to BigWigs.

Generate ANANSE input files

Use the BigWig files to run the third chunk of this R markdown script. You should end up with these files:

  • enhancer_source.tsv
  • enhancer_target.tsv
  • TPM_source_N.txt
  • TPM_target_N.txt
  • DE_genes.txt

ANANSE-CAGE

Install ANANSE according to the documentation

Required layout:

  • work_dir/
    • data/
      • enhancer_source.tsv
      • enhancer_target.tsv
      • TPM_source_N.txt
      • TPM_target_N.txt
      • DE_genes.txt
    • results/
      • (ouput files will be deposited here)

Perform the following steps:

ANANSE Binding

ananse binding -C ./data/enhancers_source.tsv -o ./results/source_binding -g hg19;
ananse binding -C ./data/enhancers_target.tsv -o ./results/target_binding -g hg19;

ANANSE Network

ananse network ./results/source_binding/binding.h5 -e ./data/TPM_source_*.txt -o ./results/network_source.tsv -g hg19 -n 4;
ananse network ./results/target_binding/binding.h5 -e ./data/TPM_target_*.txt -o ./results/network_target.tsv -g hg19 -n 4;

ANANSE Influence

ananse influence -s ./results/network_source.tsv -t ./results/network_target.tsv -d ./data/DE_genes.txt -o ./results/influence.tsv -i 500000 -n 12;

ANANSE Plot

ananse plot ./results/influence.tsv -d ./results/influence_diffnetwork.tsv -o ./results/influence_results;

ananse-cage's People

Contributors

brancoheuts avatar simonvh avatar

Watchers

 avatar

ananse-cage's Issues

The process was frozen after I started the ANANSE INFLUENCE analysis.

Dear developer,
When I start the ANANSE INFLUENCE analysis, the progress bar stops at a certain point and cannot be completed 100%. There were no warnings about errors or bugs. (shown as below)

image

I used files of different groups generated by the same code, sometimes the analysis can be finished. The only difference was the sample itself.
In addition, I tried different computers including a computer with 16 core Xeon, 100GB RAM, 1TB SSD. The analysis still cannot be finished.
And also, even I set the number of edges to 100,000, it still did not work.
Could you please assist me in resolving this issue?

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.