Package: BPCells 0.3.1

Benjamin Parks

BPCells: Single Cell Counts Matrices to PCA

> Efficient operations for single cell ATAC-seq fragments and RNA counts matrices. Interoperable with standard file formats, and introduces efficient bit-packed formats that allow large storage savings and increased read speeds.

Authors:Benjamin Parks [aut, cre, cph], Immanuel Abdi [aut], Stanford University [cph, fnd], Genentech, Inc. [cph, fnd]

BPCells_0.3.1.tar.gz
BPCells_0.3.1.zip(r-4.7)BPCells_0.3.1.zip(r-4.6)BPCells_0.3.1.zip(r-4.5)
BPCells_0.3.1.tgz(r-4.6-x86_64)BPCells_0.3.1.tgz(r-4.6-arm64)BPCells_0.3.1.tgz(r-4.5-x86_64)BPCells_0.3.1.tgz(r-4.5-arm64)
BPCells_0.3.1.tar.gz(r-4.7-arm64)BPCells_0.3.1.tar.gz(r-4.7-x86_64)BPCells_0.3.1.tar.gz(r-4.6-arm64)BPCells_0.3.1.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html
card.svg |card.png
BPCells/json (API)
NEWS

# Install 'BPCells' in R:
install.packages('BPCells', repos = c('https://bimsbbioinfo.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/bnprks/bpcells/issues

Pkgdown/docs site:https://bnprks.github.io

Uses libs:
  • zlib– Compression library
  • hdf5– HDF5 C runtime files - serial version
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

zlibhdf5cpp

6.61 score 5 packages 700 scripts 143 exports 47 dependencies

Last updated from:c293a0a34e. Checks:11 ERROR, 1 OK, 1 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64ERROR456
linux-devel-x86_64ERROR508
source / vignettesOK504
linux-release-arm64ERROR452
linux-release-x86_64ERROR509
macos-release-arm64ERROR239
macos-release-x86_64ERROR1009
macos-oldrel-arm64ERROR270
macos-oldrel-x86_64ERROR822
windows-develERROR673
windows-releaseERROR752
windows-oldrelERROR705
wasm-releaseFAIL126

Exports:%>%add_colsadd_rowsall_matrix_inputsall_matrix_inputs<-apply_by_colapply_by_rowas.data.frameas.matrixbinarizecall_macs_peakscall_peaks_macscall_peaks_tilecanonical_gene_symbolcellNamescellNames<-checksumchrNameschrNames<-cluster_cells_graphcluster_graph_leidencluster_graph_louvaincluster_graph_seuratcollect_featurescolMaxscolMaxs.defaultcolMaxs.IterableMatrixcolMeanscolQuantilescolQuantiles.defaultcolQuantiles.IterableMatrixcolSumscolVarscolVars.defaultcolVars.IterableMatrixcontinuous_paletteconvert_matrix_typeconvert_to_fragmentsdiscrete_palettedraw_trackplot_gridexpm1_slowextend_rangesfootprintfragments_identicalgene_regiongene_score_archrgene_score_tiles_archrgene_score_weights_archrget_demo_fragsget_demo_matget_trackplot_heightimport_matrix_marketimport_matrix_market_10xknn_annoyknn_hnswknn_to_geodesic_graphknn_to_snn_graphlog1p_slowmarker_featuresmatch_gene_symbolmatrix_statsmatrix_typemerge_cellsmerge_peaks_iterativemin_by_colmin_by_rowmin_scalarmultiply_colsmultiply_rowsnormalize_rangesnucleosome_countsopen_fragments_10xopen_fragments_diropen_fragments_hdf5open_matrix_10x_hdf5open_matrix_anndata_hdf5open_matrix_diropen_matrix_hdf5order_rangespeak_matrixplot_dotplot_embeddingplot_fragment_lengthplot_read_count_kneeplot_tf_footprintplot_tss_profileplot_tss_scatterprefix_cell_namespseudobulk_matrixqc_scATACrange_distance_to_nearestread_bedread_encode_blacklistread_gencode_genesread_gencode_transcriptsread_gtfread_ucsc_chrom_sizesregress_outremove_demo_datarotate_x_labelsrowMaxsrowMaxs.defaultrowMaxs.IterableMatrixrowMeansrowQuantilesrowQuantiles.defaultrowQuantiles.IterableMatrixrowSumsrowVarsrowVars.defaultrowVars.IterableMatrixsctransform_pearsonselect_cellsselect_chromosomesselect_regionsset_trackplot_heightset_trackplot_labelshift_fragmentsstorage_ordersubset_lengthssvdsttile_matrixtrackplot_bulktrackplot_combinetrackplot_coveragetrackplot_genetrackplot_genome_annotationtrackplot_looptrackplot_scalebartranspose_storage_orderwrite_fragments_10xwrite_fragments_dirwrite_fragments_hdf5write_fragments_memorywrite_insertion_bedwrite_insertion_bedgraphwrite_matrix_10x_hdf5write_matrix_anndata_hdf5write_matrix_anndata_hdf5_densewrite_matrix_dirwrite_matrix_hdf5write_matrix_memory

Dependencies:bitbit64clicliprcpp11crayondplyrfarvergenericsggplot2ggrepelgluegtablehexbinhmsisobandlabelinglatticelifecyclemagrittrMatrixpatchworkpillarpkgconfigprettyunitsprogresspurrrR6RColorBrewerRcppRcppEigenreadrrlangS7scalesscattermorestringistringrtibbletidyrtidyselecttzdbutf8vctrsviridisLitevroomwithr

Readme and manuals

Help Manual

Help pageTopics
Broadcasting vector arithmeticadd_cols add_rows multiply_cols multiply_rows
Get/set inputs to a matrix transformall_matrix_inputs all_matrix_inputs<-
Apply a function to summarize rows/colsapply_by_col apply_by_row
Convert matrix elements to zeros and onesbinarize
Call peaks using MACS2/3call_peaks_macs
Call peaks from tilescall_peaks_tile
Calculate the MD5 checksum of an IterableMatrixchecksum
Cluster cell embeddings using a KNN graph-based algorithmcluster_cells_graph
Cluster an adjacency matrixcluster_graph_leiden cluster_graph_louvain cluster_graph_seurat
Convert grouping vector to sparse matrixcluster_membership_matrix
Collect features for plottingcollect_features
Convert the type of a matrixconvert_matrix_type
Convert between BPCells fragments and R objects.convert_to_fragments
Color palettescontinuous_palette discrete_palette
Extend genome ranges in a strand-aware fashion.extend_ranges
Get footprints around a set of genomic coordinatesfootprint
Check if two fragments objects are identicalfragments_identical
Find gene regiongene_region
Calculate gene-tile distances for ArchR gene activitiesgene_score_tiles_archr
Calculate GeneActivityScoresgene_score_archr gene_score_weights_archr
Genomic range formatsgenomic-ranges-like
Retrieve BPCells demo dataget_demo_frags get_demo_mat remove_demo_data
Gene Symbol Mapping datahuman_gene_mapping mouse_gene_mapping
Import MatrixMarket filesimport_matrix_market import_matrix_market_10x
IterableFragments methodscellNames cellNames<- chrNames chrNames<- IterableFragments-methods show,IterableFragments-method
IterableMatrix methods%*%,IterableMatrix,matrix-method *,IterableMatrix,numeric-method +,IterableMatrix,numeric-method -,IterableMatrix,numeric-method /,IterableMatrix,numeric-method <,numeric,IterableMatrix-method <=,numeric,IterableMatrix-method >,IterableMatrix,numeric-method >=,IterableMatrix,numeric-method colMaxs colMeans,IterableMatrix-method colQuantiles colSums,IterableMatrix-method colVars expm1,IterableMatrix-method expm1_slow IterableMatrix-methods log1p,IterableMatrix-method log1p_slow matrix_type round,IterableMatrix-method rowMaxs rowMeans,IterableMatrix-method rowQuantiles rowSums,IterableMatrix-method rowVars show,IterableMatrix-method storage_order t,IterableMatrix-method ^,IterableMatrix,numeric-method
Get a knn object from reduced dimensionsknn_annoy knn_hnsw
K Nearest Neighbor (KNN) Graphknn_to_geodesic_graph knn_to_graph knn_to_snn_graph
Test for marker featuresmarker_features
Gene symbol matchingcanonical_gene_symbol match_gene_symbol
Convert between BPCells matrix and R objects.matrix_R_conversion
Calculate matrix statsmatrix_stats
Merge cells into pseudobulksmerge_cells
Merge peaksmerge_peaks_iterative
Elementwise minimummin_by_col min_by_row min_scalar
Normalize an object representing genomic rangesnormalize_ranges
Count fragments by nucleosomal sizenucleosome_counts
Read/write a 10x fragments fileopen_fragments_10x write_fragments_10x
Read/write a 10x feature matrixopen_matrix_10x_hdf5 write_matrix_10x_hdf5
Read/write AnnData matrixopen_matrix_anndata_hdf5 write_matrix_anndata_hdf5 write_matrix_anndata_hdf5_dense
Get end-sorted ordering for genome rangesorder_ranges
Calculate ranges x cells overlap matrixpeak_matrix
Dotplotplot_dot
Plot UMAP or embeddingsplot_embedding
Fragment size distributionplot_fragment_length
Knee plot of single cell read countsplot_read_count_knee
Plot TF footprintplot_tf_footprint
Plot TSS profileplot_tss_profile
TSS Enrichment vs. Fragment Counts plotplot_tss_scatter
Add sample prefix to cell namesprefix_cell_names
Aggregate counts matrices by cell group or feature.pseudobulk_matrix
Calculate ArchR-compatible per-cell QC statisticsqc_scATAC
Find signed distance to nearest genomic rangesrange_distance_to_nearest
Read a bed file into a data frameread_bed read_encode_blacklist
Read GTF gene annotationsread_gencode_genes read_gencode_transcripts read_gtf
Read UCSC chromosome sizesread_ucsc_chrom_sizes
Regress out unwanted variationregress_out
Rotate ggplot x axis labelsrotate_x_labels
SCTransform Pearson Residualssctransform_pearson
Subset, translate, or reorder cell IDsselect_cells
Subset, translate, or reorder chromosome IDsselect_chromosomes
Subset fragments by genomic regionselect_regions
Adjust trackplot propertiesget_trackplot_height set_trackplot_height set_trackplot_label
Shift start or end coordinatesshift_fragments
Subset fragments by lengthsubset_lengths
Calculate svdssvds
Calculate ranges x cells tile overlap matrixtile_matrix
Combine track plotstrackplot_combine
Pseudobulk coverage trackplottrackplot_coverage
Plot transcript modelstrackplot_gene
Plot range-based annotation tracks (e.g. peaks)trackplot_genome_annotation
Plot loopstrackplot_loop
Plot scale bartrackplot_scalebar
Transpose the storage order for a matrixtranspose_storage_order
Read/write BPCells fragment objectsopen_fragments_dir open_fragments_hdf5 write_fragments_dir write_fragments_hdf5 write_fragments_memory
Write insertion counts to bed/bedgraph filewrite_insertion_bed write_insertion_bedgraph
Read/write sparse matricesopen_matrix_dir open_matrix_hdf5 write_matrix_dir write_matrix_hdf5 write_matrix_memory