AlexsLemonade / AlexsLemonade/OpenScPCA-analysis

Add wrapper function for running internal references

Open
#1,130 0 comments 0 reactions 0 assignees View on GitHub
analysis
Dominant language
HTML
Stars
16
Forks
24
Avg merge
3d 5h
Merged PRs (30d)
4

Description

### If you are filing this issue based on a specific GitHub Discussion, please link to the relevant Discussion.

Part of #1080

### Describe the goals of the changes to the analysis module.

In https://github.com/AlexsLemonade/OpenScPCA-analysis/pull/1126, a function was added to the `infercnv-consensus-cell-type` module to prepare internal normal references, i.e. a normal reference that uses cells only from the given library. The function was implemented to be specific to ewings data from SCPCP000015.

In the future if we want to run other projects with internal references, we will need to update this code to include project-specific functions and an overall wrapper function to call from the inferCNV script.

---

Here are the relevant sections of code with `TODO`s:

https://github.com/AlexsLemonade/OpenScPCA-analysis/blob/e540d8234f34a8e85a9ad8d4ecd8275f15443169/analyses/infercnv-consensus-cell-type/scripts/01_run-infercnv.R#L240-L250

https://github.com/AlexsLemonade/OpenScPCA-analysis/blob/e540d8234f34a8e85a9ad8d4ecd8275f15443169/analyses/infercnv-consensus-cell-type/scripts/utils.R#L23-L24

https://github.com/AlexsLemonade/OpenScPCA-analysis/blob/e540d8234f34a8e85a9ad8d4ecd8275f15443169/analyses/infercnv-consensus-cell-type/scripts/utils.R#L38-L47

### What will your pull request contain?

Re-organized functions

### Will you require additional software beyond what is already in the analysis module?

No, only renv

### Will you require different computational resources beyond what the analysis module already uses?

No

### If known, when do you expect to file the pull request?

This PR will be filed as needed.

Contributor guide

Open the contributing guide

Research direction

Start by reading the TODO sections in analyses/infercnv-consensus-cell-type/scripts/01_run-infercnv.R and scripts/utils.R, then inspect the existing internal-reference function added for the ewings data. Reorganize the project-specific functions and add the wrapper callable from the inferCNV script, with internal references supported without additional software beyond renv.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
bioinformatics
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.