Code Monkey home page Code Monkey logo

vision_modeling_wmegs's Introduction

Setup

In order to prepare data, first build the cython library

cd scripts
python JointTadsSetup.py build_ext --inplace
cd ..

Next, get the data

mkdir -p data
wget http://usevision.org/data/mm10/rnaHtseqCountsall_withcoordinates.0.txt -o data/mm10_rna.txt
wget http://usevision.org/data/mm10/ideasJointMay2021/S3V2_IDEAS_mm10_r3_withHg38Mm10prior.state -o data/mm10_state.txt
wget http://usevision.org/data/mm10/ideasJointMay2021/S3V2_IDEAS_mm10_ccre2.cCRE.M.notall0.bed -o data/mm10_cre.txt
wget http://usevision.org/data/hg38/RNA/Oct2021/cntsFeb21v3.tab -o data/hg38_rna.txt
wget http://usevision.org/data/hg38/IDEASstates/ideasJointMay2021/S3V2_IDEAS_hg38_r3_withHg38Mm10prior.state -o data/hg38_rna.txt
wget http://usevision.org/data/hg38/IDEASstates/ideasJointMay2021/S3V2_IDEAS_hg38_ccre2.cCRE.M.notall0.rmallNEU.bed -o hg38_cre.txt

Finally, prepare the data

python scripts/mm10_rna_to_npy.py -r data/mm10_rna.txt -o data/mm10_rna_all.npy
python scripts/states_to_npy.py -s data/mm10_state.txt -o data/mm10_state.npy
python scripts/CREs_to_npy.py -s data/mm10_cre.txt -o data/mm10_cre.npy
python scripts/hg38_rna_to_npy.py -r data/hg38_rna.txt -o data/hg38_rna_all.npy
python scripts/states_to_npy.py -s data/hg38_state.txt -o data/hg38_state.npy
python scripts/CREs_to_npy.py -s data/hg38_cre.txt -o data/hg38_cre.npy

Running

In order to run, most of the settings are fine with default values

python bin/JointCRE_reformatted.py -r data/mm10_rna_all.npy data/hg38_rna_all.npy \
  -s data/mm10_state.npy data/hg38_state.npy -c data/mm10_cre.npy data/hg38_cre.npy \
  -g mm10 hg38 -o results -v 3

In order to leave out on celltype, use the -l mm10,CLP for example. To run controls, use --shuffle cre or --shuffle tss.

vision_modeling_wmegs's People

Contributors

msauria avatar

Watchers

 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.