Last updated: 2021-07-05

Checks: 5 2

Knit directory: Embryoid_Body_Pilot_Workflowr/analysis/

This reproducible R Markdown analysis was created with workflowr (version 1.6.2). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


The R Markdown file has unstaged changes. To know which version of the R Markdown file created these results, you'll want to first commit it to the Git repo. If you're still working on the analysis, you can ignore this warning. When you're finished, you can run wflow_publish to commit the R Markdown file and build the HTML.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it's best to always run the code in an empty environment.

The command set.seed(20200804) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.

Using absolute paths to the files within your workflowr project makes it difficult for you and others to run your code on a different machine. Change the absolute path(s) below to the suggested relative path(s) to make your code more reproducible.

absolute relative
/project2/gilad/katie/Pilot_HumanEBs/Embryoid_Body_Pilot_Workflowr/output/figs/Fig4_VarPartRes1.png ../output/figs/Fig4_VarPartRes1.png

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version c8767ac. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/
    Ignored:    analysis/.Rhistory
    Ignored:    output/.Rhistory

Untracked files:
    Untracked:  GSE122380_raw_counts.txt.gz
    Untracked:  UTF1_plots.Rmd
    Untracked:  analysis/IntegrateReference_SCTregressCaoPlusScHCL_JustEarlyEcto.Rmd
    Untracked:  analysis/IntegrateReference_SCTregressCaoPlusScHCL_JustEndo.Rmd
    Untracked:  analysis/IntegrateReference_SCTregressCaoPlusScHCL_JustMeso.Rmd
    Untracked:  analysis/IntegrateReference_SCTregressCaoPlusScHCL_JustNeuralCrest.Rmd
    Untracked:  analysis/IntegrateReference_SCTregressCaoPlusScHCL_JustNeuron.Rmd
    Untracked:  analysis/IntegrateReference_SCTregressCaoPlusScHCL_JustPluri.Rmd
    Untracked:  analysis/OLD/
    Untracked:  analysis/Pseudobulk_Limma_Harmony.BatchIndividual_ClusterRes0.8_minPCT0.2.Rmd
    Untracked:  analysis/Pseudobulk_Limma_Harmony.BatchIndividual_ClusterRes1_minPCT0.2.Rmd
    Untracked:  analysis/Pseudobulk_VariancePartition_Harmony.Batchindividual_ClusterRes0.1_byCluster.Rmd
    Untracked:  analysis/RefInt_ComparingFulltoPartialIntegrationAnnotations.Rmd
    Untracked:  analysis/ReferenceAnn_DE.Rmd
    Untracked:  analysis/SingleCell_HierarchicalClustering_NoGeneFilter.Rmd
    Untracked:  analysis/SingleCell_VariancePartitionByCluster_Harmony.Batchindividual_ClusterRes0.1_minPCT0.2.Rmd
    Untracked:  analysis/VarPartPlots_res0.1_SCT.Rmd
    Untracked:  analysis/VarPart_SC_res0.1_SCT.Rmd
    Untracked:  analysis/child/
    Untracked:  analysis/k10topics_Explore.Rmd
    Untracked:  analysis/k6topics_Explore.Rmd
    Untracked:  build_refint_scale.R
    Untracked:  build_refint_sct.R
    Untracked:  build_stuff.R
    Untracked:  build_varpart_sc.R
    Untracked:  code/.ipynb_checkpoints/
    Untracked:  code/CellRangerPreprocess.Rmd
    Untracked:  code/ConvertToDGE.Rmd
    Untracked:  code/ConvertToDGE_PseudoBulk.Rmd
    Untracked:  code/ConvertToDGE_SingleCellRes_minPCT0.2.Rmd
    Untracked:  code/EB.getHumanMetadata.Rmd
    Untracked:  code/GEO_processed_data.Rmd
    Untracked:  code/PowerAnalysis_NoiseRatio.ipynb
    Untracked:  code/Untitled.ipynb
    Untracked:  code/Untitled1.ipynb
    Untracked:  code/compile_fits.Rmd
    Untracked:  code/fit_all_models.sh
    Untracked:  code/fit_poisson_nmf.R
    Untracked:  code/fit_poisson_nmf.sbatch
    Untracked:  code/functions_for_fit_comparison.Rmd
    Untracked:  code/get_genelist_byPCTthresh.Rmd
    Untracked:  code/prefit_poisson_nmf.R
    Untracked:  code/prefit_poisson_nmf.sbatch
    Untracked:  code/prepare_data_for_fastTopics.Rmd
    Untracked:  data/HCL_Fig1_adata.h5ad
    Untracked:  data/HCL_Fig1_adata.h5seurat
    Untracked:  data/dge/
    Untracked:  data/dge_raw_data.tar.gz
    Untracked:  data/ref.expr.rda
    Untracked:  figure/
    Untracked:  output/CR_sampleQCrds/
    Untracked:  output/CaoEtAl.Obj.CellsOfAllClusters.ProteinCodingGenes.rds
    Untracked:  output/CaoEtAl.Obj.rds
    Untracked:  output/ClusterInfo_res0.1.csv
    Untracked:  output/DGELists/
    Untracked:  output/DownSampleVarPart.rds
    Untracked:  output/Frequency.MostCommonAnnotation.FiveNearestRefCells.csv
    Untracked:  output/GEOsubmissionProcessedFiles/
    Untracked:  output/GeneLists_by_minPCT/
    Untracked:  output/MostCommonAnnotation.FiveNearestRefCells.csv
    Untracked:  output/NearestReferenceCell.Cao.hESC.EuclideanDistanceinHarmonySpace.csv
    Untracked:  output/NearestReferenceCell.Cao.hESC.FrequencyofEachAnnotation.csv
    Untracked:  output/NearestReferenceCell.SCTregressRNAassay.Cao.hESC.EuclideanDistanceinHarmonySpace.csv
    Untracked:  output/NearestReferenceCell.SCTregressRNAassay.Cao.hESC.FrequencyofEachAnnotation.csv
    Untracked:  output/Pseudobulk_Limma_res0.1_OnevAllTopTables.csv
    Untracked:  output/Pseudobulk_Limma_res0.1_OnevAll_top10Upregby_adjP.csv
    Untracked:  output/Pseudobulk_Limma_res0.1_OnevAll_top10Upregby_logFC.csv
    Untracked:  output/Pseudobulk_Limma_res0.5_OnevAllTopTables.csv
    Untracked:  output/Pseudobulk_Limma_res0.8_OnevAllTopTables.csv
    Untracked:  output/Pseudobulk_Limma_res1_OnevAllTopTables.csv
    Untracked:  output/Pseudobulk_VarPart.ByCluster.Res0.1.rds
    Untracked:  output/ResidualVariances_fromDownSampAnalysis.csv
    Untracked:  output/SingleCell_VariancePartition_RNA_Res0.1_minPCT0.2.rds
    Untracked:  output/SingleCell_VariancePartition_Res0.1_minPCT0.2.rds
    Untracked:  output/SingleCell_VariancePartition_SCT_Res0.1_minPCT0.2.rds
    Untracked:  output/TopicModelling_k10_top10drivergenes.byBeta.csv
    Untracked:  output/TopicModelling_k6_top10drivergenes.byBeta.csv
    Untracked:  output/TopicModelling_k6_top15drivergenes.byZ.csv
    Untracked:  output/TranferredAnnotations_ReferenceInt_JustEarlyEcto.csv
    Untracked:  output/TranferredAnnotations_ReferenceInt_JustEndoderm.csv
    Untracked:  output/TranferredAnnotations_ReferenceInt_JustMeso.csv
    Untracked:  output/TranferredAnnotations_ReferenceInt_JustNeuralCrest.csv
    Untracked:  output/TranferredAnnotations_ReferenceInt_JustNeuron.csv
    Untracked:  output/TranferredAnnotations_ReferenceInt_JustPluripotent.csv
    Untracked:  output/VarPart.ByCluster.Res0.1.rds
    Untracked:  output/azimuth/
    Untracked:  output/downsamp_10800cells_10subreps_medianexplainedbyresiduals_varpart_PsB.rds
    Untracked:  output/downsamp_16200cells_10subreps_medianexplainedbyresiduals_varpart_PsB.rds
    Untracked:  output/downsamp_21600cells_10subreps_medianexplainedbyresiduals_varpart_PsB.rds
    Untracked:  output/downsamp_2700cells_10subreps_medianexplainedbyresiduals_varpart_PsB.rds
    Untracked:  output/downsamp_2700cells_10subreps_medianexplainedbyresiduals_varpart_scres.rds
    Untracked:  output/downsamp_5400cells_10subreps_medianexplainedbyresiduals_varpart_PsB.rds
    Untracked:  output/downsamp_7200cells_10subreps_medianexplainedbyresiduals_varpart_PsB.rds
    Untracked:  output/fasttopics/
    Untracked:  output/figs/
    Untracked:  output/merge.Cao.SCTwRegressOrigIdent.rds
    Untracked:  output/merge.all.SCTwRegressOrigIdent.Harmony.rds
    Untracked:  output/merged.SCT.counts.matrix.rds
    Untracked:  output/merged.raw.counts.matrix.rds
    Untracked:  output/mergedObjects/
    Untracked:  output/pdfs/
    Untracked:  output/sampleQCrds/
    Untracked:  output/splitgpm_gsea_results/
    Untracked:  slurm-12005914.out
    Untracked:  slurm-12005923.out

Unstaged changes:
    Deleted:    analysis/IntegrateAnalysis.afterFilter.HarmonyBatch.Rmd
    Deleted:    analysis/IntegrateAnalysis.afterFilter.HarmonyBatchSampleIDindividual.Rmd
    Modified:   analysis/IntegrateAnalysis.afterFilter.HarmonyBatchindividual.Rmd
    Deleted:    analysis/IntegrateAnalysis.afterFilter.NOHARMONYjustmerge.Rmd
    Deleted:    analysis/IntegrateAnalysis.afterFilter.SCTregressBatchIndividual.Rmd
    Deleted:    analysis/IntegrateAnalysis.afterFilter.SCTregressBatchIndividualHarmonyBatchindividual.Rmd
    Modified:   analysis/Pseudobulk_HierarchicalClustering_Harmony.Batchindividual_ClusterRes0.1_minPCT0.2.Rmd
    Modified:   analysis/Pseudobulk_HierarchicalClustering_Harmony.Batchindividual_ClusterRes0.5_minPCT0.2.Rmd
    Modified:   analysis/Pseudobulk_HierarchicalClustering_Harmony.Batchindividual_ClusterRes0.8_minPCT0.2.Rmd
    Modified:   analysis/Pseudobulk_HierarchicalClustering_Harmony.Batchindividual_ClusterRes1_minPCT0.2.Rmd
    Modified:   analysis/Pseudobulk_Limma_Harmony.BatchIndividual_ClusterRes0.1_minPCT0.2.Rmd
    Modified:   analysis/Pseudobulk_Limma_Harmony.BatchIndividual_ClusterRes0.5_minPCT0.2.Rmd
    Modified:   analysis/Pseudobulk_VariancePartition_Harmony.Batchindividual_ClusterRes0.1_minPCT0.2.Rmd
    Modified:   analysis/Pseudobulk_VariancePartition_Harmony.Batchindividual_ClusterRes0.5_minPCT0.2.Rmd
    Modified:   analysis/Pseudobulk_VariancePartition_Harmony.Batchindividual_ClusterRes0.8_minPCT0.2.Rmd
    Modified:   analysis/Pseudobulk_VariancePartition_Harmony.Batchindividual_ClusterRes1_minPCT0.2.Rmd
    Deleted:    analysis/RunscHCL_HarmonyBatchInd.Rmd

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/Pseudobulk_VariancePartition_Harmony.Batchindividual_ClusterRes1_minPCT0.2.Rmd) and HTML (docs/Pseudobulk_VariancePartition_Harmony.Batchindividual_ClusterRes1_minPCT0.2.html) files. If you've configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
html 5536dae KLRhodes 2020-08-31 Build site.
Rmd e16856a KLRhodes 2020-08-31 wflow_publish("analysis/Pseudobulk_VariancePartition_Harmony.Batchindividual_ClusterRes*")

library(dplyr)

Attaching package: 'dplyr'
The following objects are masked from 'package:stats':

    filter, lag
The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union
library(limma)
library(edgeR)
library(variancePartition)
Loading required package: ggplot2
Loading required package: foreach
Loading required package: scales
Loading required package: Biobase
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB
The following object is masked from 'package:limma':

    plotMA
The following objects are masked from 'package:dplyr':

    combine, intersect, setdiff, union
The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, basename, cbind, colnames, dirname, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
    pmin.int, rank, rbind, rownames, sapply, setdiff, sort, table,
    tapply, union, unique, unsplit, which, which.max, which.min
Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

Attaching package: 'variancePartition'
The following object is masked from 'package:limma':

    classifyTestsF

choose parameters (integration type, clustering res, min pct threshold)

f<- 'Harmony.Batchindividual'
pct<-0.2
res<- 'SCT_snn_res.1'
path<- here::here("output/DGELists/")
submerged<- readRDS(paste0(path,"Pseudobulk_dge_",f, "_", res,"_minPCT",pct,".rds"))
cpm<- cpm(submerged)
lcpm<- cpm(submerged, log=TRUE)
L<- mean(submerged$samples$lib.size) *1e-6
M<- median(submerged$samples$lib.size) *1e-6
genes.ribo <- grep('^RP',rownames(submerged),value=T)
genes.no.ribo <- rownames(submerged)[which(!(rownames(submerged) %in% genes.ribo))]
submerged$counts <- submerged$counts[which(rownames(submerged$counts) %in% genes.no.ribo),] #remove ribosomal genes
submerged<- calcNormFactors(submerged, method="TMM")

summary(submerged$samples$norm.factors)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
 0.6381  0.9201  0.9755  1.0134  1.0313  1.8959 
design<- model.matrix(~submerged$samples$cluster+submerged$samples$batch+submerged$samples$ind)
v<- voom(submerged, design, plot=T)

Version Author Date
5536dae KLRhodes 2020-08-31
v
An object of class "EList"
$targets
                     group   lib.size norm.factors cluster  batch     ind
0.Batch1.SNG-NA18511     1   300840.8    0.9565199       0 Batch1 NA18511
0.Batch1.SNG-NA18858     1 31999756.7    0.9755578       0 Batch1 NA18858
0.Batch1.SNG-NA19160     1   229983.1    0.9159535       0 Batch1 NA19160
0.Batch2.SNG-NA18511     1   362261.9    0.9506415       0 Batch2 NA18511
0.Batch2.SNG-NA18858     1 32347014.3    0.9781456       0 Batch2 NA18858
                                    Group
0.Batch1.SNG-NA18511 0.Batch1.SNG-NA18511
0.Batch1.SNG-NA18858 0.Batch1.SNG-NA18858
0.Batch1.SNG-NA19160 0.Batch1.SNG-NA19160
0.Batch2.SNG-NA18511 0.Batch2.SNG-NA18511
0.Batch2.SNG-NA18858 0.Batch2.SNG-NA18858
231 more rows ...

$E
        0.Batch1.SNG-NA18511 0.Batch1.SNG-NA18858 0.Batch1.SNG-NA19160
SAMD11             2.3178856             1.383715             1.120394
NOC2L              7.0367038             6.686293             6.901754
KLHL17             0.7329231             3.541108             4.579826
PLEKHN1            2.3178856             1.499857             1.120394
HES4               4.8203859             4.334284             3.442322
        0.Batch2.SNG-NA18511 0.Batch2.SNG-NA18858 0.Batch2.SNG-NA19160
SAMD11             2.7868192            0.3938302             2.058198
NOC2L              6.6547156            6.2213504             6.145661
KLHL17             0.4648911            3.0478344             3.932667
PLEKHN1            2.0498536            1.8973286             2.058198
HES4               4.3717817            4.6219699             3.643161
        0.Batch3.SNG-NA18511 0.Batch3.SNG-NA18858 0.Batch3.SNG-NA19160
SAMD11              2.630986            0.4719285             3.614510
NOC2L               6.591815            6.2322639             6.373121
KLHL17              2.843531            2.6087267             3.142442
PLEKHN1             1.863159            1.2088941             1.647677
HES4                5.759615            4.8253125             3.969605
        1.Batch1.SNG-NA18511 1.Batch1.SNG-NA18858 1.Batch1.SNG-NA19160
SAMD11              4.537954             1.290401             3.144612
NOC2L               6.463954             6.737276             6.604044
KLHL17              4.537954             3.517974             3.144612
PLEKHN1             2.216026             2.108098             3.144612
HES4                2.216026             3.960994             1.559649
        1.Batch2.SNG-NA18511 1.Batch2.SNG-NA18858 1.Batch2.SNG-NA19160
SAMD11              2.305657             1.079559             0.786359
NOC2L               6.393120             6.240044             6.143911
KLHL17              2.305657             3.436193             3.593714
PLEKHN1             3.890620             1.982262             2.371322
HES4                4.421134             3.946596             4.693250
        1.Batch3.SNG-NA18511 1.Batch3.SNG-NA18858 1.Batch3.SNG-NA19160
SAMD11              1.673755            0.9905163             3.330484
NOC2L               6.329709            6.0635169             6.159372
KLHL17              2.635281            2.8558327             4.036753
PLEKHN1             2.470222            1.6288420             1.889912
HES4                5.600753            4.1770720             3.606119
        10.Batch1.SNG-NA18511 10.Batch1.SNG-NA18858 10.Batch1.SNG-NA19160
SAMD11              5.0164195              3.591569              4.954304
NOC2L               6.1389630              5.793203              5.871842
KLHL17              2.7348492              4.076996              3.224952
PLEKHN1             0.6842231              6.127622              3.835005
HES4                7.3546264              6.824230              7.535445
        10.Batch2.SNG-NA18511 10.Batch2.SNG-NA18858 10.Batch2.SNG-NA19160
SAMD11               4.710701              4.781024              4.040869
NOC2L                5.970649              5.517990              5.698895
KLHL17               2.232653              1.611099              2.297645
PLEKHN1              1.190833              3.933027              1.861546
HES4                 7.364290              6.365987              7.259912
        10.Batch3.SNG-NA18511 10.Batch3.SNG-NA18858 10.Batch3.SNG-NA19160
SAMD11              5.1651781              3.580865             4.7637813
NOC2L               6.0390842              5.902793             5.9719715
KLHL17              2.1589729              3.095438             2.1026471
PLEKHN1             0.7604236              2.358473             0.3714639
HES4                5.8517387              6.606400             6.6125413
        11.Batch1.SNG-NA18511 11.Batch1.SNG-NA18858 11.Batch1.SNG-NA19160
SAMD11               4.909174             1.4523714              1.511438
NOC2L                7.146213             6.5305803              6.155294
KLHL17               2.101819             1.6836970              1.511438
PLEKHN1              2.101819             0.3882411              1.511438
HES4                 2.101819             5.5398343              7.488718
        11.Batch2.SNG-NA18511 11.Batch2.SNG-NA18858 11.Batch2.SNG-NA19160
SAMD11               3.496466            -0.3444189             3.4044338
NOC2L                6.054461             5.9986658             6.2568766
KLHL17               1.911503             2.2185173             0.2345088
PLEKHN1              2.648469            -0.1034108             0.2345088
HES4                 6.257278             5.8053282             5.7890977
        11.Batch3.SNG-NA18511 11.Batch3.SNG-NA18858 11.Batch3.SNG-NA19160
SAMD11               3.373351             -2.233592             4.6775483
NOC2L                6.474152              6.213491             6.5369499
KLHL17               1.932778              1.853871             2.3556202
PLEKHN1              0.710386              1.225840            -0.4517348
HES4                 5.811924              5.132730             3.6357281
        12.Batch1.SNG-NA18511 12.Batch1.SNG-NA18858 12.Batch1.SNG-NA19160
SAMD11              4.1088600              3.838246             3.1813236
NOC2L               6.5630359              6.560712             6.6381557
KLHL17              4.2198913              4.323673             4.6677703
PLEKHN1            -0.5349962              1.516318            -0.3069629
HES4                6.6449129              6.039880             6.7141713
        12.Batch2.SNG-NA18511 12.Batch2.SNG-NA18858 12.Batch2.SNG-NA19160
SAMD11            -0.05241341              6.159515             2.6907795
NOC2L              5.37385134              5.422549             6.0621763
KLHL17             3.40701821              3.837586             4.4243861
PLEKHN1           -0.05241341              3.837586             0.7239464
HES4               6.71577091              6.644941             6.1982054
        12.Batch3.SNG-NA18511 12.Batch3.SNG-NA18858 12.Batch3.SNG-NA19160
SAMD11               3.383423              2.490991              3.879479
NOC2L                5.911802              5.950423              6.095114
KLHL17               2.490338              4.075954              3.441792
PLEKHN1              1.267946              2.490991             -2.861988
HES4                 5.237572              4.075954              5.428031
        13.Batch1.SNG-NA18511 13.Batch1.SNG-NA18858 13.Batch1.SNG-NA19160
SAMD11              3.1657218              1.993323              3.681293
NOC2L               6.2454490              6.516885              5.923051
KLHL17              2.5136451              1.993323              2.441466
PLEKHN1            -0.2937098              1.993323             -1.528161
HES4                9.5595997              8.501118              9.092365
        13.Batch2.SNG-NA18511 13.Batch2.SNG-NA18858 13.Batch2.SNG-NA19160
SAMD11               3.515308              3.864656              3.252141
NOC2L                6.147576              3.864656              5.606370
KLHL17               1.193379              3.864656              1.224660
PLEKHN1              1.193379              3.864656             -2.475779
HES4                 8.611232              8.388218              8.696023
        13.Batch3.SNG-NA18511 13.Batch3.SNG-NA18858 13.Batch3.SNG-NA19160
SAMD11              2.7392887              3.573482              4.252620
NOC2L               5.4617547              5.895410              5.739139
KLHL17              3.2247156              3.573482              1.835883
PLEKHN1             0.4173606              3.573482             -2.307075
HES4                7.7836828              8.328370              7.896273
        14.Batch1.SNG-NA18511 14.Batch1.SNG-NA18858 14.Batch1.SNG-NA19160
SAMD11               4.518797              5.126574              3.190798
NOC2L                6.141727              6.505086              6.281185
KLHL17               1.459903              2.804646              2.630498
PLEKHN1              1.459903              2.804646             -0.930217
HES4                 7.326151              5.974571              6.422047
        14.Batch2.SNG-NA18511 14.Batch2.SNG-NA18858 14.Batch2.SNG-NA19160
SAMD11               0.899991              3.824396              3.287315
NOC2L                6.029274              6.631751              6.198381
KLHL17               2.484954              3.824396              2.605055
PLEKHN1              0.899991              3.824396             -1.236247
HES4                 5.543847              5.409359              6.158930
        14.Batch3.SNG-NA18511 14.Batch3.SNG-NA18858 14.Batch3.SNG-NA19160
SAMD11              2.7817328              4.184331              3.742331
NOC2L               5.9516578              6.991686              5.983102
KLHL17              1.1967703              4.184331              2.599887
PLEKHN1             0.4598047              4.184331             -3.128034
HES4                3.7328232              4.184331              5.589643
        15.Batch1.SNG-NA18511 15.Batch1.SNG-NA18858 15.Batch1.SNG-NA19160
SAMD11               5.832784             4.6058588              5.853148
NOC2L                6.576686             6.7650574              6.299091
KLHL17               3.299047             3.0208963              3.993746
PLEKHN1             -2.127217             0.6989682             -1.135537
HES4                 8.182259             5.4538557              8.090875
        15.Batch2.SNG-NA18511 15.Batch2.SNG-NA18858 15.Batch2.SNG-NA19160
SAMD11               5.125201              1.444236             4.6825312
NOC2L                6.134459              6.088093             6.3944058
KLHL17               2.546417              3.029199             3.5249899
PLEKHN1             -1.154023              1.444236            -0.1754498
HES4                 7.871116              6.088093             7.4756019
        15.Batch3.SNG-NA18511 15.Batch3.SNG-NA18858 15.Batch3.SNG-NA19160
SAMD11               4.787684              3.412539              6.272010
NOC2L                5.954421              5.528017              5.892857
KLHL17               2.304167              3.412539              2.850546
PLEKHN1             -2.450720              1.827577             -1.541771
HES4                 7.309168              5.287009              7.024283
        16.Batch1.SNG-NA18511 16.Batch1.SNG-NA18858 16.Batch1.SNG-NA19160
SAMD11               3.537328              4.741345              2.819310
NOC2L                6.810347              5.963737              6.906773
KLHL17               3.537328              3.156382              4.404273
PLEKHN1              1.952366              3.156382              2.819310
HES4                 3.537328              3.156382              4.404273
        16.Batch2.SNG-NA18511 16.Batch2.SNG-NA18858 16.Batch2.SNG-NA19160
SAMD11               3.230132              1.631713             4.4387383
NOC2L                6.261610              5.538603             6.0039375
KLHL17               1.950024              3.216675             3.0719559
PLEKHN1              2.602100              1.631713             0.4089909
HES4                 3.534986              5.091144             3.3475904
        16.Batch3.SNG-NA18511 16.Batch3.SNG-NA18858 16.Batch3.SNG-NA19160
SAMD11               1.564902              1.813825              3.650348
NOC2L                6.238135              4.983750              6.149672
KLHL17               2.878562              1.813825              2.839618
PLEKHN1              1.793171              3.398787              2.194283
HES4                 4.743958              3.398787              3.175667
        17.Batch1.SNG-NA18511 17.Batch1.SNG-NA18858 17.Batch1.SNG-NA19160
SAMD11               2.236570              3.102061              2.060245
NOC2L                6.607593              6.375080              6.754506
KLHL17               2.623593              3.839027              1.212248
PLEKHN1             -1.463869              1.517099             -1.109680
HES4                 8.389440              6.802501              7.829899
        17.Batch2.SNG-NA18511 17.Batch2.SNG-NA18858 17.Batch2.SNG-NA19160
SAMD11              2.0020421              3.842817              1.682705
NOC2L               6.1473652              6.050412              6.260973
KLHL17              0.9379118              2.257855              2.419671
PLEKHN1            -2.5215198              1.035462             -1.487220
HES4                7.9633031              5.600247              7.629124
        17.Batch3.SNG-NA18511 17.Batch3.SNG-NA18858 17.Batch3.SNG-NA19160
SAMD11               1.178533              1.943548             2.7537095
NOC2L                5.885125              6.467110             6.3923099
KLHL17               1.178533              1.943548             2.1016328
PLEKHN1             -1.991392              1.943548            -0.7057222
HES4                 7.210732              5.643988             7.3331968
        18.Batch1.SNG-NA18511 18.Batch1.SNG-NA18858 18.Batch1.SNG-NA19160
SAMD11               5.211612              3.652666               4.17572
NOC2L                6.434005              5.974594               4.17572
KLHL17               4.363615              3.652666               4.17572
PLEKHN1              2.041687              3.652666               4.17572
HES4                 4.363615              3.652666               4.17572
        18.Batch2.SNG-NA18511 18.Batch2.SNG-NA18858 18.Batch2.SNG-NA19160
SAMD11               3.066308              3.857087              5.549440
NOC2L                6.339326              6.179015              6.611368
KLHL17               3.803274              3.857087              3.964478
PLEKHN1              3.066308              3.857087              2.038479
HES4                 5.025666              6.664441              5.208404
        18.Batch3.SNG-NA18511 18.Batch3.SNG-NA18858 18.Batch3.SNG-NA19160
SAMD11               3.268177              3.514799              5.004664
NOC2L                6.509715              5.099762              6.436892
KLHL17               3.394626              5.099762              3.458696
PLEKHN1              1.444208              3.514799              1.984765
HES4                 5.832807              6.974231              5.212871
        19.Batch1.SNG-NA18511 19.Batch1.SNG-NA18858 19.Batch1.SNG-NA19160
SAMD11               3.900034              1.725509             2.9813378
NOC2L                6.015511              5.973437             6.6817775
KLHL17               2.967148              4.532864             0.6594097
PLEKHN1              1.829645              4.047437             2.2443722
HES4                 6.353207              7.010912             4.3598494
        19.Batch2.SNG-NA18511 19.Batch2.SNG-NA18858 19.Batch2.SNG-NA19160
SAMD11               4.288259              3.148565             3.4413604
NOC2L                6.101491              4.733527             6.0180077
KLHL17               2.618408              3.148565             2.2838191
PLEKHN1              1.480904              3.148565             0.9053075
HES4                 6.170203              7.236027             5.2976249
        19.Batch3.SNG-NA18511 19.Batch3.SNG-NA18858 19.Batch3.SNG-NA19160
SAMD11               3.666625              3.015927             3.1432359
NOC2L                5.957857              5.337855             6.0236543
KLHL17               1.740626              3.015927             1.2687668
PLEKHN1              1.003660              3.015927            -0.3161957
HES4                 4.776250              8.570516             5.7923288
        2.Batch1.SNG-NA18511 2.Batch1.SNG-NA18858 2.Batch1.SNG-NA19160
SAMD11              2.743679            3.6168845             2.361112
NOC2L               6.344131            6.0820072             6.248878
KLHL17              2.206504            2.2632475             2.560421
PLEKHN1            -2.041423           -0.9066775            -2.393775
HES4                9.365162            8.0504246             8.885255
        2.Batch2.SNG-NA18511 2.Batch2.SNG-NA18858 2.Batch2.SNG-NA19160
SAMD11              2.463453             2.911455            2.5691537
NOC2L               5.990949             5.846660            6.0661088
KLHL17              1.758651             2.656198            2.3913666
PLEKHN1            -3.645072            -2.297998           -0.7320158
HES4                9.210511             7.625329            8.5114982
        2.Batch3.SNG-NA18511 2.Batch3.SNG-NA18858 2.Batch3.SNG-NA19160
SAMD11             1.9444289            3.5461850             3.698448
NOC2L              5.8620859            5.7076484             6.004405
KLHL17             0.9605486            2.1056124             1.178192
PLEKHN1           -4.5313045           -0.7017425            -3.069736
HES4               8.6928479            7.3371765             7.645368
        20.Batch1.SNG-NA18511 20.Batch1.SNG-NA18858 20.Batch1.SNG-NA19160
SAMD11               5.675671              4.358388              3.173114
NOC2L                6.207781              6.197267              5.495042
KLHL17               1.726655              2.802869              3.173114
PLEKHN1             -1.443270              0.928400              3.173114
HES4                 8.241478              7.599253              6.873554
        20.Batch2.SNG-NA18511 20.Batch2.SNG-NA18858 20.Batch2.SNG-NA19160
SAMD11               4.997627              3.759448              3.673293
NOC2L                5.820749              5.836643              4.895685
KLHL17               3.619116              2.597177              2.088331
PLEKHN1              1.297187             -1.058175              2.088331
HES4                 8.731816              6.974146              6.946312
        20.Batch3.SNG-NA18511 20.Batch3.SNG-NA18858 20.Batch3.SNG-NA19160
SAMD11               2.098433             0.3350927              3.225388
NOC2L                5.268358             6.0630132              4.447781
KLHL17               3.683395             2.6570208              1.640426
PLEKHN1              2.098433             0.3350927              1.640426
HES4                 7.770858             7.0215932              6.925828
        21.Batch1.SNG-NA18511 21.Batch1.SNG-NA18858 21.Batch1.SNG-NA19160
SAMD11              2.3145075             4.6892737              1.566721
NOC2L               5.9840035             5.9593629              6.112914
KLHL17              0.9159581             0.6018109              1.807730
PLEKHN1            -0.9585110             0.6018109             -1.892710
HES4                9.2850597             7.4473009              8.600144
        21.Batch2.SNG-NA18511 21.Batch2.SNG-NA18858 21.Batch2.SNG-NA19160
SAMD11               4.197172              6.245438              4.111140
NOC2L                5.782134              6.245438              6.433068
KLHL17               4.197172              3.923510              4.111140
PLEKHN1              4.197172              3.923510              4.111140
HES4                 7.367097              3.923510              6.433068
        22.Batch1.SNG-NA18511 22.Batch1.SNG-NA18858 22.Batch1.SNG-NA19160
SAMD11               4.974793              4.132295             4.6428307
NOC2L                6.503722              7.191189             6.4271020
KLHL17               2.167438              5.354688             3.3473748
PLEKHN1              2.167438              4.132295            -0.1120569
HES4                 5.728153              4.869261             5.3142079
        22.Batch2.SNG-NA18511 22.Batch2.SNG-NA18858 22.Batch2.SNG-NA19160
SAMD11              5.5121348              5.436912             4.5497970
NOC2L               6.1318628              5.436912             5.9245418
KLHL17              2.9619378              3.851950             3.3110101
PLEKHN1             0.1545828              3.851950             0.2521164
HES4                5.8825033              3.851950             5.7651860
        22.Batch3.SNG-NA18511 22.Batch3.SNG-NA19160 23.Batch1.SNG-NA18511
SAMD11              4.7887442              4.466292              2.876854
NOC2L               6.3737067              6.326012              6.046779
KLHL17             -0.7658446              2.591823              3.166361
PLEKHN1             2.4040804             -2.693579              5.198782
HES4                3.9890429              4.619304              8.186709
        23.Batch1.SNG-NA18858 23.Batch1.SNG-NA19160 23.Batch2.SNG-NA18511
SAMD11               2.745404              4.353028              5.981564
NOC2L                5.372187              5.731539              5.244598
KLHL17               2.745404              3.905569              2.922670
PLEKHN1              5.032981              5.849859              4.507633
HES4                 7.045959              6.921871              6.195689
        23.Batch2.SNG-NA18858 23.Batch2.SNG-NA19160 23.Batch3.SNG-NA18511
SAMD11               3.950859              4.370001              4.947105
NOC2L                5.848979              5.927218              5.454065
KLHL17               3.298782              2.410643              2.284140
PLEKHN1              4.739355              4.285112              4.158609
HES4                 7.232894              6.440390              4.947105
        23.Batch3.SNG-NA18858 23.Batch3.SNG-NA19160 24.Batch1.SNG-NA18511
SAMD11               3.010554              5.415915             2.4266342
NOC2L                5.984559              5.504724             6.1270739
KLHL17               3.010554              2.245990             2.9120610
PLEKHN1              5.412653              3.962197             0.1047061
HES4                 7.023378              6.008490             7.3238746
        24.Batch1.SNG-NA18858 24.Batch1.SNG-NA19160 24.Batch2.SNG-NA18511
SAMD11               3.253443             1.7642929             0.2611045
NOC2L                5.575371             5.8174043             6.1437476
KLHL17               4.838405             1.7642929             3.0684594
PLEKHN1              3.253443            -0.5576352             0.2611045
HES4                 6.060797             7.0348219             6.0939945
        24.Batch2.SNG-NA19160 24.Batch3.SNG-NA18511 24.Batch3.SNG-NA19160
SAMD11             -0.8068596           -0.05698745            0.78768386
NOC2L               5.7930533            5.55772240            5.70416051
KLHL17              1.5150685           -0.05698745            1.92518739
PLEKHN1            -0.8068596           -0.05698745            0.05071827
HES4                6.8584764            6.99829499            6.44874934
        25.Batch1.SNG-NA18858 25.Batch1.SNG-NA19160 25.Batch2.SNG-NA18511
SAMD11               4.838228              5.926917              3.855911
NOC2L                6.801166              6.663882              6.177839
KLHL17               3.587684              5.926917              3.855911
PLEKHN1              1.051632              4.341954              3.855911
HES4                 5.672218              4.341954              5.440873
        25.Batch2.SNG-NA18858 25.Batch2.SNG-NA19160 25.Batch3.SNG-NA18511
SAMD11               4.314452              3.873682              4.102044
NOC2L                6.196396              6.681037              6.370533
KLHL17               3.577486              5.458644              3.449967
PLEKHN1              1.992524              5.458644              2.964540
HES4                 5.334916              3.873682              6.315037
        25.Batch3.SNG-NA18858 25.Batch3.SNG-NA19160 26.Batch1.SNG-NA18858
SAMD11               3.621701              5.042221             1.9140691
NOC2L                5.910271              5.959759             6.2117497
KLHL17               1.951850              4.194224             2.6510347
PLEKHN1             -1.507582              1.872296             0.3291066
HES4                 5.286834              4.194224             8.2339921
        26.Batch2.SNG-NA18858 26.Batch3.SNG-NA18858 27.Batch1.SNG-NA18511
SAMD11              0.2360877             2.4858969              4.128298
NOC2L               6.1668250             5.9453285              6.630798
KLHL17              0.2360877             1.7489313              2.543335
PLEKHN1             0.2360877             0.1639688              2.543335
HES4                8.1844549             8.1355124              4.865264
        27.Batch1.SNG-NA19160 27.Batch2.SNG-NA18511 27.Batch2.SNG-NA19160
SAMD11              3.1520027              3.071536              5.423657
NOC2L               6.1625719              6.241461              6.374747
KLHL17              1.8718948              3.071536              3.101729
PLEKHN1            -0.9354601              3.071536              1.516766
HES4                5.8847188              7.929517              1.516766
        27.Batch3.SNG-NA18511 27.Batch3.SNG-NA19160 3.Batch1.SNG-NA18511
SAMD11               2.012473             4.0515211             1.881528
NOC2L                5.182398             6.0839426             6.270647
KLHL17               2.012473             2.9140176             2.288154
PLEKHN1              2.012473             0.5920895            -1.222808
HES4                 4.819828             5.5462858             9.199046
        3.Batch1.SNG-NA18858 3.Batch1.SNG-NA19160 3.Batch2.SNG-NA18511
SAMD11              3.020678             3.319460             1.457331
NOC2L               6.046213             6.051328             6.012634
KLHL17              2.535251             2.093071             1.585655
PLEKHN1             1.798285            -1.423504            -3.968934
HES4                7.451728             8.794453             8.891183
        3.Batch2.SNG-NA18858 3.Batch2.SNG-NA19160 3.Batch3.SNG-NA18511
SAMD11              1.653223             2.192074             2.152178
NOC2L               5.494525             5.997234             5.991641
KLHL17              1.942729             2.418844             1.319906
PLEKHN1            -1.516702            -1.777553            -1.230291
HES4                7.344385             8.502058             8.175154
        3.Batch3.SNG-NA18858 3.Batch3.SNG-NA19160 4.Batch1.SNG-NA18511
SAMD11             2.3774221             4.026152            2.3532720
NOC2L              5.8368537             6.191111            6.2443737
KLHL17             3.4769578             2.555523            2.6692995
PLEKHN1           -0.4299328            -2.573760            0.1979938
HES4               6.9009841             7.577256            5.5297250
        4.Batch1.SNG-NA18858 4.Batch1.SNG-NA19160 4.Batch2.SNG-NA18511
SAMD11             3.4123510             3.138851            2.0219482
NOC2L              6.4378861             6.261547            5.6225075
KLHL17             2.9269241             2.605235            2.2532737
PLEKHN1            0.6049961            -1.095205           -0.1796857
HES4               6.2774214             5.973818            4.7557741
        4.Batch2.SNG-NA18858 4.Batch2.SNG-NA19160 4.Batch3.SNG-NA18511
SAMD11              4.152933            2.2832796             2.127780
NOC2L               5.737895            5.9588447             5.918261
KLHL17              2.567970            1.9784251             1.456403
PLEKHN1             2.567970           -0.2345687            -1.713522
HES4                4.152933            5.0373187             3.756798
        4.Batch3.SNG-NA18858 4.Batch3.SNG-NA19160 5.Batch1.SNG-NA18511
SAMD11              2.485509            2.1873709             3.735063
NOC2L               5.944940            5.9733943             6.168022
KLHL17              4.070471            1.9748262             3.735063
PLEKHN1             2.485509           -0.8325287             2.998097
HES4                5.292864            4.9833882             6.622588
        5.Batch1.SNG-NA18858 5.Batch1.SNG-NA19160 5.Batch2.SNG-NA18511
SAMD11              1.803949             2.283655             3.314847
NOC2L               6.393778             5.743087             6.419183
KLHL17              3.692528             3.020621             2.577881
PLEKHN1             1.452477             0.698693             2.577881
HES4                5.557392             4.399133             5.240846
        5.Batch2.SNG-NA18858 5.Batch2.SNG-NA19160 5.Batch3.SNG-NA18511
SAMD11              1.154396             3.855332             2.952780
NOC2L               5.959932             6.136902             6.457124
KLHL17              2.909912             3.084814             2.952780
PLEKHN1             1.687520             1.319279             2.516681
HES4                5.708624             5.063440             5.742101
        5.Batch3.SNG-NA18858 5.Batch3.SNG-NA19160 6.Batch1.SNG-NA18511
SAMD11             0.9469797            3.0035250          4.077737237
NOC2L              5.8427298            6.1425890          6.180098955
KLHL17             2.8414866            2.5180981          2.797629318
PLEKHN1            1.2161664            0.1961701         -0.009725604
HES4               5.3741045            4.7197320          8.613546253
        6.Batch1.SNG-NA18858 6.Batch1.SNG-NA19160 6.Batch2.SNG-NA18511
SAMD11              4.634032            1.8940007             2.929009
NOC2L               6.117355            6.0881152             5.972578
KLHL17              3.267250            3.2033288             2.815798
PLEKHN1             1.341251           -0.3076331            -1.213949
HES4                5.495056            6.6946193             7.162538
        6.Batch2.SNG-NA18858 6.Batch2.SNG-NA19160 6.Batch3.SNG-NA18511
SAMD11              3.220251            2.3798168             2.563337
NOC2L               5.642873            5.7918455             5.865274
KLHL17              2.775949            2.7208537             2.098934
PLEKHN1             1.489068            0.5884034            -2.619884
HES4                5.603435            5.0326219             5.670134
        6.Batch3.SNG-NA18858 6.Batch3.SNG-NA19160 7.Batch1.SNG-NA18511
SAMD11              2.811920             2.621884             3.898300
NOC2L               5.981845             6.103270             6.836899
KLHL17              1.433409             2.177582             4.635266
PLEKHN1             1.918836            -1.431227             2.313337
HES4                5.088761             5.917501             7.670890
        7.Batch1.SNG-NA18858 7.Batch1.SNG-NA19160 7.Batch2.SNG-NA18511
SAMD11              1.551764             3.386048             3.477590
NOC2L               6.690013             4.971010             6.109858
KLHL17              3.463891             3.386048             3.963017
PLEKHN1             2.037191             4.971010             1.155662
HES4                6.901618             5.707976             7.869907
        7.Batch2.SNG-NA18858 7.Batch2.SNG-NA19160 7.Batch3.SNG-NA18511
SAMD11             0.5307336             5.214150             2.351542
NOC2L              6.2031589             3.629187             6.391956
KLHL17             3.1847377             5.214150             2.351542
PLEKHN1            1.4876648             3.629187             1.699465
HES4               5.8334397             7.716650             6.875104
        7.Batch3.SNG-NA18858 7.Batch3.SNG-NA19160 8.Batch1.SNG-NA18511
SAMD11              1.185680             3.788896            4.7670255
NOC2L               6.176635             6.620296            6.5512968
KLHL17              2.873736             3.401873            2.9756121
PLEKHN1             1.366253             3.401873           -0.7248276
HES4                6.152234             6.469617            6.8972242
        8.Batch1.SNG-NA18858 8.Batch1.SNG-NA19160 8.Batch2.SNG-NA18511
SAMD11             3.8022873             2.961660            5.9768392
NOC2L              6.5495213             6.223111            6.3394092
KLHL17             3.8022873             1.946393            0.3621293
PLEKHN1            0.9949324            -1.286268            0.3621293
HES4               6.9256697             6.752651            6.1950193
        8.Batch2.SNG-NA18858 8.Batch2.SNG-NA19160 8.Batch3.SNG-NA18511
SAMD11              3.120364             3.219931            2.5485723
NOC2L               4.705326             6.033425            6.1506083
KLHL17              3.120364             2.011823           -0.2587826
PLEKHN1             3.120364            -1.261196           -0.2587826
HES4                5.442292             6.733158            5.1674822
        8.Batch3.SNG-NA18858 8.Batch3.SNG-NA19160 9.Batch1.SNG-NA18511
SAMD11              2.046844             4.716863             2.801452
NOC2L               6.439161             5.908644             5.908142
KLHL17              3.631806             2.259734             2.990930
PLEKHN1             2.046844            -1.251228            -3.031438
HES4                5.953734             5.424024             9.135039
        9.Batch1.SNG-NA18858 9.Batch1.SNG-NA19160 9.Batch2.SNG-NA18511
SAMD11             2.6719645            3.0386564             3.283467
NOC2L              5.7472526            6.0021305             5.897133
KLHL17             2.6719645            2.6760863             1.925276
PLEKHN1           -0.1353904           -0.8682342            -3.856084
HES4               7.8361532            8.6663929             8.945422
        9.Batch2.SNG-NA18858 9.Batch2.SNG-NA19160 9.Batch3.SNG-NA18511
SAMD11              2.359283             1.490751            2.1063312
NOC2L               5.400311             5.565098            5.6160580
KLHL17              2.746307             2.744507            0.6556698
PLEKHN1            -1.341156            -2.209689           -3.2512208
HES4                7.089296             8.326558            8.3930862
        9.Batch3.SNG-NA18858 9.Batch3.SNG-NA19160
SAMD11             3.4904453             3.864056
NOC2L              6.0406424             5.710347
KLHL17             2.2680529             1.768899
PLEKHN1            0.6830904            -1.690533
HES4               6.5159804             7.476886
11435 more rows ...

$weights
          [,1]      [,2]      [,3]      [,4]      [,5]      [,6]      [,7]
[1,] 0.3772991  5.600529 0.3317837 0.3763071  5.137188 0.3973432  2.454827
[2,] 3.2364904 28.126755 2.7778418 3.1456188 24.899891 3.0191205 11.063153
[3,] 0.4870826  9.304495 0.4832632 0.4934992  8.670440 0.5998112  2.671100
[4,] 0.2740754  7.819260 0.2122859 0.3163231  7.969574 0.2875326  1.921419
[5,] 1.8043892 13.097829 1.1321284 1.8481726 12.286428 1.4739915  5.707399
          [,8]      [,9]     [,10]     [,11]     [,12]     [,13]     [,14]
[1,]  5.019411 1.3436186 0.2167668  5.773023 0.3055037 0.3775068  5.159292
[2,] 25.981659 6.5852885 1.9448930 24.728821 2.3413949 2.7602866 21.347821
[3,]  7.921694 1.8262178 0.3116799 10.548566 0.5188158 0.5851032  9.590052
[4,]  6.956521 0.7195456 0.2049687  9.134379 0.2343900 0.3857013  9.085889
[5,] 11.267460 2.9720859 0.5413023 10.183081 0.6112472 1.1283340  9.341571
         [,15]    [,16]     [,17]     [,18]    [,19]     [,20]     [,21]
[1,] 0.3875267 2.092494  5.104703 0.9132719 4.284483 0.9330446 3.0987058
[2,] 2.6246728 8.198954 22.550497 4.5917784 6.721486 2.1793189 4.4757704
[3,] 0.6933423 2.535168  8.867395 1.5552995 2.120135 0.4789403 1.5257660
[4,] 0.3394917 1.839701  8.034850 0.6351828 1.777567 0.5317112 0.8327508
[5,] 0.8370598 3.568507  8.683514 1.8501945 9.952387 2.7814861 6.1495768
         [,22]     [,23]    [,24]     [,25]     [,26]     [,27]     [,28]
[1,]  5.076950 0.6564667 4.210212  4.558264 0.9918962  7.922217 0.2400361
[2,]  7.663001 1.6191077 5.948346  7.357611 2.3280021 11.571404 2.0542792
[3,]  2.493598 0.3577231 2.289002  2.113921 0.4576069  3.802287 0.2049687
[4,]  2.395832 0.4554917 1.734232  1.889862 0.5482678  2.890682 0.2049687
[5,] 11.863371 2.3948595 8.403603 10.067116 2.7493969 14.485539 1.3749977
         [,29]     [,30]     [,31]     [,32]     [,33]     [,34]    [,35]
[1,]  2.500855 0.3309009 0.4900358  2.827016 0.5480594 0.8925003 1.556889
[2,] 10.005101 2.3922061 3.1201606 11.253992 3.0888601 4.7619508 7.038857
[3,]  2.639409 0.2479305 0.3208154  3.026444 0.4011042 0.4904038 1.567686
[4,]  2.386965 0.2049687 0.2328423  2.952364 0.2223795 0.3212667 1.376191
[5,]  6.848014 1.5094874 2.5786574  8.058104 2.3472100 3.3273862 4.334767
         [,36]     [,37]     [,38]     [,39]     [,40]     [,41]     [,42]
[1,] 0.7494110 1.7110920 0.4192989  4.680084 1.0997666 0.2049687 3.3306319
[2,] 3.9550796 4.2122644 2.1342207 10.460831 3.1890196 0.4988902 7.4275145
[3,] 0.4776840 1.8643618 0.8372141  5.422177 1.2556290 0.2307026 3.8870306
[4,] 0.2426382 0.3005856 0.2145492  1.337467 0.2470503 0.2049687 0.8757003
[5,] 2.5933354 4.4675001 1.9627282 10.026600 3.5348409 0.4785654 7.4434739
         [,43]     [,44]     [,45]     [,46]     [,47]      [,48]     [,49]
[1,] 1.2021341 0.2229179 3.3371067 1.5389124 0.3388438  4.1910105 0.5509517
[2,] 3.5553006 1.1147067 7.8958827 3.4544524 1.4535128  8.3707361 1.9674114
[3,] 1.1971188 0.3647001 3.6189351 0.7089924 0.3069560  2.9748144 0.2933961
[4,] 0.2246283 0.2049687 0.7137082 0.2484967 0.2049687  0.9567157 0.2049687
[5,] 3.4658332 0.8401040 6.9938593 9.4880557 3.7469397 20.6524689 5.5256527
         [,50]      [,51]     [,52]     [,53]     [,54]     [,55]     [,56]
[1,] 0.2049687  3.1038487 0.7930485 0.2049687  4.777597 1.5389662 0.2526749
[2,] 0.4107607  6.1113409 2.5724517 0.4935056  9.746247 3.9736781 1.2718928
[3,] 0.2049687  2.3342535 0.3596911 0.2049687  3.158465 0.7272306 0.2350072
[4,] 0.2049687  0.6806602 0.2049687 0.2049687  1.177722 0.2795780 0.2049687
[5,] 1.9707782 15.4893431 6.4115350 1.9441771 22.449260 3.4363293 0.7719261
         [,57]     [,58]     [,59]    [,60]     [,61]     [,62]     [,63]
[1,]  4.654063 0.7108341 0.2049687 3.669532 2.0385918 0.2049687 3.9041724
[2,] 10.502148 2.5996286 0.5702227 8.219183 5.0570548 0.4882598 9.2343812
[3,]  3.323921 0.3725739 0.2049687 2.718294 0.9240444 0.2049687 2.6933681
[4,]  1.359128 0.2049687 0.2049687 1.071622 0.3632640 0.2049687 0.9621836
[5,]  8.327062 2.3995421 0.3988129 6.799143 4.0049270 0.2883410 6.7614178
          [,64]     [,65]     [,66]      [,67]     [,68]     [,69]     [,70]
[1,]  4.5258476 1.4539084 3.3790158  5.0755230 0.7876413 2.3683584 4.4183977
[2,]  7.4050801 2.7912552 5.1523131  8.0202248 2.0060816 3.3111274 7.4859231
[3,]  2.4715148 0.8618114 2.0268161  2.7264233 0.4984375 1.0614584 2.2926051
[4,]  0.3635681 0.2049687 0.2125471  0.5063453 0.2049687 0.2049687 0.3440195
[5,] 10.3189970 3.4276079 6.6108750 11.6924355 2.5837399 4.4710765 9.6487853
         [,71]     [,72]     [,73]     [,74]     [,75]     [,76]     [,77]
[1,] 0.5942988 3.3926068 0.8667067 0.2049687 0.2620581 1.5390488 0.3082869
[2,] 1.7515837 5.3584769 3.1574041 0.9047575 1.1416691 4.2064624 1.7857624
[3,] 0.3469424 1.8870075 0.6684177 0.2340218 0.2395815 1.1902822 0.4248303
[4,] 0.2049687 0.2096433 0.4080395 0.2058511 0.2049687 0.8088086 0.4221045
[5,] 2.0863982 6.3352826 1.6059172 0.2628973 0.3259087 2.3890333 0.4938686
         [,78]     [,79]     [,80]    [,81]     [,82]     [,83]     [,84]
[1,] 1.9067018  3.724263 0.2686453 3.314173 1.6626538 0.2632553 1.4602073
[2,] 4.4946904 10.309737 1.6890457 8.563265 6.2835730 2.3238845 5.3626095
[3,] 1.7659694  3.020241 0.3293441 2.930303 1.1336440 0.3221450 1.1464803
[4,] 0.8667189  2.432628 0.3063016 1.939435 0.2650245 0.2049687 0.2085813
[5,] 2.3109765  5.021732 0.3822645 3.697909 8.8793148 2.8152024 6.9412618
          [,85]     [,86]     [,87]     [,88]     [,89]     [,90]     [,91]
[1,]  2.2775818 0.6421498 1.5498942 1.7762436 0.2049687 0.8988695 0.6252801
[2,]  7.8416957 3.8703341 5.3991238 6.7803522 1.7761700 4.2411080 1.7830118
[3,]  1.8017846 0.8388934 1.2461006 1.0945683 0.2059632 0.6438997 0.4624272
[4,]  0.4479843 0.3206682 0.2501765 0.2757612 0.2049687 0.2049687 0.2524066
[5,] 11.5542373 5.1557493 7.3062896 8.8474534 2.1346499 5.0956813 1.3834347
         [,92]     [,93]     [,94]     [,95]     [,96]     [,97]     [,98]
[1,] 0.2306069 0.2338895 1.8295213 0.2049687 2.0666021  5.767662 0.2068064
[2,] 0.6366386 0.4924778 3.1492957 0.4710383 3.2053862 10.567800 0.5858374
[3,] 0.2912532 0.2049687 1.3761134 0.2386673 1.8440858  4.471726 0.2387509
[4,] 0.2193415 0.2049687 0.7608818 0.2050966 0.7526082  3.076262 0.2049687
[5,] 0.4042699 0.3347664 2.8558744 0.3301420 2.6666392  8.451277 0.3329458
        [,99]    [,100]    [,101]    [,102]    [,103]    [,104]    [,105]
[1,] 4.291904 1.6410352 0.3706359 0.8853835 1.7038751 0.2049687 2.2489736
[2,] 7.455838 3.8908717 1.8179518 2.6298008 3.8796834 0.6527050 4.5205858
[3,] 3.626228 0.8122295 0.3550119 0.5272625 0.8634609 0.2049687 1.5309305
[4,] 2.189237 0.5482193 0.3425189 0.2819644 0.6806989 0.2049687 0.8429033
[5,] 5.346258 4.7253612 1.9613660 2.8226045 4.9448464 0.7816038 5.1884848
       [,106]    [,107]   [,108]     [,109]    [,110]     [,111]     [,112]
[1,] 1.379508 0.2049687 3.588155  6.1724762 1.2965413  4.8033706  6.3915160
[2,] 3.640379 0.7303418 8.067396 16.7065253 4.4382438 12.0752190 16.8406954
[3,] 0.614912 0.2049687 2.570288  4.0419095 1.1693732  3.4257499  4.2356242
[4,] 0.456270 0.2049687 1.730103  0.6012024 0.2049687  0.3477618  0.7629207
[5,] 4.054813 0.7013909 8.104022 42.6117481 9.1314255 26.3580108 45.4220499
         [,113]     [,114]    [,115]    [,116]     [,117]    [,118]    [,119]
[1,]  2.2076209  3.7740446  4.867887 0.8997234  3.1122890 2.5254570  2.780119
[2,]  6.2756888  9.4040604 13.678167 3.7569142  8.3016725 4.8681348  6.005636
[3,]  2.1063883  2.7804168  3.011599 0.7326184  2.2157559 1.6094613  2.695387
[4,]  0.3240206  0.2894355  0.404941 0.2049687  0.2049687 0.5567717  1.829929
[5,] 13.2324927 20.9486786 30.938778 7.2383530 16.0077333 9.6779356 10.404330
        [,120]    [,121]    [,122]    [,123]    [,124]    [,125]    [,126]
[1,] 0.2711058 0.5617589  3.638277 0.3969581 0.3515535 0.7024774 0.4682875
[2,] 0.6861047 1.7791340  7.700401 1.0474270 1.1718570 2.4249613 1.4373426
[3,] 0.2049687 0.3117907  3.537879 0.2579028 0.2049687 0.5929269 0.2704177
[4,] 0.2049687 0.2049687  2.689711 0.2049687 0.2049687 0.3473382 0.2049687
[5,] 1.9339190 3.6995829 13.967737 2.5614473 2.6288843 3.7887186 2.6464891
        [,127]    [,128]    [,129]    [,130]    [,131]    [,132]    [,133]
[1,]  3.842342 0.8923296 3.2253875 0.2049687 0.2049687 0.2049687 2.5148198
[2,]  8.095223 2.7649849 6.3388929 0.4490319 0.4733671 0.4404230 3.9723322
[3,]  2.297459 0.6232949 2.0939706 0.2049687 0.2049687 0.2049687 0.8333977
[4,]  1.420949 0.4863273 0.8486357 0.2049687 0.2049687 0.2049687 0.3443356
[5,] 11.976394 3.6055671 8.5350208 0.9732761 0.8196761 0.7945679 2.8303959
        [,134]    [,135]    [,136]    [,137]    [,138]    [,139]    [,140]
[1,] 0.5210554 2.5664705 2.1046985 0.2443036 3.3852392 2.6635185 5.1358133
[2,] 1.4585938 3.7574704 3.1889203 0.5526413 5.0315218 4.4308468 7.9912396
[3,] 0.2891315 1.0130811 0.6108840 0.2049687 1.7854246 0.8464649 2.5381101
[4,] 0.2049687 0.3074607 0.3043325 0.2049687 0.5801608 0.3741307 0.9539863
[5,] 0.6174283 2.4929035 2.4597602 0.2884111 3.3302522 2.8891909 4.7140129
        [,141]   [,142]   [,143]    [,144]    [,145]   [,146]    [,147]
[1,] 2.2191685 2.640453 2.907021 0.8142972 1.0377713 2.436097 1.1089559
[2,] 3.4178599 4.588521 4.350467 1.8256099 2.3380371 3.400830 2.3594408
[3,] 0.9222822 2.228622 1.853852 0.3395631 0.7439359 1.327429 0.3919609
[4,] 2.2548804 4.631200 2.700424 1.0129028 2.6309040 2.470724 1.1131579
[5,] 5.2173085 6.126950 5.989149 2.8486800 3.0956153 4.908949 3.1288349
        [,148]    [,149]    [,150]    [,151]    [,152]    [,153]    [,154]
[1,] 1.1504440 2.2146978 0.3311292 0.2049687 0.4876916 0.2717827 0.4815805
[2,] 2.5802954 3.2599873 3.0913415 0.7083549 3.6833324 2.6708729 3.5538172
[3,] 0.7219242 0.9536395 0.5393872 0.2049687 0.9673302 0.4380730 0.9709628
[4,] 2.4973233 1.9770847 0.2159949 0.2049687 0.2641642 0.2061173 0.3018529
[5,] 3.0608311 4.1103534 4.4364363 1.0637223 4.7970692 3.9125775 4.8534721
        [,155]    [,156]   [,157]    [,158]    [,159]   [,160]    [,161]
[1,] 0.2972465 0.6684509 2.809888 0.2526937 0.2633592 2.301594 0.2755907
[2,] 2.9738238 4.6451781 5.679215 0.5608935 0.6442238 4.316105 0.5957665
[3,] 0.4329179 1.2301599 2.977161 0.2049687 0.2049687 2.459930 0.2115216
[4,] 0.2049687 0.3381314 2.216119 0.2049687 0.2049687 1.901141 0.2049687
[5,] 3.9044067 5.5570592 3.570559 0.2952391 0.4132185 2.889596 0.3321378
        [,162]   [,163]    [,164]     [,165]    [,166]    [,167]    [,168]
[1,] 1.3857027 2.693813 0.7140475  0.8744892 0.3424666 0.3346968 0.3426513
[2,] 2.9042464 5.581347 1.9185106  5.2790084 2.8742286 2.9946898 1.4417657
[3,] 0.7257922 2.701264 0.4564942  0.9022822 0.3564534 0.3138667 0.2072175
[4,] 0.3272276 2.064148 0.2049687  0.4103614 0.2117516 0.2049687 0.2049687
[5,] 2.0137386 3.234429 0.8004329 10.3338987 6.0435232 5.5575119 0.8715709
       [,169]    [,170]    [,171]    [,172]    [,173]     [,174]    [,175]
[1,] 2.256060 0.2381368 0.5314850 0.3658873 0.8310539  3.4631544 0.5314554
[2,] 4.647211 0.8433202 1.9023997 1.6504022 2.6181621 10.8473838 3.0375812
[3,] 1.558876 0.2049687 0.3473571 0.2049687 0.4636812  2.8695007 0.6951878
[4,] 0.626246 0.2049687 0.2049687 0.2049687 0.2391390  0.4808613 0.2049687
[5,] 3.180017 0.5740612 1.0944983 0.8674049 1.5710012 23.8897880 5.8715380
         [,176]     [,177]    [,178]     [,179]     [,180]    [,181]     [,182]
[1,]  5.1305916  3.6399106 1.2316898  3.1063285  3.5780248 0.6082771  2.4119359
[2,] 14.5925185 11.0779368 4.7891788  8.8218404 11.5676011 3.4015104  7.0410976
[3,]  4.5588452  3.0264951 1.6668147  2.8267395  2.7967981 0.7185165  2.0199509
[4,]  0.7650689  0.6184917 0.3404273  0.4054396  0.4946166 0.2049687  0.2256304
[5,] 29.7544982 25.7250659 9.4749442 17.9457335 23.5053934 6.0767191 12.4415866
        [,183]    [,184]    [,185]    [,186]    [,187]   [,188]    [,189]
[1,] 3.4046292 0.4883965  5.472973 2.5203462 0.2049687 3.732539 3.0375713
[2,] 9.9995142 2.7342315 14.517517 7.0560537 0.9875924 9.848803 9.2460168
[3,] 2.8457565 0.6438521  4.904844 2.1352863 0.2204025 3.385103 2.4567030
[4,] 0.9885012 0.2591323  1.847202 0.6553626 0.2049687 1.172875 0.7813365
[5,] 8.1547624 1.9863759 10.658724 5.9855483 0.5882589 7.624097 6.9651642
        [,190]    [,191]    [,192]    [,193]    [,194]    [,195]    [,196]
[1,] 0.2049687  3.974118 0.3803865  2.983892 0.5850808 0.4089376  5.028237
[2,] 1.0825705 11.080546 2.3843303 10.324145 2.7958636 2.4275435 16.713668
[3,] 0.2049687  3.348720 0.3957925  4.384802 0.7040478 0.4324190  7.440402
[4,] 0.2049687  1.052444 0.2049687  3.206181 0.2425575 0.2373653  6.043179
[5,] 0.5165111  7.586245 2.0280742  7.841241 2.2393407 2.1836407 13.098755
        [,197]    [,198]    [,199]    [,200]    [,201]    [,202]    [,203]
[1,] 1.3505339 1.6310767  3.545189 1.5760711 2.3136799 1.4761784 3.2079480
[2,] 4.3025631 5.5630714 12.656655 5.0204808 5.8369867 4.4817155 7.8073576
[3,] 1.6616915 1.5365068  4.936610 1.6990913 1.6728821 1.7077015 2.7152277
[4,] 0.5653574 0.6604734  3.771421 0.5363003 0.3554247 0.4980085 0.5429962
[5,] 3.4563292 4.3337964  8.864272 3.5275570 6.7332001 4.5519641 8.1371485
        [,204]   [,205]    [,206]    [,207]    [,208]    [,209]    [,210]
[1,] 2.9929080 2.921942 3.4341182  4.572046 1.0969701  4.083450 0.2815142
[2,] 7.6518947 8.108232 8.1187758 12.135087 3.9382514 10.121653 1.5387294
[3,] 2.4094458 3.204354 2.9010124  3.260083 1.1522288  3.178017 0.3376065
[4,] 0.6813975 1.769339 0.7264477  1.171671 0.3806594  0.794044 0.2049687
[5,] 9.1774929 8.598615 8.8435909 12.900232 3.6794211  9.757848 2.4048471
        [,211]    [,212]    [,213]    [,214]    [,215]    [,216]    [,217]
[1,]  4.253710 0.2049687 0.4292199  3.111805 0.2049687 1.4552056  3.822369
[2,] 12.651393 0.7526610 2.1853228  9.151028 0.5401285 4.4761725 11.821139
[3,]  6.961685 0.2455179 0.5346341  5.158920 0.2049687 1.6299379  5.912340
[4,]  5.563638 0.2049687 0.3193110  4.502595 0.2049687 0.8088673  4.927168
[5,] 15.986260 1.2141808 3.1294560 11.976873 0.9185812 5.9801105 13.731427
        [,218]    [,219]    [,220]    [,221]    [,222]    [,223]    [,224]
[1,] 0.9549341 2.1688060 0.6796884  5.571076 1.0811523 0.2116478 3.9263285
[2,] 3.2775746 4.5486792 2.5248508 11.024250 2.8452613 0.7538169 7.7774390
[3,] 1.2625465 0.7972998 0.4469018  3.236936 0.3912759 0.2049687 2.4345693
[4,] 0.4659015 0.2633761 0.2181613  1.077265 0.2049687 0.2049687 0.7082913
[5,] 3.9342954 5.0967750 2.4846819 11.119979 3.2935519 0.7904705 8.2026667
        [,225]    [,226]    [,227]     [,228]    [,229]     [,230]     [,231]
[1,] 1.4679593 0.3231687 4.8232018  3.2683223 0.7761691  2.8419350  3.9208174
[2,] 3.5291972 1.4936367 9.9607345  8.6259921 3.1592929  6.9220180  9.9729280
[3,] 0.4500998 0.2099219 2.6986688  2.5173027 0.8604399  2.3772086  2.9482777
[4,] 0.2049687 0.2049687 0.8128076  0.3113676 0.2049687  0.2204302  0.4768723
[5,] 3.6308036 1.2390889 9.2951788 19.6428193 6.4714961 14.0137753 24.2837205
        [,232]     [,233]     [,234]    [,235]    [,236]
[1,] 1.3598124  2.4740914  3.0918833 0.4051218 2.0142742
[2,] 4.1821391  5.6980011  8.4417539 2.3124333 4.8979144
[3,] 1.5382434  2.0223291  2.2663700 0.4028685 1.3064809
[4,] 0.2645956  0.2049687  0.2816442 0.2049687 0.2049687
[5,] 8.8338510 12.0896680 17.6259341 4.1075234 9.2791010
11435 more rows ...

$design
  (Intercept) submerged$samples$cluster1 submerged$samples$cluster10
1           1                          0                           0
2           1                          0                           0
3           1                          0                           0
4           1                          0                           0
5           1                          0                           0
  submerged$samples$cluster11 submerged$samples$cluster12
1                           0                           0
2                           0                           0
3                           0                           0
4                           0                           0
5                           0                           0
  submerged$samples$cluster13 submerged$samples$cluster14
1                           0                           0
2                           0                           0
3                           0                           0
4                           0                           0
5                           0                           0
  submerged$samples$cluster15 submerged$samples$cluster16
1                           0                           0
2                           0                           0
3                           0                           0
4                           0                           0
5                           0                           0
  submerged$samples$cluster17 submerged$samples$cluster18
1                           0                           0
2                           0                           0
3                           0                           0
4                           0                           0
5                           0                           0
  submerged$samples$cluster19 submerged$samples$cluster2
1                           0                          0
2                           0                          0
3                           0                          0
4                           0                          0
5                           0                          0
  submerged$samples$cluster20 submerged$samples$cluster21
1                           0                           0
2                           0                           0
3                           0                           0
4                           0                           0
5                           0                           0
  submerged$samples$cluster22 submerged$samples$cluster23
1                           0                           0
2                           0                           0
3                           0                           0
4                           0                           0
5                           0                           0
  submerged$samples$cluster24 submerged$samples$cluster25
1                           0                           0
2                           0                           0
3                           0                           0
4                           0                           0
5                           0                           0
  submerged$samples$cluster26 submerged$samples$cluster27
1                           0                           0
2                           0                           0
3                           0                           0
4                           0                           0
5                           0                           0
  submerged$samples$cluster3 submerged$samples$cluster4
1                          0                          0
2                          0                          0
3                          0                          0
4                          0                          0
5                          0                          0
  submerged$samples$cluster5 submerged$samples$cluster6
1                          0                          0
2                          0                          0
3                          0                          0
4                          0                          0
5                          0                          0
  submerged$samples$cluster7 submerged$samples$cluster8
1                          0                          0
2                          0                          0
3                          0                          0
4                          0                          0
5                          0                          0
  submerged$samples$cluster9 submerged$samples$batchBatch2
1                          0                             0
2                          0                             0
3                          0                             0
4                          0                             1
5                          0                             1
  submerged$samples$batchBatch3 submerged$samples$indNA18858
1                             0                            0
2                             0                            1
3                             0                            0
4                             0                            0
5                             0                            1
  submerged$samples$indNA19160
1                            0
2                            0
3                            1
4                            0
5                            0
231 more rows ...
form<- ~ (1|cluster) + (1|batch) + (1|ind)
remove(cpm)
remove(lcpm)
varpart<- suppressWarnings(fitExtractVarPartModel(v, form, submerged$samples))
head(varpart)
              batch   cluster        ind Residuals
SAMD11  0.008134020 0.5309650 0.08328585 0.3776152
NOC2L   0.210459072 0.3399214 0.01997909 0.4296404
KLHL17  0.113124551 0.4733206 0.05042636 0.3631285
PLEKHN1 0.017561041 0.6116619 0.03892802 0.3318491
HES4    0.066522890 0.7151827 0.07791295 0.1403815
ISG15   0.001938057 0.7361390 0.00000000 0.2619230
vp<- sortCols(varpart)
plotPercentBars(vp[1:10,])

Version Author Date
5536dae KLRhodes 2020-08-31
colnames(vp)<- c("Cluster", "Replicate", "Individual", "Residuals")
V<- plotVarPart(vp)
V

Version Author Date
5536dae KLRhodes 2020-08-31
png(file= "/project2/gilad/katie/Pilot_HumanEBs/Embryoid_Body_Pilot_Workflowr/output/figs/Fig4_VarPartRes1.png", width=8, height=5, units= "in", res=1080)

V
  
dev.off()
#do the genes most effected by individual match what I did in limma?
vp<- vp[order(vp$Individual, decreasing=T),]
head(vp, 30)
               Cluster    Replicate Individual  Residuals
TYW3       0.012673254 3.194716e-11  0.9626331 0.02469367
EIF1AY     0.007990717 2.862921e-04  0.9581962 0.03352684
CRYZ       0.023990563 0.000000e+00  0.9233626 0.05264679
DDX3Y      0.017819828 0.000000e+00  0.9181737 0.06400645
CAT        0.019923713 5.494305e-03  0.9109269 0.06365504
USP9Y      0.020347845 2.677458e-11  0.8973358 0.08231632
AC004556.3 0.031422589 1.564283e-02  0.8783546 0.07457996
RWDD2B     0.020407214 2.851418e-11  0.8486486 0.13094422
USP51      0.073114130 1.923581e-11  0.8400385 0.08684740
ZNF280D    0.035580567 0.000000e+00  0.8239942 0.14042524
TAF9B      0.005534833 1.420684e-02  0.8224649 0.15779342
TRIM61     0.050591435 1.043082e-02  0.8189257 0.12005204
RRAGB      0.070846429 6.026204e-03  0.8110918 0.11203554
IAH1       0.092588865 5.835641e-03  0.7999390 0.10163646
MAGEH1     0.127273192 1.733048e-02  0.7923943 0.06300202
TSPYL5     0.020730890 1.610238e-03  0.7918744 0.18578446
ZNF248     0.089006498 5.025846e-03  0.7734273 0.13254038
CHCHD2     0.027792151 4.653040e-03  0.7459806 0.22157425
ZNF300     0.121672426 1.097822e-10  0.7249267 0.15340082
ZNF717     0.137789144 4.200968e-03  0.7138058 0.14420405
NDUFS2     0.140961352 0.000000e+00  0.7131410 0.14589766
PRKY       0.065456192 9.472876e-11  0.6957758 0.23876801
MRPS14     0.039223597 0.000000e+00  0.6906343 0.27014212
QPCT       0.207580995 5.654361e-03  0.6842109 0.10255375
MRPS21     0.168356845 1.609365e-03  0.6782824 0.15175134
PSMD4      0.103423859 2.170627e-02  0.6726663 0.20220355
PNPLA4     0.074041297 5.257533e-02  0.6693239 0.20405947
RNF187     0.143695026 7.541818e-02  0.6685190 0.11236782
FAM199X    0.032805358 1.079154e-01  0.6545404 0.20473888
THOC3      0.174798442 1.233453e-02  0.6481008 0.16476625
#do the genes most effected by batch match what I did in limma?
vp<- vp[order(vp$Replicate, decreasing=T),]
head(vp, 30)
              Cluster Replicate   Individual  Residuals
EEF1A1     0.11974329 0.7673963 4.086558e-02 0.07199486
AP001267.5 0.02406530 0.7411943 5.611633e-02 0.17862406
SMARCB1    0.09433392 0.7156048 2.210116e-02 0.16796011
SF3A2      0.05271636 0.7072443 6.807192e-02 0.17196747
CAPZA1     0.15336072 0.6989011 1.662478e-03 0.14607566
LRRC75A    0.17849391 0.6776789 1.534714e-02 0.12848009
CLIC1      0.13565745 0.6669713 4.359335e-02 0.15377787
TBL1XR1    0.15341667 0.6511418 2.215175e-10 0.19544149
PPP1CB     0.26985603 0.6342063 1.263794e-10 0.09593764
USP14      0.09189205 0.6260121 9.721179e-03 0.27237465
MED21      0.16331737 0.5951325 1.454638e-02 0.22700372
TMED2      0.15588091 0.5948383 5.410093e-03 0.24387074
MRPL42     0.21915778 0.5851833 7.349005e-02 0.12216891
EIF4E      0.21595226 0.5835840 1.897080e-03 0.19856665
TMEM167A   0.12647804 0.5832594 4.326011e-02 0.24700247
PUF60      0.17097362 0.5748966 2.421143e-03 0.25170860
PRPF31     0.19135608 0.5680119 0.000000e+00 0.24063200
PAN3       0.04293099 0.5673294 6.606537e-03 0.38313309
TRA2A      0.20536387 0.5651448 2.978803e-02 0.19970334
PSMA4      0.20686382 0.5636326 1.298156e-02 0.21652197
H3F3A      0.08998637 0.5635909 2.228967e-01 0.12352603
HSF1       0.03488441 0.5616304 4.013144e-03 0.39947205
SLC25A6    0.28242571 0.5555418 5.546147e-03 0.15648636
RSL24D1    0.21869074 0.5540410 5.417895e-02 0.17308934
LYPLA2     0.23218268 0.5506040 0.000000e+00 0.21721332
LSM2       0.12646275 0.5500372 3.722248e-02 0.28627761
CAPZA2     0.23838649 0.5477628 2.372182e-02 0.19012885
QSER1      0.21927223 0.5380249 6.138884e-03 0.23656401
PCNP       0.21460607 0.5343011 0.000000e+00 0.25109285
ZFAND6     0.25047728 0.5339575 6.888443e-03 0.20867680
summary(vp$Individual)
    Min.  1st Qu.   Median     Mean  3rd Qu.     Max. 
0.000000 0.009085 0.033515 0.064427 0.079708 0.962633 
summary(vp$Replicate)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
0.00000 0.01022 0.03631 0.06834 0.09430 0.76740 
#genes for which individual contributes more to variance than batch?
vp.indgreaterthanbatch<- vp[vp$Individual>vp$Replicate,]

dim(vp.indgreaterthanbatch) #vp greater than batch for 5266 out of 11356
[1] 5458    4
head(vp.indgreaterthanbatch, 20)
           Cluster Replicate Individual Residuals
MORF4L2 0.13368671 0.3305262  0.3748252 0.1609618
RNF2    0.05470967 0.3270797  0.3656271 0.2525835
CHM     0.04738132 0.3246448  0.3576527 0.2703212
SF3B4   0.18631050 0.3201600  0.3353219 0.1582076
SNAP47  0.01531640 0.3015715  0.3953149 0.2877971
ZNF281  0.18298881 0.3005685  0.3088606 0.2075821
GAPDH   0.24148707 0.2946808  0.3247554 0.1390767
TSNAX   0.09686234 0.2752320  0.4217176 0.2061881
MDM4    0.15786840 0.2690496  0.4317879 0.1412941
PRCC    0.19296982 0.2628047  0.2843338 0.2598916
UHMK1   0.09206190 0.2626274  0.2893352 0.3559755
TPI1    0.24538846 0.2591399  0.2672175 0.2282542
SCNM1   0.09285215 0.2590271  0.4035077 0.2446131
CDK16   0.14904931 0.2515498  0.4295413 0.1698596
SMG9    0.11170557 0.2398780  0.3800367 0.2683797
B4GALT3 0.19446296 0.2351935  0.3182017 0.2521418
CDC73   0.06846824 0.2277811  0.4339902 0.2697605
ADNP    0.35396235 0.2253128  0.2361214 0.1846035
RAP2C   0.24318596 0.2187700  0.3508156 0.1872284
VEGFB   0.28876666 0.2094572  0.2703386 0.2314376
sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Scientific Linux 7.4 (Nitrogen)

Matrix products: default
BLAS/LAPACK: /software/openblas-0.2.19-el7-x86_64/lib/libopenblas_haswellp-r0.2.19.so

locale:
[1] C

attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods  
[8] base     

other attached packages:
 [1] variancePartition_1.16.1 Biobase_2.46.0           BiocGenerics_0.32.0     
 [4] scales_1.1.1             foreach_1.5.0            ggplot2_3.3.3           
 [7] edgeR_3.28.1             limma_3.42.2             dplyr_1.0.2             
[10] workflowr_1.6.2         

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.6          locfit_1.5-9.4      here_0.1-11        
 [4] lattice_0.20-38     prettyunits_1.1.1   gtools_3.8.2       
 [7] rprojroot_2.0.2     digest_0.6.27       plyr_1.8.6         
[10] R6_2.5.0            evaluate_0.14       highr_0.8          
[13] pillar_1.4.7        progress_1.2.2      gplots_3.0.4       
[16] rlang_0.4.10        minqa_1.2.4         gdata_2.18.0       
[19] whisker_0.4         nloptr_1.2.2.2      Matrix_1.2-18      
[22] rmarkdown_2.3       labeling_0.4.2      splines_3.6.1      
[25] BiocParallel_1.20.1 lme4_1.1-23         statmod_1.4.34     
[28] stringr_1.4.0       munsell_0.5.0       compiler_3.6.1     
[31] httpuv_1.5.4        xfun_0.16           pkgconfig_2.0.3    
[34] htmltools_0.5.0     tidyselect_1.1.0    tibble_3.0.4       
[37] codetools_0.2-16    crayon_1.3.4        withr_2.4.2        
[40] later_1.1.0.1       MASS_7.3-51.4       bitops_1.0-6       
[43] grid_3.6.1          nlme_3.1-140        gtable_0.3.0       
[46] lifecycle_0.2.0     git2r_0.26.1        magrittr_2.0.1     
[49] KernSmooth_2.23-15  stringi_1.5.3       farver_2.0.3       
[52] reshape2_1.4.4      fs_1.4.2            promises_1.1.1     
[55] doParallel_1.0.15   colorRamps_2.3      ellipsis_0.3.1     
[58] generics_0.1.0      vctrs_0.3.6         boot_1.3-23        
[61] iterators_1.0.12    tools_3.6.1         glue_1.4.2         
[64] purrr_0.3.4         hms_0.5.3           pbkrtest_0.4-8.6   
[67] yaml_2.2.1          colorspace_2.0-0    caTools_1.18.0     
[70] knitr_1.29         

sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Scientific Linux 7.4 (Nitrogen)

Matrix products: default
BLAS/LAPACK: /software/openblas-0.2.19-el7-x86_64/lib/libopenblas_haswellp-r0.2.19.so

locale:
[1] C

attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods  
[8] base     

other attached packages:
 [1] variancePartition_1.16.1 Biobase_2.46.0           BiocGenerics_0.32.0     
 [4] scales_1.1.1             foreach_1.5.0            ggplot2_3.3.3           
 [7] edgeR_3.28.1             limma_3.42.2             dplyr_1.0.2             
[10] workflowr_1.6.2         

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.6          locfit_1.5-9.4      here_0.1-11        
 [4] lattice_0.20-38     prettyunits_1.1.1   gtools_3.8.2       
 [7] rprojroot_2.0.2     digest_0.6.27       plyr_1.8.6         
[10] R6_2.5.0            evaluate_0.14       highr_0.8          
[13] pillar_1.4.7        progress_1.2.2      gplots_3.0.4       
[16] rlang_0.4.10        minqa_1.2.4         gdata_2.18.0       
[19] whisker_0.4         nloptr_1.2.2.2      Matrix_1.2-18      
[22] rmarkdown_2.3       labeling_0.4.2      splines_3.6.1      
[25] BiocParallel_1.20.1 lme4_1.1-23         statmod_1.4.34     
[28] stringr_1.4.0       munsell_0.5.0       compiler_3.6.1     
[31] httpuv_1.5.4        xfun_0.16           pkgconfig_2.0.3    
[34] htmltools_0.5.0     tidyselect_1.1.0    tibble_3.0.4       
[37] codetools_0.2-16    crayon_1.3.4        withr_2.4.2        
[40] later_1.1.0.1       MASS_7.3-51.4       bitops_1.0-6       
[43] grid_3.6.1          nlme_3.1-140        gtable_0.3.0       
[46] lifecycle_0.2.0     git2r_0.26.1        magrittr_2.0.1     
[49] KernSmooth_2.23-15  stringi_1.5.3       farver_2.0.3       
[52] reshape2_1.4.4      fs_1.4.2            promises_1.1.1     
[55] doParallel_1.0.15   colorRamps_2.3      ellipsis_0.3.1     
[58] generics_0.1.0      vctrs_0.3.6         boot_1.3-23        
[61] iterators_1.0.12    tools_3.6.1         glue_1.4.2         
[64] purrr_0.3.4         hms_0.5.3           pbkrtest_0.4-8.6   
[67] yaml_2.2.1          colorspace_2.0-0    caTools_1.18.0     
[70] knitr_1.29