Skip to content

Commit

Permalink
hardcode biomart version
Browse files Browse the repository at this point in the history
  • Loading branch information
alexthiery committed May 12, 2023
1 parent 46cf28d commit 46320e3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
5 changes: 4 additions & 1 deletion NF-downstream_analysis/bin/lmx1a_dea.R
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ graphics.off()
# Get biomart GO annotations for TFs
#########

ensembl = useMart("ensembl",dataset="ggallus_gene_ensembl")
ensembl <- useEnsembl(biomart = 'ensembl',
dataset = 'ggallus_gene_ensembl',
version = 104)

TF_subset <- getBM(attributes=c("ensembl_gene_id", "go_id", "name_1006", "namespace_1003"),
filters = 'ensembl_gene_id',
values = rownames(res_sub),
Expand Down
8 changes: 5 additions & 3 deletions NF-downstream_analysis/bin/sox8_dea.R
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,15 @@ pheatmap(assay(rld)[rownames(res_sub),], color = colorRampPalette(c("#191d73", "
main = "Sox8OE vs Control differentially expressed genes (log2FC > 1.5 and padj (FDR) < 0.05)", border_color = NA, cellheight = 1.5, cellwidth = 75)
graphics.off()


#########
# Get biomart GO annotations for TFs
#########

ensembl = useMart("ensembl",dataset="ggallus_gene_ensembl")
# Get biomart ids for specific genome version
ensembl <- useEnsembl(biomart = 'ensembl',
dataset = 'ggallus_gene_ensembl',
version = 104)

TF_subset <- getBM(attributes=c("ensembl_gene_id", "go_id", "name_1006", "namespace_1003"),
filters = 'ensembl_gene_id',
values = rownames(res_sub),
Expand All @@ -293,7 +296,6 @@ TF_subset <- TF_subset$ensembl_gene_id[TF_subset$go_id %in% c('GO:0003700', 'GO:

res_sub_TF <- res_sub[rownames(res_sub) %in% TF_subset,]


##############################################################
## Save CSV for differentially expressed transcription factors
##############################################################
Expand Down
5 changes: 4 additions & 1 deletion docs/_downstream/lmx1a_downstream.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,10 @@ Subset differentially expressed transcription factors based on GO terms ('GO:000

```R
# Get biomart GO annotations for TFs
ensembl = useMart("ensembl",dataset="ggallus_gene_ensembl")
ensembl <- useEnsembl(biomart = 'ensembl',
dataset = 'ggallus_gene_ensembl',
version = 104)

TF_subset <- getBM(attributes=c("ensembl_gene_id", "go_id", "name_1006", "namespace_1003"),
filters = 'ensembl_gene_id',
values = rownames(res_sub),
Expand Down
5 changes: 4 additions & 1 deletion docs/_downstream/sox8_downstream.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,10 @@ Subset differentially expressed transcription factors based on GO terms ('GO:000

```R
# Get biomart GO annotations for TFs
ensembl = useMart("ensembl",dataset="ggallus_gene_ensembl")
ensembl <- useEnsembl(biomart = 'ensembl',
dataset = 'ggallus_gene_ensembl',
version = 104)

TF_subset <- getBM(attributes=c("ensembl_gene_id", "go_id", "name_1006", "namespace_1003"),
filters = 'ensembl_gene_id',
values = rownames(res_sub),
Expand Down

0 comments on commit 46320e3

Please sign in to comment.