Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts to run copykat and infercnv for a subselection of Wilms tumor from SCPCP000006 #801

Merged
merged 25 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
88eb2ce
CNV request
maud-p Oct 8, 2024
6ba1fbb
CNV request
maud-p Oct 8, 2024
54547f4
CNV request
maud-p Oct 8, 2024
3c36063
Update Dockerfile
maud-p Oct 9, 2024
ebb97f6
Update run_cell-type-wilms-tumor-06.yml
maud-p Oct 9, 2024
c3dbdcb
Update analyses/cell-type-wilms-tumor-06/Dockerfile
maud-p Oct 9, 2024
f505a08
Update analyses/cell-type-wilms-tumor-06/results/README.md
maud-p Oct 9, 2024
8c04115
Update analyses/cell-type-wilms-tumor-06/results/README.md
maud-p Oct 9, 2024
51d2790
Update analyses/cell-type-wilms-tumor-06/scripts/05_copyKAT.R
maud-p Oct 9, 2024
089e02b
Update analyses/cell-type-wilms-tumor-06/scripts/06_infercnv.R
maud-p Oct 9, 2024
03dae4f
Update analyses/cell-type-wilms-tumor-06/scripts/06_infercnv.R
maud-p Oct 9, 2024
b17bb0c
Update analyses/cell-type-wilms-tumor-06/scripts/06_infercnv.R
maud-p Oct 9, 2024
1a1d831
Update analyses/cell-type-wilms-tumor-06/scripts/06_infercnv.R
maud-p Oct 9, 2024
646e72a
Update analyses/cell-type-wilms-tumor-06/scripts/06_infercnv.R
maud-p Oct 9, 2024
ffb400f
changes to PR#801
maud-p Oct 10, 2024
8e58fc4
Merge pull request #5 from maud-p/working_branch_05
maud-p Oct 10, 2024
596fdb9
changes to PR801
maud-p Oct 12, 2024
7cc0e03
Merge pull request #6 from maud-p/working_branch_05
maud-p Oct 12, 2024
e08be79
changes to PR#801
maud-p Oct 14, 2024
771acdb
Merge pull request #7 from maud-p/working_branch_05
maud-p Oct 14, 2024
eaebdbc
Update analyses/cell-type-wilms-tumor-06/scripts/06a_build-genepositi…
maud-p Oct 14, 2024
1cc44a1
changes to PR#801
maud-p Oct 15, 2024
3ce6bab
Merge pull request #8 from maud-p/working_branch_05
maud-p Oct 15, 2024
7f9707a
Update analyses/cell-type-wilms-tumor-06/scripts/README.md
sjspielman Oct 15, 2024
c99e1d4
Merge branch 'main' into 05_CopyKAT
sjspielman Oct 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/run_cell-type-wilms-tumor-06.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:

- name: Install system dependencies
run: |
sudo apt-get install -y libcurl4-openssl-dev libhdf5-dev libglpk40
sudo apt-get install -y libcurl4-openssl-dev libhdf5-dev libglpk40 jags

- name: Set up renv
uses: r-lib/actions/setup-renv@v2
Expand Down
7 changes: 7 additions & 0 deletions analyses/cell-type-wilms-tumor-06/00_run_workflow.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ module_base <- file.path(root_dir, "analyses", "cell-type-wilms-tumor-06")
# Download and create the fetal kidney reference (Stewart et al) ----------
system(command = glue::glue("Rscript ", file.path(module_base,"scripts", "download-and-create-fetal-kidney-ref.R")))

# We build the gene position file reference for infercnv ------------------------
system(command = glue::glue("Rscript ", file.path(module_base, "scripts", "06a_build-geneposition.R")))

# Characterize the two fetal references -----------------------------------------

Expand Down Expand Up @@ -92,10 +94,15 @@ for (sample_id in metadata$scpca_sample_id) {
}

if (!running_ci) {
# Run notebook template to explore label transfer and clustering for all samples at once
rmarkdown::render(input = file.path(notebook_output_dir, "04_annotation_Across_Samples_exploration.Rmd"),
output_format = "html_document",
output_file = "04_annotation_Across_Samples_exploration.html",
output_dir = notebook_output_dir)

# Run infercnv and copykat for a selection of samples
system(command = glue::glue("Rscript ", file.path(module_base,"scripts", "run-cnv.R")))

}


Expand Down
5 changes: 4 additions & 1 deletion analyses/cell-type-wilms-tumor-06/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ ENV OPENSCPCA_DOCKER=TRUE
ENV RENV_CONFIG_CACHE_ENABLED=FALSE

# Install renv
RUN R --no-echo --no-restore --no-save -e "install.packages('renv')"
RUN Rscript -e 'install.packages("renv")'

# Install Rhtslib first to prevent package installation errors
RUN Rscript -e 'BiocManager::install("Rhtslib")'

# Copy the renv.lock file from the host environment to the image
COPY renv.lock renv.lock
Expand Down
Loading
Loading