In [1]:
# Parameters
sample_name = "LVR;8wks;D;En"
modisco_root = "/srv/scratch/msharmin/mouse_hem/with_tfd/full_mouse50/Naive_modisco2019"
mitra_subdir = "report/version2"
task_dir = "task_224-naivegw"
database_name = "CISBP"
perf_file = "/srv/scratch/msharmin/mouse_hem/with_tfd/full_mouse50/fineFactorized/task_224-naivegw/NaiveauPRC.txt"
homer_root = "/srv/scratch/msharmin/mouse_hem/with_tfd/full_mouse50/Naive_scans"
In [2]:
from matlas.modisco_report import modisco_report_pipeline, display_metadata
reportfile= "/mnt/lab_data/kundaje/msharmin/mouse_hem/with_tfd/full_mouse50/filtering samples_MS2.xlsx"
sheetname = "filter23"
load data from labcluster
Using TensorFlow backend.
2019-07-23 02:39:13,107 [WARNING] git-lfs not installed
In [3]:
display_metadata(sample_name, perf_file, reportfile, sheetname)
    Sample Information
    MetaData NameDescription
    Cell typeLiver(adult-8wks)
    Cell GroupOther Tissues
    Experiment NameDHS
    Experiment GroupENCODE
    Pipeline Output
    replicateNaïve overlap peaksIDR peaksTSS enrichment (< 8 is very poor <10 is low)Final number of unique mapping, dup-filtered, chrM filtered readsNumber of reads in called peak regionsFraction of reads in called peak regionsNumber of reads in promoter regionsFraction of reads in promoter regionsNumber of reads in enhancer regionsFraction of reads in enhancer regions
    rep118909214158310.50191745651938231170.219215937130.091469805390.4002
    rep101890921415839.06573266763466144080.202530338300.0929121956440.3734
    rep1118909214158318.3361517971758342130.384526439690.174268197200.4494
    rep1218909214158316.78532268144492361830.407436691060.1618104261060.4598
    rep1318909214158310.15922955847444763330.151523046230.078112676150.3813
    rep1418909214158312.02082738105273588530.268926877580.0982113340530.4141
    rep21890921415837.0062113906602342451860.3007105704470.0928475526620.4175
    rep318909214158311.75771982326153481480.269920584100.103984675630.4273
    rep418909214158311.37081775260142381000.238918741300.105674088980.4176
    rep518909214158315.651603882570479020.439625088060.156579178190.4939
    rep618909214158313.29081612778667756120.420322645820.140578647000.4879
    rep718909214158311.11941761444469725380.39624225280.137680739950.4585
    rep818909214158317.65791926365869376390.360328763960.149486162000.4475
    rep918909214158315.71192109248463120550.299427453820.130291261800.4329
    Modelling Metadata
    MetricValue
    auPRC0.5399
    Calibrated Recall at 50% FDR0.252
    Number of Positive Examples in Test Data179928
    Number of Negative Examples in Test Data7890923
    Imbalance Ratio in Test Data0.0223
    Test Chromosomeschr2, chr3, chr19
In [4]:
from matlas.modisco_report import display_comparative_motif_sets
display_comparative_motif_sets(sample_name, homer_root, modisco_root)
TF-MoDISco is using the TensorFlow backend.
Number of CISBP motifs obtained by TF-MoDISco and Homer-denovo
Shared Motifs
Motif NameModiscoHomer
Hnf4g
Ctcf
Sp3
Unique TF-MoDISco Motifs
Motif NameModiscoHomer
Erfabsent
Cebpbabsent
Mbtps2absent
Foxa2absent
Bach2absent
Smarcc2absent
Onecut3absent
Bach1absent
Pbx3absent
Hsf1absent
9430076C15Rikabsent
Irf1absent
Nfiaabsent
Foxd3absent
Unique Homer Motifs
Motif NameModiscoHomer
Nficabsent
Foxc1absent
Tcfebabsent
Zfp143absent
Cebpaabsent
Onecut1absent
Gabpaabsent
In [5]:
modisco_report_pipeline(sample_name, modisco_root, mitra_subdir, task_dir, database_name, 
                        importance=True, render=True)
rsync -t -av /srv/scratch/msharmin/mouse_hem/with_tfd/full_mouse50/Naive_modisco2019/task_224-naivegw/cisbp_tomtomout /srv/www/kundaje/msharmin/report/version2/task_224-naivegw/
chmod -R +755 /srv/www/kundaje/msharmin/report/version2/task_224-naivegw
Displaying motifs which has positive importances for the cell type
metacluster_0, # patterns: 21, # seqlets: 24957, Positive for: LVR;8wks;D;En
In [6]:
modisco_report_pipeline(sample_name, modisco_root, mitra_subdir, task_dir, database_name, 
                        importance=False, render=True)
rsync -t -av /srv/scratch/msharmin/mouse_hem/with_tfd/full_mouse50/Naive_modisco2019/task_224-naivegw/cisbp_tomtomout /srv/www/kundaje/msharmin/report/version2/task_224-naivegw/
chmod -R +755 /srv/www/kundaje/msharmin/report/version2/task_224-naivegw
No motifs with negative importance