Skip to content

Commit

Permalink
Removed NA LR pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
olapuentesantana committed May 16, 2023
1 parent d960729 commit 0291eca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vignettes/easier_user_manual.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,12 @@ More detailed information on how these networks were obtained can be found in th
```{r, eval=TRUE}
lrpair_weights <- compute_LR_pairs(RNA_tpm = RNA_tpm,
cancer_type = "pancan")
# Remove LR which are not found (NA's)
na_lrpairs <- names(lrpair_weights)[is.na(apply(lrpair_weights, 2, sum))]
lrpair_weights <- lrpair_weights[, -which(colnames(lrpair_weights) %in% na_lrpairs)]
head(lrpair_weights[,1:5])
```

Via `cancer_type`, a cancer-specific ligand-receptor pairs network can be chosen. With `cancer_type` set to `pancan`, a pan-cancer network will be used and this is based on the union of all ligand-receptor pairs present across the 18 cancer-specific networks.
Expand Down

0 comments on commit 0291eca

Please sign in to comment.