stemangiola / hpcell Goto Github PK
View Code? Open in Web Editor NEWMassively scalable R-native HPC-compatible pipeline for single-cell data analysis
Massively scalable R-native HPC-compatible pipeline for single-cell data analysis
Clone the repository
git clone [email protected]:susansjy22/HPCell.git
replace this
remote::install_github("[email protected]:susansjy22/HPCell.git")
with
remote::install_github("stemangiola/HPCell")
# Load reference data
input_reference_path <- "reference_azimuth.rds"
reference_url<- "https://atlas.fredhutch.org/data/nygc/multimodal/pbmc_multimodal.h5seurat"
download.file(reference_url, input_reference_path)
LoadH5Seurat(input_reference_path) |> saveRDS(input_reference_path)
"./"
, because this is already the default, you can drop the store variablestore <- "~/HPCell/pipeline_store"
preprocessed_seurat = run_targets_pipeline(
input_data = file_path,
tissue = tissue,
filter_input = TRUE,
RNA_assay_name
)
It is better to split the pseudobulk generation be sample, that can be run in parallel, and leave an overall step just for the merging.
Here there are some additional explanation regarding the last branches I created:
renv-optional: in this branch the library rent was deactivated (renv::deactivate
). This was done due to the many problems performing the Jascap pipeline for the Jian/Ajith project. The following branches were created also based on the rent::deactivate mode.
Jian_no azimuth_annotation: Jian project contains mouse-data, thus the reference azimuth was not useful. Even though we left the other human annotations in, the azimuth was giving problem, thus, the command lines containing it were momentarily removed. In this branch, something went wrong, and can therefore be deleted! The correct branch without the azimuth reference is the below one: Jian_2.
Jian_2: the commands in this branch works without stopping until the pre-processing script. The next step is the pseudobulk scripts, and there are still some bugs to correct.
This branch doesn't include renv() library, as mentioned above it was deactivated, and doesn't contain any azimuth reference.
Next steps are:
this line
Line 9 in 27adf7c
has a default value of input_reference_path
, while it should have value NULL
.
This is because input_reference_path
does not exist anywhere.
@susansjy22 , here @aodainic7 will be able to provide some code.
Rather than only testing if a function has worked and is a S3 object, each test should test specific properties of the output of a function. For example
3
column, if seurat_reference is set2
column, if seurat_reference is NOT setSome alternatives are
Take as example dplyr
https://github.com/tidyverse/dplyr/blob/main/R/arrange.R
You don't have to be that comprehensive, just add the main components
Propose and build reporting for each analysis step
https://docs.ropensci.org/tarchetypes/reference/tar_render.html
Some comments that may be useful in the instructions:
metadata.rds
is available: create a data frame with 2 columns (sample | batch) with the samples matching the sample name in the input file. Set Batch as Sample_name.sample | batch |
---|---|
spleen | spleen |
liver | liver |
module load R/4.2.1
before calling the renv1
or Rstudio โฆ
functionA 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.