cellbarcode
R package for cellular DNA barcode data preprocessing.
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: nature.com, zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.5%) to scientific vocabulary
Keywords
Repository
R package for cellular DNA barcode data preprocessing.
Basic Info
- Host: GitHub
- Owner: wenjie1991
- Language: R
- Default Branch: devel
- Homepage: https://bioconductor.org/packages/release/bioc/html/CellBarcode.html
- Size: 9.54 MB
Statistics
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
- Releases: 1
Topics
Metadata Files
README.md
CellBarcode
CellBarcode is an R package for dealing with Cellular DNA barcoding sequencing data.
The R package was created by Wenjie SUN, Anne-Marie Lyne, and Leïla Perié at Institut Curie.
Types of barcodes
CellBarcode can handle all types of DNA barcodes, provided that:
- The barcodes have a pattern that can be matched by a regular expression.
- Each barcode is within a single sequencing read.
What you can do with CellBarcode
Perform quality control for the DNA sequence results, and filter the sequences according to their quality metrics.
Identify barcode (and UMI) information in sequencing results.
Performs quality control and deal with the spurious sequences that come from potential PCR & sequence errors.
Provide toolkits to make it easier to manage samples and barcodes with metadata.
Installing
Install the development version from GitHub
r
if(!requireNamespace("remotes", quietly = TRUE))
install.packages("remotes")
remotes::install_github("wenjie1991/CellBarcode")
Getting Started
Here is an example of a basic workflow:
```r library(CellBarcode) library(magrittr)
The example data is a mix of MEF lines with known barcodes
2000 reads for each file have been sampled for this test dataset
Data can be accessed here: https://zenodo.org/records/10027002
exampledata <- system.file("extdata", "meftestdata", package = "CellBarcode") fqfiles <- dir(example_data, "gz", full=TRUE)
prepare metadata
metadata <- stringr::strsplitfixed(basename(fqfiles), "", 10)[, c(4, 6)] metadata <- data.frame(metadata) samplename <- apply(metadata, 1, paste, collapse = "") colnames(metadata) = c("cellnumber", "replication") rownames(metadata) = samplename metadata
extract UMI barcode with regular expression
bcobj <- bcextract( fqfiles, pattern = "(.{12})CTCGAGGTCATCGAAGTATCAAG(.+)TAGCAAGCTCGAGAGTAGACCTACT", patterntype = c("UMI" = 1, "barcode" = 2), samplename = samplename, metadata = metadata ) bc_obj
sample subset operation, select 'mixa'
bcsub <- bcsubset(bcobj, sample=replication == "mixa") bcsub
filter the barcode, UMI barcode amplicon >= 2 & UMI counts >= 2
bcsub <- bccureumi(bcsub, depth = 2) %>% bccuredepth(depth = 2)
select barcodes with a white list
bc_sub[c("AAGTCCAGTACTATCGTACTA", "AAGTCCAGTACTGTAGCTACTA"), ]
export the barcode counts to data.frame
head(bc2df(bcsub))
export the barcode counts to matrix
head(bc2matrix(bcsub)) ```
License
Citation
If you use CellBarcode in your research, please cite the following paper: Sun, W. et al. Extracting, filtering and simulating cellular barcodes using CellBarcode tools. Nat Comput Sci 1–16 (2024)
Owner
- Name: Wenjie Sun
- Login: wenjie1991
- Kind: user
- Location: Paris
- Website: https://www.sun-wenjie.site
- Repositories: 40
- Profile: https://github.com/wenjie1991
Passion about {How} and {Why} using R, C++, HTML, JavaScript, statistics, NGS, and Love.
GitHub Events
Total
- Issues event: 1
- Issue comment event: 1
- Push event: 17
- Pull request event: 4
- Fork event: 1
- Create event: 2
Last Year
- Issues event: 1
- Issue comment event: 1
- Push event: 17
- Pull request event: 4
- Fork event: 1
- Create event: 2
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 2
- Total pull requests: 10
- Average time to close issues: N/A
- Average time to close pull requests: about 3 hours
- Total issue authors: 2
- Total pull request authors: 1
- Average comments per issue: 1.5
- Average comments per pull request: 0.0
- Merged pull requests: 10
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: 1 minute
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- noobugs (1)
- sisterdot (1)
Pull Request Authors
- wenjie1991 (10)
- sanchit-saini (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- R >= 4.1.0 depends
- Biostrings >= 2.58.0 imports
- Ckmeans.1d.dp * imports
- Rcpp >= 1.0.5 imports
- S4Vectors * imports
- ShortRead >= 1.48.0 imports
- data.table >= 1.12.6 imports
- egg * imports
- ggplot2 * imports
- magrittr * imports
- methods * imports
- plyr * imports
- stats * imports
- stringr * imports
- utils * imports
- BiocStyle * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat >= 3.0.0 suggests
- actions/checkout v3 composite
- r-lib/actions/setup-r f57f1301a053485946083d7a45022b278929a78a composite