elelab / campp2 Goto Github PK
View Code? Open in Web Editor NEWThe CAMPP2 R package
The CAMPP2 R package
this is the second priority as we don't have a good solution for this yet
How to implement SummarizedExperiment class?
Function for SummarizedExperiment
library(SummarizedExperiment)
create_summarized_experiment <- function(gene_counts, sample_metadata) {
# Check if input data frames have the same number of samples
if (ncol(gene_counts) != nrow(sample_metadata)) {
stop("The number of columns in gene_counts must match the number of rows in sample_metadata.")
}
# Check if row names in sample_metadata match column names in gene_counts
if (!all(rownames(sample_metadata) %in% colnames(gene_counts))) {
stop("All row names in sample_metadata must be present in the column names of gene_counts.")
}
# Create the SummarizedExperiment object
se <- SummarizedExperiment(assays = list(counts = gene_counts),
colData = sample_metadata)
return(se)
}
try to shrink the size of the original repository (and add the code from the new CAMPP2) by eg:
git clone --mirror <repository_url>
cd <repository_name>.git
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch <path_to_large_file>" --prune-empty --tag-name-filter cat -- --all
git reflog expire --expire=now --all
git gc --prune=now --aggressive
git push --force
Update all clones: Notify all collaborators to re-clone the repository, as the history has been rewritten. They should backup their local branches and changes, then clone the repository again.
Alternatively it’s possible to use:
BFG Repo-Cleaner (https://rtyley.github.io/bfg-repo-cleaner/):
java -jar bfg.jar --delete-files <path_to_large_file> <repository_name>.git
The the large files can be identified eg. by:
git rev-list --objects --all | sort -k 2 -n | tail -n 10
--- re-building ‘vignette_campp2.Rmd’ using rmarkdown
Quitting from lines 261-262 (vignette_campp2.Rmd)
Error: processing vignette 'vignette_campp2.Rmd' failed with diagnostics:
package or namespace load failed for 'CAMPP2':
object 'predict' is not exported by 'namespace:randomForest'
--- failed re-building ‘vignette_campp2.Rmd’
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.