Skip to content

Instantly share code, notes, and snippets.

View combiz's full-sized avatar

Combiz Khozoie combiz

View GitHub Profile
@alpteo
alpteo / semantic-commit-messages-with-emojis.md
Last active June 24, 2024 18:37
Semantic Commit Messages with Emojis

Semantic Commit Messages with Emojis

Commit format: <emoji_type> <commit_type>(<scope>): <subject>. <issue_reference>

Example

:sparkles: feat(Component): Add a new feature. Closes: #
^--------^ ^--^ ^-------^   ^---------------^  ^------^
|          |    |           |                  |
| | | | +--&gt; (Optional) Issue reference: if the commit closes or fixes an issue
@FloWuenne
FloWuenne / gist:5f881d7f4f1f05e205c64a2d05b68ff7
Last active March 9, 2019 16:57
Creating quick SCE object from Seurat expression data
library(scater)
## Create new SCE object from the seurat expression object
fData <- new("AnnotatedDataFrame", data = expression_seurat@meta.data)
seurat_scater_sce <- newSCESet(exprsData = as.matrix(expression_seurat@data), phenoData = fData,
lowerDetectionLimit=0.0,
logExprsOffset=1)
seurat_scater_sce <- calculateQCMetrics(seurat_scater_sce)
@apreshill
apreshill / read-multiple-csv-files
Created March 18, 2016 14:50
Read multiple csv files into R
# stack overflow answer from Joran Ellis:
# http://stackoverflow.com/questions/5319839/read-multiple-csv-files-into-separate-data-frames
# If the path is different than your working directory
# you'll need to set full.names = TRUE to get the full
# paths.
my_files <- list.files("path/to/files")
# Further arguments to read.csv can be passed in ...
all_csv <- lapply(my_files,read.csv,...)