-
Notifications
You must be signed in to change notification settings - Fork 11
Coding-agent fixes to get RcisTarget passing Bioc build/check/test #44
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
base: master
Are you sure you want to change the base?
Changes from all commits
0a488a4
7cd507d
f8d92c2
79155b2
c98d379
91abbf5
917eecb
55e5cdc
10f9d52
4332d6f
ed8d9cc
e0c27f9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: R-CMD-check-bioc | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - master | ||
| - devel | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| run-check: | ||
| uses: bioc-package-rescue/workflows/.github/workflows/check-bioc.yml@main |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,38 +1,33 @@ | ||
| # RcisTarget workflow for advanced users: | ||
| # Running the workflow steps individually | ||
|
|
||
| \dontrun{ | ||
|
|
||
| ################################################## | ||
| #### Load your gene sets | ||
| # As example, the package includes an Hypoxia gene set: | ||
| txtFile <- paste(file.path(system.file('examples', package='RcisTarget')), | ||
| "hypoxiaGeneSet.txt", sep="/") | ||
| geneLists <- list(hypoxia=read.table(txtFile, stringsAsFactors=FALSE)[,1]) | ||
|
|
||
| #### Load databases | ||
| ## Motif rankings: Select according to organism and distance around TSS | ||
| ## (See the vignette for URLs to download) | ||
| motifRankings <- importRankings("~/databases/hg38_10kbp_up_10kbp_down_full_tx_v10_clust.genes_vs_motifs.rankings.feather") | ||
|
|
||
| ## Motif - TF annotation: | ||
| data("motifAnnotations_hgnc") # human TFs (for motif collection 10) | ||
| ################################################## | ||
|
|
||
| #### Run RcisTarget | ||
| # Since the suggested database package is in Suggests, | ||
| # we guard the example to avoid hard failures if it is not installed: | ||
| if (requireNamespace("RcisTarget.hg19.motifDBs.cisbpOnly.500bp", quietly = TRUE)) { | ||
|
|
||
| # Load rankings database | ||
| data(hg19_500bpUpstream_motifRanking_cispbOnly, package="RcisTarget.hg19.motifDBs.cisbpOnly.500bp") | ||
| motifRankings <- hg19_500bpUpstream_motifRanking_cispbOnly | ||
|
|
||
| # Step 1. Calculate AUC | ||
| motifs_AUC <- calcAUC(geneLists, motifRankings) | ||
| # Load motif annotations | ||
| data(motifAnnotations_hgnc_v9) # human TFs (for motif collection 9) | ||
| motifAnnotation <- motifAnnotations_hgnc_v9 | ||
|
|
||
| # Step 2. Select significant motifs, add TF annotation & format as table | ||
| motifEnrichmentTable <- addMotifAnnotation(motifs_AUC, | ||
| motifAnnot=motifAnnotations) | ||
| # Step 1. Calculate AUC | ||
| motifs_AUC <- calcAUC(geneLists, motifRankings) | ||
|
|
||
| # Step 3 (optional). Identify genes that have the motif significantly enriched | ||
| # (i.e. genes from the gene set in the top of the ranking) | ||
| motifEnrichmentTable_wGenes <- addSignificantGenes(motifEnrichmentTable, | ||
| geneSets=geneLists, | ||
| rankings=motifRankings, | ||
| method="aprox") | ||
| # Step 2. Select significant motifs, add TF annotation & format as table | ||
| motifEnrichmentTable <- addMotifAnnotation(motifs_AUC, | ||
| motifAnnot=motifAnnotation) | ||
|
|
||
| # Step 3 (optional). Identify genes that have the motif significantly enriched | ||
| motifEnrichmentTable_wGenes <- addSignificantGenes(motifEnrichmentTable, | ||
| geneSets=geneLists, | ||
| rankings=motifRankings, | ||
| method="aprox") | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.