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
@susansjy22 , here @aodainic7 will be able to provide some code.
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 …
functionPropose and build reporting for each analysis step
https://docs.ropensci.org/tarchetypes/reference/tar_render.html
@susansjy22 sometime, we don't know whether the date has been filtered so we can set up the default filter argument to NULL, and you can test within the filter function if the minimum RNA count per cell is X and assume that the data has been filtered already.
That X threshold can be found in the Surat tutorial
e.g.
nFeature_RNA > 200
# This is RNa feature
from https://satijalab.org/seurat/archive/v3.0/pbmc3k_tutorial.html
and
lower = 100,
. # This is RNa counts
from https://rdrr.io/github/MarioniLab/DropletUtils/man/emptyDrops.html
This will be done within the function of filtering, empty droplets, so some samples could have been filtered, and some samples could have not. The reports will show as they do know how many droplets wear filtered out in the user will be able to tell.
@susansjy22 as we discussed at the meeting, we should start the pipeline from target_file (with the pots provided by the user) so it will track input files rather than duplicating them.
The user will likely use these input formatting
dir(MY_DIRECTORY) |>
execute_pipeline()
Hopefully, with this strategy, if the directory MY_DIRECTORY
gets updated the pipeline wheel run just for the new files.
Hello @susansjy22 ,
Could you please add the documentation for each pipeline step to the README at GitHub?
The document should include the methods used and snippets of the cord for how we use those methods with which parameters. The goal is for Aabeginner to understand what we are doing and why we are doing it.
this line
has a default value of input_reference_path
, while it should have value NULL
.
This is because input_reference_path
does not exist anywhere.
This task involves creating a function that accepts a Surat object from one sample, and create a micro bulk version of that data. the function also takes a perimeter that indicates the level of summarisation, for example, the total amount of cells that we are aiming for.
Some investigation on the best micro bulk tool from our should be done.
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
)
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:
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.
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
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 set@susansjy22 for the reasons we have discussed at the meeting let's overwrite the pipeline scraped every time we call the function so the bugging option can work properly.
We do not need to touch the store, just the R target script
Some alternatives are
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.