Skip to content

Commit

Permalink
Rename function: add_to_params (v0.0.4 or more)
Browse files Browse the repository at this point in the history
  • Loading branch information
himoto committed Oct 1, 2021
1 parent f7cd810 commit 7e095ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ R:
$ R
```

- Read `integration.R`
- Read `integration.R`

```R
source("integration.R")
```

- Run `outputClinical()` or `outputSubtype()`
- Run `outputClinical()` or `outputSubtype()`
```R
outputClinical("BRCA")
Expand All @@ -75,9 +75,9 @@ R:
```R
patientSelection(type = subtype,
ID = "patient",
pathologic_stage %in% c("Stage_I", "Stage_II"),
age_at_initial_pathologic_diagnosis < 60)
ID = "patient",
pathologic_stage %in% c("Stage_I", "Stage_II"),
age_at_initial_pathologic_diagnosis < 60)
```
### Download TCGA gene expression data (HTSeq-Counts)
Expand All @@ -86,8 +86,8 @@ R:
```R
downloadTCGA(cancertype = "BRCA",
sampletype = c("01", "06"),
outputresult = FALSE)
sampletype = c("01", "06"),
outputresult = FALSE)
```
Output: Number of selected samples
Expand All @@ -98,7 +98,7 @@ R:
```R
downloadCCLE(cancertype = "BREAST",
outputresult = FALSE)
outputresult = FALSE)
```
Output: Number of selected samples
Expand Down Expand Up @@ -175,7 +175,7 @@ R:
}
weighting_factors = WeightingFactors(model, gene_expression)
weighting_factors.add()
weighting_factors.add_to_params()
weighting_factors.set_search_bounds()
```
Expand Down Expand Up @@ -312,10 +312,10 @@ R:
breast_cancer_models = []
path_to_models = os.path.join("models", "breast")
for model in os.listdir(path_to_models):
if os.path.isdir(os.path.join(path_to_models, model)) and (
model.startswith("TCGA_") or model.endswith("_BREAST")
):
breast_cancer_models.append(model)
if os.path.isdir(os.path.join(path_to_models, model)) and (
model.startswith("TCGA_") or model.endswith("_BREAST")
):
breast_cancer_models.append(model)
# Set optimized parameters
for model in breast_cancer_models:
shutil.copytree(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_patient_specific_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_model_construction():
}

weighting_factors = WeightingFactors(model, gene_expression)
weighting_factors.add()
weighting_factors.add_to_params()
weighting_factors.set_search_bounds()
# Edit observable.py, update normalization
with open(
Expand Down

0 comments on commit 7e095ed

Please sign in to comment.