Giter VIP home page Giter VIP logo

kg's Introduction

KG - A Collection of Random scRNA-Seq Functions 

This repository is composed of functions and wrappers designed to make life easier for the owner of the repo. The functions included are all, in one way or another, related to processing and analysis of scRNA-seq data.

Some of these functions are exceptionally base, while others are used to construct figures of varying degrees of complexity and customizability.


Installation

Install the most recent version of this package:

devtools::install_github("KNGrimstad/KG")

Functions Currently Included in this Package

Fancy plotting functions

  • KG_dimplot - Make clean dimplots for publications.

  • KG_heatmap - Fancy heatmap for cell-by-cell or cluster-average expression of genes.

  • KG_isotype_pie - Pie chart of Ig isotype distributions in clusters.

  • KG_subtype_pie - Same as above, but for Ig subtypes.

  • KG_3DPlot - A classic dimension plot in 3D

  • KG_dotplot - Seurat's dot plot, but subjectively nicer.

  • KG_clone_tree - Wrapper to make clone trees from V(D)J-seq data.

  • KG_percent_cells - Plots percentage of cells in each cluster.

  • KG_isotype_dimplot - Dimplots that highlight cells by their IGH isotype.

Data wrangling

  • KG_remove_BCR - Removes BCR genes from the dataset.

  • KG_import_seurat_clusters - Imports Seurat annotations to monocle3 object.

  • KG_filter_bcr - Filters an AIRR data frame from V(D)J-seq for quality.

  • KG_filter_pbmcs - Plots expression for common PBMC genes so you can filter out the cells you want.

  • KG_gene_to_isotype - Converts c calls to main Ig isotypes.

  • KG_isotype_switch - Converts Ig isotype to switch status (unswitched/switched).

  • KG_get_trajectory - Exracts the coordinates from monocle3-generated trajectories.

  • KG_filter_vdj - Filter AIRR format files from V(D)J-seq for downstream BCR analyses.

Helpful wrappers

  • KG_clones - Wrapper to call clones in V(D)J-seq data.

  • KG_cluster_multi - Wrapper to run Seurat's FindClusters for a range of resolutions.

  • KG_integrate_CCA - Wrapper for Seurat's CCA integration workflow.

  • KG_hc - Wrapper for Seurat's hierarchical clustering.

  • KG_project - Wrapper for Seurat's functions for projecting datasets onto a reference.

  • KG_project_3D - Same as above, but generates a 3D dimension plot.

  • KG_prep_clones - Streamlines base clonotype processing from the Immcantation framework.

  • KG_multi_gene_plot - Plots gene expression (feature or violoin) for a list of genes one by one.

Misc. helpers

  • KG_add_suffix - Simply adds a suffix to all strings supplied (optimal for cell barcodes).

  • KG_remove_suffix - Same as above, but for removing a suffix.

  • KG_fetch_genes - Returns all genes in a Seurat object with the supplied gene name prefix.

  • KG_plot_to_pdf - Writes plots to PDF, with customizable layouts.

  • KG_percent_isotypes - Calculates the percent of Ig isotypes in each Seurat identity.

kg's People

Contributors

kngrimstad avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.