In [2]:
%load_ext rpy2.ipython
In [8]:
%%R
physeqDir = '/var/seq_data/fullCyc/MiSeq_16SrRNA/515f-806r/lib1-7/phyloseq/'
physeq_bulk_core = 'bulk-core'
physeq_SIP_core = 'SIP-core_unk'
In [4]:
%%R
library(dplyr)
library(tidyr)
library(ggplot2)
library(phyloseq)
In [9]:
%%R
F = file.path(physeqDir, physeq_SIP_core)
physeq.SIP = readRDS(F)
physeq.SIP.m = physeq.SIP %>% sample_data
physeq.SIP
In [5]:
%%R
F = file.path(physeqDir, physeq_bulk_core)
physeq.bulk = readRDS(F)
physeq.bulk.m = physeq.bulk %>% sample_data
physeq.bulk
In [7]:
%%R
# parsing out to just 12C-Con gradients
physeq.bulk.f = prune_samples((physeq.bulk.m$Exp_type == 'microcosm_bulk') |
(physeq.bulk.m$Exp_type == 'SIP' &
physeq.bulk.m$Substrate == '12C-Con'),
physeq) %>%
filter_taxa(function(x) sum(x) > 0, TRUE)
physeq.bulk.f.m = physeq.bulk.f %>% sample_data %>% as.matrix %>% as.data.frame
physeq.bulk.f
In [ ]: