Skip to content

Commit

Permalink
rename AG
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceSommer committed Jan 27, 2021
1 parent 432759c commit ad3d0ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ load('./design_AG/agdata.rda')
## load sample/matched_data
load('./design_AG/dat_matched_smoke_ag.RData')

## load W matrix for randomization test
load("./design_AG/W_paired_smoke_ag.Rdata")

############################
# create a phyloseq object #
############################
Expand Down Expand Up @@ -62,9 +59,13 @@ taxa_var_ait <- apply(unname(otu_table(ps_ait)), 1, function(x) var(x))

plot(taxa_prev, taxa_var_ait)

condition <- taxa_var_ait < 3 & taxa_prev > .4
condition <- taxa_var_ait < 3 & taxa_prev > .5
condition_ref <- which(condition)

# check if at least one reference taxa is in all samples
reference_values <- apply(otu_table(ps)[condition_ref,], 2, sum)
table(reference_values)[1:3]

plot(taxa_prev, taxa_var_ait, col = factor(condition))

# save(condition_ref, file = "./4_differential_abundance_AG/selected_ref_genus_AG.RData")
Expand Down

0 comments on commit ad3d0ff

Please sign in to comment.