In [1]:
# Parameters
sample_name = "A20;B-lymphoma;D;En"
modisco_root = "/srv/scratch/msharmin/mouse_hem/with_tfd/full_mouse50/Naive_modisco2019"
mitra_subdir = "report/version2"
task_dir = "task_269-naivegw"
database_name = "CISBP"
perf_file = "/srv/scratch/msharmin/mouse_hem/with_tfd/full_mouse50/fineFactorized/task_269-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 04:54:26,366 [WARNING] git-lfs not installed
In [3]:
display_metadata(sample_name, perf_file, reportfile, sheetname)
    Sample Information
    MetaData NameDescription
    Cell typeMurine B-lymphoma cell line(A20 cell line)
    Cell GroupCancer or Immortalized cells
    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
    rep117783014919818.00121098747425137480.229223088670.210540004230.3647
    rep1017783014919818.23611093221225244310.231323090690.211639808640.3647
    rep1117783014919818.18041097446425061200.228723093980.210839923870.3644
    rep1217783014919817.8311089814224585580.22622652250.208239711240.365
    rep1317783014919817.62111092270324512170.224822703400.208239776980.3648
    rep1417783014919818.19061080824826945470.249722898350.212239387280.365
    rep1517783014919815.506733004235101670.15495899320.179211948540.3629
    rep161778301491988.18242651425146586720.175831622510.119394978730.3584
    rep217783014919817.98711098750224645610.224722938910.209140027950.3649
    rep317783014919817.89151094389825088450.229622859170.209239867100.3649
    rep417783014919816.015848913338530200.1759339050.191617951420.3682
    rep517783014919818.43781047507226214980.250722421260.214438374530.367
    rep617783014919818.34761040227226074990.251122410190.215838165720.3675
    rep717783014919818.9656957444527212780.284621386430.223735436350.3707
    rep817783014919812.07982080953443785470.210633160710.159576644710.3687
    rep917783014919820.990944699929491070.213110132660.227516120320.3619
    Modelling Metadata
    MetricValue
    auPRC0.5745
    Calibrated Recall at 50% FDR0.2
    Number of Positive Examples in Test Data163470
    Number of Negative Examples in Test Data7907381
    Imbalance Ratio in Test Data0.0203
    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
Ctcf
Sfpi1
Unique TF-MoDISco Motifs
Motif NameModiscoHomer
Restabsent
Smarcc2absent
Gabpaabsent
Tbpl2absent
Zfxabsent
Sp3absent
Bcl11aabsent
Unique Homer Motifs
Motif NameModiscoHomer
Mbtps2absent
Pbx3absent
Srebf2absent
Foxd3absent
Bhlhe40absent
Zfp143absent
Klf2absent
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_269-naivegw/cisbp_tomtomout /srv/www/kundaje/msharmin/report/version2/task_269-naivegw/
chmod -R +755 /srv/www/kundaje/msharmin/report/version2/task_269-naivegw
Displaying motifs which has positive importances for the cell type
metacluster_1, # patterns: 13, # seqlets: 33246, Positive for: A20;B-lymphoma;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_269-naivegw/cisbp_tomtomout /srv/www/kundaje/msharmin/report/version2/task_269-naivegw/
chmod -R +755 /srv/www/kundaje/msharmin/report/version2/task_269-naivegw
Displaying motifs which has negative importances for the cell type
metacluster_0, # patterns: 14, # seqlets: 6453, Negative for: A20;B-lymphoma;D;En