Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
garridoo committed Mar 11, 2021
1 parent 0cb634b commit e8f72f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions scripts/IPL.R
Expand Up @@ -18,6 +18,12 @@ otu_table_norm_At_NC <- apply(otu_table_At_NC, 2, function(x) x/sum(x))
otu_table_norm_Cr_NC <- apply(otu_table_Cr_NC, 2, function(x) x/sum(x))
otu_table_norm_Cr_MC <- apply(otu_table_Cr_MC, 2, function(x) x/sum(x))

# remove OTUs with zero counts

idx <- rowSums(otu_table_CrIPL) > 0
otu_table_CrIPL <- otu_table_CrIPL[idx, ]
otu_table_norm_CrIPL <- otu_table_norm_CrIPL[idx, ]

# remove wells without a insufficient number of reads

min_reads <- 100
Expand Down
2 changes: 1 addition & 1 deletion scripts/IPL_recovery_rates.R
Expand Up @@ -94,7 +94,7 @@ recovery <- function(otu_table_norm_IPL, otu_table_norm_NC, host_IPL, host_NC, t

ggsave(paste(figures.dir, "recovery_cumsum_", host_IPL, host_NC, ".pdf", sep=""), p,
width=width_rec_barplot, height=height_rec_barplot)
print(df_top$cumsum[100])

}

cat("\nRecovery rates for CrIPL respect to At roots:\n\n")
Expand Down

0 comments on commit e8f72f7

Please sign in to comment.