biopipen 0.34.7__tar.gz → 0.34.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of biopipen might be problematic. Click here for more details.
- {biopipen-0.34.7 → biopipen-0.34.8}/PKG-INFO +1 -1
- biopipen-0.34.8/biopipen/__init__.py +1 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/scrna.py +6 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/MarkersFinder.R +28 -18
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/PseudoBulkDEG.R +39 -21
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/ScFGSEA.R +18 -22
- {biopipen-0.34.7 → biopipen-0.34.8}/pyproject.toml +1 -1
- {biopipen-0.34.7 → biopipen-0.34.8}/setup.py +1 -1
- biopipen-0.34.7/biopipen/__init__.py +0 -1
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/core/__init__.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/core/config.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/core/config.toml +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/core/defaults.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/core/filters.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/core/proc.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/core/testing.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/__init__.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/bam.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/bed.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/cellranger.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/cellranger_pipeline.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/cnv.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/cnvkit.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/cnvkit_pipeline.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/delim.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/gene.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/gsea.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/misc.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/plot.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/protein.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/regulatory.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/rnaseq.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/scrna_metabolic_landscape.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/snp.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/stats.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/tcgamaf.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/tcr.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/vcf.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/ns/web.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/bam/CNAClinic.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/bam/CNVpytor.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/bam/ControlFREEC.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/cellranger/CellRangerCount.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/cellranger/CellRangerSummary.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/cellranger/CellRangerVdj.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/cnv/AneuploidyScore.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/cnv/AneuploidyScoreSummary.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/cnv/TMADScoreSummary.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/cnvkit/CNVkitDiagram.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/cnvkit/CNVkitHeatmap.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/cnvkit/CNVkitScatter.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/common.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/gsea/FGSEA.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/gsea/GSEA.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/protein/ProdigySummary.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/scrna/CellsDistribution.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/scrna/DimPlots.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/scrna/MarkersFinder.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/scrna/MetaMarkers.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/scrna/RadarPlots.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/scrna_metabolic_landscape/MetabolicFeatures.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/scrna_metabolic_landscape/MetabolicPathwayActivity.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/scrna_metabolic_landscape/MetabolicPathwayHeterogeneity.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/snp/PlinkCallRate.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/snp/PlinkFreq.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/snp/PlinkHWE.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/snp/PlinkHet.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/snp/PlinkIBD.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/tcr/CDR3AAPhyschem.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/tcr/ClonalStats.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/tcr/CloneResidency.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/tcr/Immunarch.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/tcr/SampleDiversity.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/tcr/TCRClusterStats.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/tcr/TESSA.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/tcr/VJUsage.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/utils/misc.liq +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/vcf/TruvariBenchSummary.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/reports/vcf/TruvariConsistency.svelte +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bam/BamMerge.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bam/BamSampling.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bam/BamSort.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bam/BamSplitChroms.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bam/BamSubsetByBed.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bam/CNAClinic.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bam/CNVpytor.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bam/ControlFREEC.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bam/SamtoolsView.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bed/Bed2Vcf.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bed/BedConsensus.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bed/BedLiftOver.sh +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bed/BedtoolsIntersect.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bed/BedtoolsMakeWindows.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/bed/BedtoolsMerge.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cellranger/CellRangerCount.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cellranger/CellRangerSummary.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cellranger/CellRangerVdj.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnv/AneuploidyScore.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnv/AneuploidyScoreSummary.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnv/TMADScore.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnv/TMADScoreSummary.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnvkit/CNVkitAccess.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnvkit/CNVkitAutobin.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnvkit/CNVkitBatch.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnvkit/CNVkitCall.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnvkit/CNVkitCoverage.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnvkit/CNVkitDiagram.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnvkit/CNVkitFix.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnvkit/CNVkitGuessBaits.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnvkit/CNVkitHeatmap.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnvkit/CNVkitReference.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnvkit/CNVkitScatter.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnvkit/CNVkitSegment.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/cnvkit/guess_baits.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/delim/RowsBinder.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/delim/SampleInfo.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/gene/GeneNameConversion.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/gene/GenePromoters.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/gsea/Enrichr.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/gsea/FGSEA.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/gsea/GSEA.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/gsea/PreRank.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/misc/Config2File.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/misc/Plot.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/misc/Shell.sh +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/misc/Str2File.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/plot/Heatmap.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/plot/Manhattan.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/plot/QQPlot.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/plot/ROC.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/plot/Scatter.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/plot/VennDiagram.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/protein/MMCIF2PDB.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/protein/PDB2Fasta.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/protein/Prodigy.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/protein/ProdigySummary.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/protein/RMSD.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/regulatory/MotifAffinityTest.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/regulatory/MotifAffinityTest_AtSNP.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/regulatory/MotifAffinityTest_MotifBreakR.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/regulatory/MotifScan.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/regulatory/VariantMotifPlot.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/regulatory/motifs-common.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/rnaseq/Simulation-ESCO.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/rnaseq/Simulation-RUVcorr.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/rnaseq/Simulation.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/rnaseq/UnitConversion.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/AnnData2Seurat.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/CCPlotR-patch.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/CellCellCommunication.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/CellCellCommunicationPlots.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/CellTypeAnnotation-celltypist.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/CellTypeAnnotation-direct.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/CellTypeAnnotation-hitype.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/CellTypeAnnotation-sccatch.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/CellTypeAnnotation-sctype.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/CellTypeAnnotation.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/CellsDistribution.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/DimPlots.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/ExprImputation-alra.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/ExprImputation-rmagic.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/ExprImputation-scimpute.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/ExprImputation.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/LoomTo10X.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/MetaMarkers.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/ModuleScoreCalculator.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/RadarPlots.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SCImpute.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/ScSimulation.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/ScVelo.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/Seurat2AnnData.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratClusterStats-clustree.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratClusterStats-dimplots.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratClusterStats-features.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratClusterStats-ngenes.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratClusterStats-stats.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratClusterStats.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratClustering.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratFilter.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratLoading.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratMap2Ref.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratMetadataMutater.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratPreparing.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratSplit.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratSubClustering.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratSubset.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/SeuratTo10X.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/Slingshot.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/Subset10X.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/TopExpressingGenes.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/celltypist-wrapper.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/sctype.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna/seurat_anndata_conversion.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna_metabolic_landscape/MetabolicFeatures.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna_metabolic_landscape/MetabolicPathwayActivity.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/scrna_metabolic_landscape/MetabolicPathwayHeterogeneity.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/snp/MatrixEQTL.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/snp/Plink2GTMat.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/snp/PlinkCallRate.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/snp/PlinkFilter.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/snp/PlinkFreq.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/snp/PlinkFromVcf.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/snp/PlinkHWE.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/snp/PlinkHet.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/snp/PlinkIBD.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/snp/PlinkSimulation.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/snp/PlinkUpdateName.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/stats/ChowTest.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/stats/DiffCoexpr.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/stats/LiquidAssoc.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/stats/Mediation.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/stats/MetaPvalue.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/stats/MetaPvalue1.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcgamaf/Maf2Vcf.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcgamaf/MafAddChr.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcgamaf/maf2vcf.pl +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/Attach2Seurat.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/CDR3AAPhyschem.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/ClonalStats.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/CloneResidency.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/CloneSizeQQPlot.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/GIANA/GIANA.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/GIANA/GIANA4.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/GIANA/Imgt_Human_TRBV.fasta +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/GIANA/query.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/Immunarch-basic.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/Immunarch-clonality.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/Immunarch-diversity.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/Immunarch-geneusage.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/Immunarch-kmer.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/Immunarch-overlap.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/Immunarch-spectratyping.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/Immunarch-tracking.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/Immunarch-vjjunc.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/Immunarch.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/Immunarch2VDJtools.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/ImmunarchFilter.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/ImmunarchLoading.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/ImmunarchSplitIdents.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/SampleDiversity.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/ScRepCombiningExpression.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/ScRepLoading.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/TCRClusterStats.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/TCRClustering.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/TCRDock.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/TESSA.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/TESSA_source/Atchley_factors.csv +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/TESSA_source/BriseisEncoder.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/TESSA_source/MCMC_control.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/TESSA_source/TrainedEncoder.h5 +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/TESSA_source/fixed_b.csv +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/TESSA_source/initialization.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/TESSA_source/post_analysis.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/TESSA_source/real_data.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/TESSA_source/update.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/TESSA_source/utility.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/VJUsage.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/immunarch-patched.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/tcr/vdjtools-patch.sh +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/BcftoolsAnnotate.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/BcftoolsFilter.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/BcftoolsMerge.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/BcftoolsSort.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/BcftoolsView.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/TruvariBench.sh +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/TruvariBenchSummary.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/TruvariConsistency.R +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/Vcf2Bed.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/VcfAnno.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/VcfDownSample.sh +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/VcfFilter.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/VcfFix.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/VcfFix_utils.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/VcfIndex.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/VcfIntersect.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/VcfLiftOver.sh +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/VcfSplitSamples.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/vcf/bcftools_utils.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/web/Download.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/web/DownloadList.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/web/GCloudStorageDownloadBucket.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/web/GCloudStorageDownloadFile.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/scripts/web/gcloud_common.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/utils/__init__.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/utils/common_docstrs.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/utils/gene.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/utils/misc.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/utils/reference.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/utils/reporter.py +0 -0
- {biopipen-0.34.7 → biopipen-0.34.8}/biopipen/utils/vcf.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.34.8"
|
|
@@ -2706,6 +2706,7 @@ class PseudoBulkDEG(Proc):
|
|
|
2706
2706
|
analysis.
|
|
2707
2707
|
|
|
2708
2708
|
Envs:
|
|
2709
|
+
ncores (type=int): Number of cores to use for parallelization.
|
|
2709
2710
|
mutaters (type=json): Mutaters to mutate the metadata of the
|
|
2710
2711
|
seurat object. Keys are the new column names and values are the
|
|
2711
2712
|
expressions to mutate the columns. These new columns can be
|
|
@@ -2715,6 +2716,9 @@ class PseudoBulkDEG(Proc):
|
|
|
2715
2716
|
each: The column name in metadata to separate the cells into different cases.
|
|
2716
2717
|
When specified, the case will be expanded to multiple cases for
|
|
2717
2718
|
each value in the column.
|
|
2719
|
+
cache (type=auto): Where to cache the results.
|
|
2720
|
+
If `True`, cache to `outdir` of the job. If `False`, don't cache.
|
|
2721
|
+
Otherwise, specify the directory to cache to.
|
|
2718
2722
|
subset: An expression in string to subset the cells.
|
|
2719
2723
|
aggregate_by: The column names in metadata to aggregate the cells.
|
|
2720
2724
|
layer: The layer to pull and aggregate the data.
|
|
@@ -2844,7 +2848,9 @@ class PseudoBulkDEG(Proc):
|
|
|
2844
2848
|
lang = config.lang.rscript
|
|
2845
2849
|
script = "file://../scripts/scrna/PseudoBulkDEG.R"
|
|
2846
2850
|
envs = {
|
|
2851
|
+
"ncores": config.misc.ncores,
|
|
2847
2852
|
"mutaters": {},
|
|
2853
|
+
"cache": config.path.tmpdir,
|
|
2848
2854
|
"each": None,
|
|
2849
2855
|
"subset": None,
|
|
2850
2856
|
"aggregate_by": None,
|
|
@@ -268,20 +268,22 @@ process_markers <- function(markers, info, case) {
|
|
|
268
268
|
ui = "tabs"
|
|
269
269
|
)
|
|
270
270
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
271
|
+
if (nrow(markers) > 0) {
|
|
272
|
+
for (plotname in names(case$marker_plots)) {
|
|
273
|
+
plotargs <- case$marker_plots[[plotname]]
|
|
274
|
+
plotargs$degs <- markers
|
|
275
|
+
rownames(plotargs$degs) <- make.unique(markers$gene)
|
|
276
|
+
plotargs$outprefix <- file.path(info$prefix, paste0("markers.", slugify(plotname)))
|
|
277
|
+
do_call(VizDEGs, plotargs)
|
|
278
|
+
reporter$add2(
|
|
279
|
+
list(
|
|
280
|
+
name = plotname,
|
|
281
|
+
contents = list(reporter$image(plotargs$outprefix, plotargs$more_formats, plotargs$save_code))),
|
|
282
|
+
hs = c(info$section, info$name),
|
|
283
|
+
hs2 = ifelse(is.null(case$ident), "Markers", paste0("Markers (", case$ident, ")")),
|
|
284
|
+
ui = "tabs"
|
|
285
|
+
)
|
|
286
|
+
}
|
|
285
287
|
}
|
|
286
288
|
|
|
287
289
|
# Do enrichment analysis
|
|
@@ -399,6 +401,10 @@ process_allmarkers <- function(markers, plotcases, casename, groupname) {
|
|
|
399
401
|
plotargs <- plotcases[[plotname]]
|
|
400
402
|
plotargs$degs <- markers
|
|
401
403
|
plotargs$outprefix <- file.path(info$prefix, slugify(plotname))
|
|
404
|
+
if (identical(plotargs$plot_type, "heatmap")) {
|
|
405
|
+
plotargs$show_row_names = plotargs$show_row_names %||% TRUE
|
|
406
|
+
plotargs$show_column_names = plotargs$show_column_names %||% TRUE
|
|
407
|
+
}
|
|
402
408
|
do_call(VizDEGs, plotargs)
|
|
403
409
|
reporter$add2(
|
|
404
410
|
list(
|
|
@@ -547,7 +553,9 @@ run_case <- function(name) {
|
|
|
547
553
|
attr(markers, "group_by") <- each
|
|
548
554
|
attr(markers, "ident_1") <- NULL
|
|
549
555
|
attr(markers, "ident_2") <- NULL
|
|
550
|
-
|
|
556
|
+
if (!is.null(markers) && nrow(markers) > 0) {
|
|
557
|
+
process_allmarkers(markers, allmarker_plots, name, each)
|
|
558
|
+
}
|
|
551
559
|
}
|
|
552
560
|
|
|
553
561
|
if (length(overlaps) > 0) {
|
|
@@ -557,7 +565,7 @@ run_case <- function(name) {
|
|
|
557
565
|
|
|
558
566
|
}
|
|
559
567
|
|
|
560
|
-
if (!is.null(enriches)) {
|
|
568
|
+
if (!is.null(enriches) && length(enriches) > 0) {
|
|
561
569
|
log$info("- Summarizing enrichments in subcases (by each: {each}) ...")
|
|
562
570
|
if (!is.data.frame(enriches)) {
|
|
563
571
|
each_levels <- names(enriches)
|
|
@@ -573,7 +581,7 @@ run_case <- function(name) {
|
|
|
573
581
|
enriches[[each]] <- factor(enriches[[each]], levels = each_levels)
|
|
574
582
|
}
|
|
575
583
|
|
|
576
|
-
if (length(allenrich_plots) > 0) {
|
|
584
|
+
if (length(allenrich_plots) > 0 && !is.null(enriches) && nrow(enriches) > 0) {
|
|
577
585
|
log$info("- Visualizing all enrichments together ...")
|
|
578
586
|
process_allenriches(enriches, allenrich_plots, name, each)
|
|
579
587
|
}
|
|
@@ -636,7 +644,9 @@ run_case <- function(name) {
|
|
|
636
644
|
))
|
|
637
645
|
|
|
638
646
|
if (!is.null(original_case) && !is.null(cases[[original_case]])) {
|
|
639
|
-
markers
|
|
647
|
+
if (nrow(markers) > 0) {
|
|
648
|
+
markers[[each_name]] <- each
|
|
649
|
+
}
|
|
640
650
|
cases[[original_case]]$markers[[each]] <<- markers
|
|
641
651
|
cases[[original_case]]$enriches[[each]] <<- enrich
|
|
642
652
|
}
|
|
@@ -8,7 +8,9 @@ outdir <- {{out.outdir | r}}
|
|
|
8
8
|
joboutdir <- {{job.outdir | r}}
|
|
9
9
|
each <- {{envs.each | r}}
|
|
10
10
|
subset <- {{envs.subset | r}}
|
|
11
|
+
ncores <- {{envs.ncores | r}}
|
|
11
12
|
mutaters <- {{envs.mutaters | r}}
|
|
13
|
+
cache <- {{ envs.cache | r }}
|
|
12
14
|
aggregate_by <- {{envs.aggregate_by | r}}
|
|
13
15
|
layer <- {{envs.layer | r}}
|
|
14
16
|
assay <- {{envs.assay | r}}
|
|
@@ -35,6 +37,7 @@ overlaps <- {{ envs.overlaps | r }}
|
|
|
35
37
|
cases <- {{envs.cases | r}}
|
|
36
38
|
|
|
37
39
|
aggregate_by <- unique(c(aggregate_by, group_by, paired_by, each))
|
|
40
|
+
if (isTRUE(cache)) { cache <- joboutdir }
|
|
38
41
|
|
|
39
42
|
log <- get_logger()
|
|
40
43
|
reporter <- get_reporter()
|
|
@@ -74,10 +77,12 @@ defaults <- list(
|
|
|
74
77
|
ident_1 = ident_1,
|
|
75
78
|
ident_2 = ident_2,
|
|
76
79
|
dbs = dbs,
|
|
80
|
+
ncores = ncores,
|
|
77
81
|
sigmarkers = sigmarkers,
|
|
78
82
|
enrich_style = enrich_style,
|
|
79
83
|
paired_by = paired_by,
|
|
80
84
|
tool = tool,
|
|
85
|
+
cache = cache,
|
|
81
86
|
allmarker_plots_defaults = allmarker_plots_defaults,
|
|
82
87
|
allmarker_plots = allmarker_plots,
|
|
83
88
|
allenrich_plots_defaults = allenrich_plots_defaults,
|
|
@@ -181,6 +186,7 @@ expand_each <- function(name, case) {
|
|
|
181
186
|
if (length(case$overlaps) > 0 || length(case$allmarker_plots) > 0 || length(case$allenrich_plots) > 0) {
|
|
182
187
|
ovcase <- case
|
|
183
188
|
|
|
189
|
+
ovcase$allexprs <- list()
|
|
184
190
|
ovcase$markers <- list()
|
|
185
191
|
ovcase$allmarker_plots <- lapply(
|
|
186
192
|
ovcase$allmarker_plots,
|
|
@@ -533,18 +539,21 @@ run_case <- function(name) {
|
|
|
533
539
|
"dbs", "sigmarkers", "allmarker_plots", "allenrich_plots", "marker_plots", "enrich_plots",
|
|
534
540
|
"overlaps", "original_case", "markers", "enriches", "each_name", "each", "enrich_style",
|
|
535
541
|
"aggregate_by", "subset", "layer", "assay", "group_by", "ident_1", "ident_2", "original_subset",
|
|
536
|
-
"paired_by", "tool", "error",
|
|
542
|
+
"paired_by", "tool", "error", "ncores", "cache", "allexprs",
|
|
537
543
|
allow_nonexisting = TRUE
|
|
538
544
|
)
|
|
539
545
|
|
|
540
546
|
if (!is.null(markers) || !is.null(enriches)) {
|
|
541
|
-
if (!is.null(markers)
|
|
542
|
-
log$info("
|
|
547
|
+
if (!is.null(markers) && length(markers) > 0) {
|
|
548
|
+
log$info("Summarizing DEGs in subcases (by each: {each}) ...")
|
|
543
549
|
# handle the overlaps / allmarkers analysis here
|
|
544
550
|
if (!is.data.frame(markers)) {
|
|
545
551
|
each_levels <- names(markers)
|
|
546
552
|
markers <- do_call(rbind, lapply(each_levels, function(x) {
|
|
547
553
|
markers_df <- markers[[x]]
|
|
554
|
+
if (is.null(markers_df) || nrow(markers_df) == 0) {
|
|
555
|
+
return(NULL)
|
|
556
|
+
}
|
|
548
557
|
if (nrow(markers_df) > 0) {
|
|
549
558
|
markers_df[[each]] <- x
|
|
550
559
|
} else {
|
|
@@ -556,17 +565,17 @@ run_case <- function(name) {
|
|
|
556
565
|
}
|
|
557
566
|
# gene, p_val, avg_log2FC, pct.1, pct.2, p_val_adj, diff_pct, <each>
|
|
558
567
|
|
|
568
|
+
if (!is.data.frame(allexprs)) {
|
|
569
|
+
meta <- do_call(rbind, lapply(allexprs, attr, "meta"))
|
|
570
|
+
allexprs <- do_call(cbind, allexprs)
|
|
571
|
+
} else {
|
|
572
|
+
meta <- attr(allexprs, "meta")
|
|
573
|
+
}
|
|
574
|
+
|
|
559
575
|
if (length(allmarker_plots) > 0) {
|
|
560
|
-
log$info("
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
subset = original_subset, log = log
|
|
564
|
-
)
|
|
565
|
-
attr(markers, "object") <- AggregateExpressionPseudobulk(
|
|
566
|
-
srtobj, aggregate_by = aggregate_by, layer = layer, assay = assay,
|
|
567
|
-
subset = original_subset, log = log
|
|
568
|
-
)
|
|
569
|
-
attr(markers, "meta") <- attr(exprs, "meta")
|
|
576
|
+
log$info("Visualizing all DEGs together ...")
|
|
577
|
+
attr(markers, "object") <- allexprs
|
|
578
|
+
attr(markers, "meta") <- meta
|
|
570
579
|
attr(markers, "group_by") <- each
|
|
571
580
|
attr(markers, "paired_by") <- paired_by
|
|
572
581
|
attr(markers, "ident_1") <- NULL
|
|
@@ -575,18 +584,21 @@ run_case <- function(name) {
|
|
|
575
584
|
}
|
|
576
585
|
|
|
577
586
|
if (length(overlaps) > 0) {
|
|
578
|
-
log$info("
|
|
587
|
+
log$info("Visualizing overlaps between subcases ...")
|
|
579
588
|
process_overlaps(markers, overlaps, name, each)
|
|
580
589
|
}
|
|
581
590
|
|
|
582
591
|
}
|
|
583
592
|
|
|
584
|
-
if (!is.null(enriches)) {
|
|
585
|
-
log$info("
|
|
593
|
+
if (!is.null(enriches) && length(enriches) > 0) {
|
|
594
|
+
log$info("Summarizing enrichments in subcases (by each: {each}) ...")
|
|
586
595
|
if (!is.data.frame(enriches)) {
|
|
587
596
|
each_levels <- names(enriches)
|
|
588
597
|
enriches <- do_call(rbind, lapply(each_levels, function(x) {
|
|
589
598
|
enrich_df <- enriches[[x]]
|
|
599
|
+
if (is.null(enrich_df) || nrow(enrich_df) == 0) {
|
|
600
|
+
return(NULL)
|
|
601
|
+
}
|
|
590
602
|
if (nrow(enrich_df) > 0) {
|
|
591
603
|
enrich_df[[each]] <- x
|
|
592
604
|
} else {
|
|
@@ -594,11 +606,13 @@ run_case <- function(name) {
|
|
|
594
606
|
}
|
|
595
607
|
enrich_df
|
|
596
608
|
}))
|
|
597
|
-
enriches
|
|
609
|
+
if (!is.null(enriches) && nrow(enriches) > 0) {
|
|
610
|
+
enriches[[each]] <- factor(enriches[[each]], levels = each_levels)
|
|
611
|
+
}
|
|
598
612
|
}
|
|
599
613
|
|
|
600
|
-
if (length(allenrich_plots) > 0) {
|
|
601
|
-
log$info("
|
|
614
|
+
if (length(allenrich_plots) > 0 && !is.null(enriches) && nrow(enriches) > 0) {
|
|
615
|
+
log$info("Visualizing all enrichments together ...")
|
|
602
616
|
process_allenriches(enriches, allenrich_plots, name, each)
|
|
603
617
|
}
|
|
604
618
|
}
|
|
@@ -615,7 +629,8 @@ run_case <- function(name) {
|
|
|
615
629
|
{
|
|
616
630
|
RunDEGAnalysis(
|
|
617
631
|
exprs, group_by = group_by, ident_1 = ident_1, ident_2 = ident_2,
|
|
618
|
-
paired_by = paired_by, tool = tool, log = log
|
|
632
|
+
paired_by = paired_by, tool = tool, log = log, ncores = ncores,
|
|
633
|
+
cache = cache
|
|
619
634
|
)
|
|
620
635
|
}, error = function(e) {
|
|
621
636
|
if (error) {
|
|
@@ -646,9 +661,12 @@ run_case <- function(name) {
|
|
|
646
661
|
))
|
|
647
662
|
|
|
648
663
|
if (!is.null(original_case) && !is.null(cases[[original_case]])) {
|
|
649
|
-
markers
|
|
664
|
+
if (!is.null(markers)) {
|
|
665
|
+
markers[[each_name]] <- each
|
|
666
|
+
}
|
|
650
667
|
cases[[original_case]]$markers[[each]] <<- markers
|
|
651
668
|
cases[[original_case]]$enriches[[each]] <<- enrich
|
|
669
|
+
cases[[original_case]]$allexprs[[each]] <<- exprs
|
|
652
670
|
}
|
|
653
671
|
|
|
654
672
|
invisible()
|
|
@@ -82,13 +82,13 @@ expand_each <- function(name, case) {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
if (length(cases) == 0 && name == "GSEA") {
|
|
85
|
-
|
|
85
|
+
prefix <- case$each
|
|
86
86
|
} else {
|
|
87
|
-
|
|
87
|
+
prefix <- paste0(name, " (", case$each, ")")
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
for (each in eachs) {
|
|
91
|
-
newname <- paste0(
|
|
91
|
+
newname <- paste0(prefix, "::", each)
|
|
92
92
|
newcase <- case
|
|
93
93
|
|
|
94
94
|
newcase$original_case <- paste0(name, " (all ", case$each,")")
|
|
@@ -144,6 +144,11 @@ do_case <- function(name) {
|
|
|
144
144
|
|
|
145
145
|
if (!is.null(case$gseas)) {
|
|
146
146
|
|
|
147
|
+
if (length(case$gseas) == 0) {
|
|
148
|
+
log$warn(" No GSEA results found for case {name}. Skipping.")
|
|
149
|
+
return(invisible(NULL))
|
|
150
|
+
}
|
|
151
|
+
|
|
147
152
|
each_levels <- names(case$gseas)
|
|
148
153
|
gseas <- do_call(rbind, lapply(each_levels, function(x) {
|
|
149
154
|
gsea_df <- case$gseas[[x]]
|
|
@@ -242,25 +247,16 @@ do_case <- function(name) {
|
|
|
242
247
|
quote = FALSE
|
|
243
248
|
)
|
|
244
249
|
if (all(is.na(ranks))) {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
} else {
|
|
256
|
-
stop(paste0(
|
|
257
|
-
"All gene ranks are NA (# cells = ",
|
|
258
|
-
length(allclasses),
|
|
259
|
-
"). ",
|
|
260
|
-
"It's probably due to high missing rate in the data. ",
|
|
261
|
-
"You may want to try a different `envs$method` for pre-ranking."
|
|
262
|
-
))
|
|
263
|
-
}
|
|
250
|
+
log$warn(" All gene ranks are NA. It's probably due to high missing rate in the data.")
|
|
251
|
+
log$warn(" Case ignored, you may also try a different ranking method.")
|
|
252
|
+
reporter$add2(
|
|
253
|
+
list(
|
|
254
|
+
kind = "error",
|
|
255
|
+
content = "All gene ranks are NA. It's probably due to high missing rate in the data."
|
|
256
|
+
),
|
|
257
|
+
hs = c(info$section, info$name)
|
|
258
|
+
)
|
|
259
|
+
return(invisible(NULL))
|
|
264
260
|
}
|
|
265
261
|
|
|
266
262
|
# run fgsea
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.34.7"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|