Last updated: 2021-10-08
Checks: 6 1
Knit directory: Bonfini_eLife_2021/
This reproducible R Markdown analysis was created with workflowr (version 1.6.2). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.
Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.
Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.
The command set.seed(20211008)
was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.
Great job! Recording the operating system, R version, and package versions is critical for reproducibility.
Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.
Using absolute paths to the files within your workflowr project makes it difficult for you and others to run your code on a different machine. Change the absolute path(s) below to the suggested relative path(s) to make your code more reproducible.
absolute | relative |
---|---|
F:/Dropbox/Github/Bonfini_eLife_2021/data/ | data |
F:/Dropbox/Github/Bonfini_eLife_2021/data/1A.jpg | data/1A.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/1C.jpg | data/1C.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/1D.jpg | data/1D.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_1.tiff | data/Figures/Figure_1.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_1S1.tiff | data/Figures/Figure_1S1.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/1- S2A.jpg | data/1- S2A.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Plot_Fig1S2B.jpeg | data/Plot_Fig1S2B.jpeg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_1S2.tiff | data/Figures/Figure_1S2.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/1 - S3.jpg | data/1 - S3.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_1S3.tiff | data/Figures/Figure_1S3.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Plot_Fig2A.jpeg | data/Plot_Fig2A.jpeg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Nutri_geo_graph.jpg | data/Nutri_geo_graph.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_2.tiff | data/Figures/Figure_2.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Plot_Fig2-S1B.jpeg | data/Plot_Fig2-S1B.jpeg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_2S1.tiff | data/Figures/Figure_2S1.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_2S2.tiff | data/Figures/Figure_2S2.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/3A.jpg | data/3A.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/3B.jpg | data/3B.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/3E.jpg | data/3E.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/3F.jpg | data/3F.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_3.tiff | data/Figures/Figure_3.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/3 - S1B.jpg | data/3 - S1B.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/3 - S1D.jpg | data/3 - S1D.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/3 - S1E.jpg | data/3 - S1E.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/3 - S1F.jpg | data/3 - S1F.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/3 - S1G.jpg | data/3 - S1G.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_3S1.tiff | data/Figures/Figure_3S1.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/4E.jpg | data/4E.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/4F.jpg | data/4F.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/4G.jpg | data/4G.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/4H.jpg | data/4H.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/4I.jpg | data/4I.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/4J.jpg | data/4J.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_4.tiff | data/Figures/Figure_4.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/4 - S1B.jpg | data/4 - S1B.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Plot_Fig4-S1F.jpeg | data/Plot_Fig4-S1F.jpeg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_4S1.tiff | data/Figures/Figure_4S1.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/4 - S2A.jpg | data/4 - S2A.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_4S2.tiff | data/Figures/Figure_4S2.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5C.jpg | data/5C.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5F.jpg | data/5F.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5F | data/5F |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5G.jpg | data/5G.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5G | data/5G |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5I.jpg | data/5I.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5I | data/5I |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5J.jpg | data/5J.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5J | data/5J |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_5.tiff | data/Figures/Figure_5.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_5S1.tiff | data/Figures/Figure_5S1.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2A.jpg | data/5 - S2A.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2A | data/5 - S2A |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2B.jpg | data/5 - S2B.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2B | data/5 - S2B |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2C.jpg | data/5 - S2C.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2C | data/5 - S2C |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2D.jpg | data/5 - S2D.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2D | data/5 - S2D |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_5S2.tiff | data/Figures/Figure_5S2.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/6B.jpg | data/6B.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/6C.jpg | data/6C.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/6H.jpg | data/6H.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/6I.jpg | data/6I.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_6.tiff | data/Figures/Figure_6.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/6 - S1B.jpg | data/6 - S1B.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/6 - S1C.jpg | data/6 - S1C.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/6 - S1D.jpg | data/6 - S1D.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/6 - S1E.jpg | data/6 - S1E.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_6S1.tiff | data/Figures/Figure_6S1.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/7B.jpg | data/7B.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/7C.jpg | data/7C.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/7E.jpg | data/7E.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/7F.jpg | data/7F.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/7I.jpg | data/7I.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_7.tiff | data/Figures/Figure_7.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_7S1.tiff | data/Figures/Figure_7S1.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/7- S2A.jpg | data/7- S2A.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/7- S2A1.jpg | data/7- S2A1.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/7- S2B.jpg | data/7- S2B.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/7- S2B1.jpg | data/7- S2B1.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_7S2.tiff | data/Figures/Figure_7S2.tiff |
F:/Dropbox/Github/Bonfini_eLife_2021/data/7 - S3A.jpg | data/7 - S3A.jpg |
F:/Dropbox/Github/Bonfini_eLife_2021/data/Figures/Figure_7S3.tiff | data/Figures/Figure_7S3.tiff |
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
The results in this page were generated with repository version 8fa9317. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.
Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish
or wflow_git_commit
). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:
Ignored files:
Ignored: analysis/Bonfini_eLife_2021.html
Ignored: analysis/site_libs/
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.
These are the previous versions of the repository in which changes were made to the R Markdown (analysis/Bonfini_eLife_2021.Rmd
) and HTML (docs/Bonfini_eLife_2021.html
) files. If you’ve configured a remote Git repository (see ?wflow_git_remote
), click on the hyperlinks in the table below to view the files as they were in that past version.
File | Version | Author | Date | Message |
---|---|---|---|---|
Rmd | 8fa9317 | dduneau | 2021-10-08 | Bonfini eLife 2021 project |
library(devtools)
library(reshape2)
library(lattice)
library(MASS)
library(car)
library(lmtest)
library(ggplot2)
library(survival)
library(plotrix)
library(grid)
library(gridExtra)
library(agricolae)
library(nparLD)
library(psych)
library(doBy)
library(xlsxjars)
library(xlsx)
library(dplyr)
library(stringr)
library(scales)
library(tidyr)
library(phia)
library(data.table)
library(spaMM)
library(lme4)
library(fields)
library(EBImage)
library(gplots)
library(RColorBrewer)
library(gridGraphics)
library(fields)
library(multcomp)
library(ggrepel)
library(metR)
library(forcats)
library(ggh4x)#remotes::install_github("teunbrand/ggh4x")
library(GenomicRanges)
library(DESeq2)
library(RColorBrewer)
library(coxme)
library(ggplotify)
#library(base2grob)
library(knitr)
library(kableExtra)
library(plotfunctions)
library(ggsignif)
#Function to include factor that are NOT in a list
'%!in%' = function(x,y)!('%in%'(x,y))
#Function to Grab graph and display it as a ggplot graph
= function(){
grab_grob grid.echo()
grid.grab()
}
#Function to calculate standard deviaion
= function(x) sqrt(var(x,na.rm=T))
sd
#Function to calculate standard error
= function(x) sqrt(var(x,na.rm=T)/length(x))
se
# Function to graph survival with ggplot and displaying the checkpoints
<- function(x, times){
ggplotprep2 #spreading the surfit dataframe into dataframe per day.
<- data.frame(condition=rep(names(x$strata), x$strata), time=x$time, survival=x$surv, upper=x$upper, lower=x$lower)
d # function to add time point 0
<- function(s) rbind(c(condition=s, time=0, survival=1, upper=1, lower=1), d[d$condition==s, ], deparse.level = 0)
fillup0
# function to determine the missing time points
<- function(x, time) {
indexes if(x%in%time) return(x)
return(time[which.min(abs(time[time<x]-x))])
}#Function to complete the missing time points
<- function(s) {
fillup <- d[d$condition==s, ]
d.temp <- as.numeric(d.temp$time)
time <- sapply(times, indexes, time=time)
id <- d.temp[match(id, time), ]
d.temp $time <- times
d.tempreturn(d.temp)
}
if(times[1]==0) d <- do.call("rbind", sapply(names(x$strata), fillup0, simplify=F))
<- do.call("rbind", sapply(names(x$strata), fillup, simplify=F))
d <- function(name) unlist(lapply(strsplit(as.character(name), split="="), function(x) x[2]))
clean.name <- data.frame(Condition=clean.name(d$condition), Time=as.numeric(d$time), Survival=as.numeric(d$survival), upper=as.numeric(d$upper), lower=as.numeric(d$lower))
d return(d)
}
#function to select colours for GF-style plot (function mapping colors)
<- function(x, pal){
seeMahPal round(x)]
pal[
}
#a function to take x,y,z
#and return a GF-style plot with points per diet
<- function(x,y,z,alf,...){
geomPlotta <- data.frame(x=x, y=y, z=z)
dat <- aggregate(z ~ x * y, dat, mean)
d.means <- Tps(cbind(dat$x, dat$y), dat$z, lambda = 0)
surf.te
<- data.frame(z=d.means$z, rank=rank(d.means$z), rnd=round(d.means$z), rankRnd=rank(round(d.means$z)))
experiColours <- colorRampPalette(c("darkblue", "blue", "turquoise", "yellow", "orange", "red", "darkred"))(max(experiColours$rank)) #Decide colors
mahPal
$colour <- seeMahPal(x=d.means$z, pal=mahPal)
d.means
surface(predictSurface(surf.te, extrap=F), col=alpha(mahPal, alf), ...)
points(d.means$x, d.means$y, bg=seeMahPal(x=experiColours$rank, pal=mahPal), col="white", pch=21, cex=1, ...)
}
= function(text, num_char) {
left substr(text, 1, num_char)
}
= function(text, start_num, num_char) {
mid substr(text, start_num, start_num + num_char - 1)
}
= function(text, num_char) {
right substr(text, nchar(text) - (num_char-1), nchar(text))
}
= 6
SuperSmallfont= 8
xSmallfont = 10
Smallfont= 12
Mediumfont= 14
Largefont= 16
verylargefont = 0.7
pointsize=0.35
linesize= 1.5
meansize =c(0,0,0,0)
Margin
= 14
fontsizeaxes = 10
fontsizeaxes2
= c("#FFB4B4", "#C3E6FC")
palette_diet_2 = c("#f4ead0","#2d5ad7","gold")
palette_component_3 = c("yellow","green","red","white","magenta","skyblue", "blue", "deeppink", "gold")
palette_mean = c("#BDE6BD", "#C3E6FC", "#FFE5E5", "#E5E5FF") #Green eclosion, HY, HYtoHS, HStoHY
cbbPalette_4 = c("#FFB4B4","#E5E5FF")
cbbHS_HStoHY = c("#C3E6FC","#FFE5E5") cbbHY_HYtoHS
Warning: The above code chunk cached its results, but it won’t be re-run if previous chunks it depends on are updated. If you need to use caching, it is highly recommended to also set knitr::opts_chunk$set(autodep = TRUE)
at the top of the file (in a chunk that is not cached). Alternatively, you can customize the option dependson
for each individual chunk that is cached. Using either autodep
or dependson
will remove this warning. See the knitr cache options for more details.
= "F:/Dropbox/Github/Bonfini_eLife_2021/data/"
path.to.data
rm(d,path)
= list()
d = list()
path for(f in list.files(path=path.to.data,pattern="*.csv$",recursive=T,full.names=T)) {
= gsub(".*/(.*).csv","\\1",f)
nom cat(nom,"\n")
= gsub("(.*)/.*csv","\\1/",f)
path[[nom]] = read.table(f,header=T,sep=",")
d[[nom]] }
Warning: The above code chunk cached its results, but it won’t be re-run if previous chunks it depends on are updated. If you need to use caching, it is highly recommended to also set knitr::opts_chunk$set(autodep = TRUE)
at the top of the file (in a chunk that is not cached). Alternatively, you can customize the option dependson
for each individual chunk that is cached. Using either autodep
or dependson
will remove this warning. See the knitr cache options for more details.
= d[["DGRP_wolbachia_DFD"]]
wolb colnames(wolb) = c("dgrp_id", "wolbachia")
Error in `colnames<-`(`*tmp*`, value = c("dgrp_id", "wolbachia")): tentative de modification de 'colnames' sur un objet ayant moins de deux dimensions
$dgrp_id = gsub("line_", "DGRP-", wolb$dgrp_id)
wolb
= d[["weights"]]
weight = d[["stockDecode"]]
decode
$mg = weight$weightPerFlyGram * 1000
weight$diet = tolower(weight$diet)
weight$shortID = as.factor(as.character(decode$shortID))
decode$stockNumber = as.factor(as.character(weight$dgrp))
weight= merge(weight, decode, by.x="stockNumber", by.y="shortID")
weight colnames(weight) = tolower(colnames(weight))
= weight[,which(!colnames(weight) %in% c("stockNumber", "dgrp.x"))]
weight colnames(weight)[which(colnames(weight) == "dgrp.y")] = "dgrp"
$dgrp_number = substr(as.character(weight$dgrp), 1, 3)
weight$dgrpDiet = factor(paste(weight$dgrp_number, weight$diet, sep="_"))
weight
= d[["1F - G"]]
tab_GWAS_gut
#edit the data
table(complete.cases(tab_GWAS_gut))
Error in complete.cases(tab_GWAS_gut): aucune entrée n'a déterminé le nombre de cas
#str(tab_GWAS_gut)
= mutate_if(tab_GWAS_gut,is.integer,as.factor) tab_GWAS_gut
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
colnames(tab_GWAS_gut) = tolower(colnames(tab_GWAS_gut))
Error in `colnames<-`(`*tmp*`, value = character(0)): tentative de modification de 'colnames' sur un objet ayant moins de deux dimensions
= tab_GWAS_gut[,!colnames(tab_GWAS_gut) %in% c("notes", "image", "bloomington_id")]
tab_GWAS_gut
#remove the samples that subsequently proved crazy
= subset(tab_GWAS_gut, anteriorwidth < 1000) tab_GWAS_gut
Error in subset.default(tab_GWAS_gut, anteriorwidth < 1000): objet 'anteriorwidth' introuvable
= subset(tab_GWAS_gut, middlelength < 1500) tab_GWAS_gut
Error in subset.default(tab_GWAS_gut, middlelength < 1500): objet 'middlelength' introuvable
#remove lines that don't appear in both diets
= levels(tab_GWAS_gut$dgrp_number)
dgrpLines = droplevels(subset(tab_GWAS_gut, diet=="y")) yDat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'droplevels' : objet 'diet' introuvable
= droplevels(subset(tab_GWAS_gut, diet=="x")) xDat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'droplevels' : objet 'diet' introuvable
length(dgrpLines)
= dgrpLines[dgrpLines %in% yDat$dgrp_number] dgrpLines
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'table' lors de la s�lection d'une m�thode pour la fonction '%in%' : objet 'yDat' introuvable
#length(dgrpLines)
= dgrpLines[dgrpLines %in% xDat$dgrp_number] dgrpLines
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'table' lors de la s�lection d'une m�thode pour la fonction '%in%' : objet 'xDat' introuvable
#length(dgrpLines)
= droplevels(subset(tab_GWAS_gut, dgrp_number %in% dgrpLines)) tab_GWAS_gut
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'droplevels' : erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction '%in%' : objet 'dgrp_number' introuvable
= droplevels(subset(yDat, dgrp_number %in% dgrpLines)) yDat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'droplevels' : erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'yDat' introuvable
= droplevels(subset(xDat, dgrp_number %in% dgrpLines)) xDat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'droplevels' : erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'xDat' introuvable
#link up Wolbachia
= merge(tab_GWAS_gut, wolb, by="dgrp_id") tab_GWAS_gut
Error in fix.by(by.x, x): 'by' doit spécifier une colonne unique correcte
= mutate_if(tab_GWAS_gut,is.character,as.factor) tab_GWAS_gut
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
Warning: The above code chunk cached its results, but it won’t be re-run if previous chunks it depends on are updated. If you need to use caching, it is highly recommended to also set knitr::opts_chunk$set(autodep = TRUE)
at the top of the file (in a chunk that is not cached). Alternatively, you can customize the option dependson
for each individual chunk that is cached. Using either autodep
or dependson
will remove this warning. See the knitr cache options for more details.
Illustration of general dietary treatment design. Flies were reared on pre-experiment diet during development. At eclosion, flies were allocated to either HS or HY before midgut dissection at 5 days post eclosion.
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/1A.jpg") img1A
Error in transpose(y): object is NULL
= rasterGrob(img1A) gob_imageFig1A
Error in rasterGrob(img1A): objet 'img1A' introuvable
grid.draw(gob_imageFig1A)
Error in grid.draw(gob_imageFig1A): objet 'gob_imageFig1A' introuvable
Nutritional composition (proteins, carbohydrates, and lipids) of the two isocaloric diets used as a basis for this study as calories per liter of food: enriched in sugars (High sugar, HS) or yeast (High yeast, HY).
=d[["1B"]]
general_info_diet = mutate_if(general_info_diet,is.character,as.factor) general_info_diet
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
$Component <- factor(general_info_diet$Component, levels = c("Lipids","Proteins","Carbohydrates"))
general_info_diet= c("Lipids","Proteins","Carbohydrates")
Limits = c("Lipids","Proteins","Carbohydrates")
Labels
=
Plot_Fig1Bggplot(general_info_diet,aes(x=Diet,y=Calories.contributed))+
geom_bar(stat="identity",aes(fill=Component),color="black",width=.90)+
scale_fill_manual(limits=Limits,
values=palette_component_3,
labels=Labels)+
scale_x_discrete("",
limits=c("HS", "HY"),
breaks=c("HS", "HY"))+
scale_y_continuous("Calories/L of food",
breaks=c(seq(0,650,by=200),696))+
theme(axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black"),
axis.line.y = element_line(colour="black"),
axis.ticks.x = element_line(),
axis.ticks.y = element_line(),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
panel.grid = element_blank(),
plot.margin = unit(c(0,0,0,0), "cm"),
legend.direction = "vertical",
legend.box = "vertical",
legend.position = c(0.5,-0.3),
legend.key.height = unit(0.3, "cm"),
legend.key.width= unit(0.3, "cm"),
legend.margin=margin(t=-0.9, r=-0, b=-0, l=-0, unit="cm"),
legend.title = element_blank(),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=xSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size =Smallfont, colour = "black",face="italic"),
strip.text.y = element_text(size =Smallfont, colour = "black",face="italic"),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside",
panel.background = element_rect(fill="transparent"))+
guides(fill=guide_legend(ncol=1))
Error: `data` must be a data frame, or other object coercible by `fortify()`, not a list.
Plot_Fig1B
Error in eval(expr, envir, enclos): objet 'Plot_Fig1B' introuvable
Canton S (Cs) flies fed on HS diet (C, first image) have shorter midguts than flies on HY (D, Second image). Complete graphical annotation can be found in manuscript figures
Error in transpose(y): object is NULL
Error in rasterGrob(img1C): objet 'img1C' introuvable
Error in grid.draw(gob_imageFig1C): objet 'gob_imageFig1C' introuvable
Error in transpose(y): object is NULL
Error in rasterGrob(img1D): objet 'img1D' introuvable
Error in grid.draw(gob_imageFig1D): objet 'gob_imageFig1D' introuvable
Quantification of midgut length for HS vs HY at 5 days post eclosion.
=
Length_HSHY "1E - 1S1A"]]%>%
d[[mutate_at(vars(starts_with("Total")),~./1000)%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(Total_Length_mm=Total.L,
dplyrTotal_width_mm=Total.W,
Day_of_treatment=Day)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
Length_HSHYgroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'Length_HSHY' introuvable
<- summarise(group_by(Length_HSHY, Diet), mean = mean(Total_Length_mm, na.rm = TRUE)) Averages
Error in group_by(Length_HSHY, Diet): objet 'Length_HSHY' introuvable
###Stats
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = Length_HSHY) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Length_HSHY' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = Length_HSHY)
Error in is.data.frame(data): objet 'Length_HSHY' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = Length_HSHY) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Length_HSHY' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
#Now we make a tab with the results
= data.frame(Variable = as.character("HS vs HY"),
tab_stat Rep = nlevels(Length_HSHY$Repeat),
chi2_LR = format(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Length_HSHY' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>%
add_header_above(c("log(Total_Length_mm) ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
### Plot
= c("HS", "HY")
Limits = max(Length_HSHY$Total_Length_mm) z
Error in eval(expr, envir, enclos): objet 'Length_HSHY' introuvable
=
Plot_Fig1Eggplot(Length_HSHY, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/50) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 2.3, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(annotation = formatC(paste("p=",tab_stat$Pvalue), digits = 2), textsize = 3, y_position = 7.3, xmin = 1, xmax = 2, tip_length = c(0.02, 0.02), vjust = -0.2)+
scale_fill_manual(limits=Limits,
values=palette_diet_2)+
scale_x_discrete("",
limits=c("HS", "HY"),
labels=c("HS", "HY"))+
scale_y_continuous("Midgut length (mm)",
limits=c(2,8),
breaks=seq(2,8,by=1),
minor_breaks = seq(3, 7,by= 1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(aspect.ratio=2,
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA))
Error in ggplot(Length_HSHY, aes(x = Diet, y = Total_Length_mm)): objet 'Length_HSHY' introuvable
#+
# annotate("segment", x = 1, xend = 2, y = 7.2, yend = 7.2,
#colour = "black", size =1.5)
Plot_Fig1E
Error in eval(expr, envir, enclos): objet 'Plot_Fig1E' introuvable
Midgut length response to diet is strongly variable across the DGRP, with HY being generally longer than HS (i.e. the ratio length on HY/length on HS is between 1 and 1.4).
=
tab_GWAS_gut_mean %>%
tab_GWAS_gutgroup_by(dgrp_number,diet)%>%
summarise(mean_gut_length=mean(totallength,na.rm=T))%>%
spread(diet,mean_gut_length)%>%
::rename(Mean_length_HS=x,
dplyrMean_length_HY=y)%>%
mutate(Ratio = Mean_length_HY/Mean_length_HS)
Error in UseMethod("group_by"): pas de méthode pour 'group_by' applicable pour un objet de classe "NULL"
=
tab_GWAS_gut_se %>%
tab_GWAS_gutgroup_by(dgrp_number,diet)%>%
summarise(se_gut_length = se(totallength))%>%
spread(diet,se_gut_length)%>%
::rename(SE_length_HS=x,
dplyrSE_length_HY=y)
Error in UseMethod("group_by"): pas de méthode pour 'group_by' applicable pour un objet de classe "NULL"
= left_join(tab_GWAS_gut_mean,tab_GWAS_gut_se) tab_GWAS_gut_mean
Error in left_join(tab_GWAS_gut_mean, tab_GWAS_gut_se): objet 'tab_GWAS_gut_mean' introuvable
=c("HS"="#FFB4B4","HY"="#C3E6FC","Ratio"="black")
colors
=
plot_ratio_DGRPggplot(tab_GWAS_gut_mean,aes(x = reorder(dgrp_number,Ratio))) +
geom_point(aes(y=Mean_length_HS/1000,colour="HS"),stat="identity",size=0.7,shape=16)+
geom_errorbar(aes(ymax = (Mean_length_HS+ SE_length_HS)/1000 , ymin = (Mean_length_HS - SE_length_HS)/1000 ,colour="HS"),width=0.1, show.legend=FALSE)+
geom_point(aes(y=Mean_length_HY/1000,colour="HY"),stat="identity",size=0.7,shape=16)+
geom_errorbar(aes(ymax = (Mean_length_HY+ SE_length_HY)/1000 , ymin = (Mean_length_HY - SE_length_HY)/1000 ,colour="HY"),width=0.1, show.legend=FALSE)+
geom_point(aes(y=Ratio*3.9,colour="Ratio"),shape=17,size=0.7)+
geom_hline(yintercept=3.9,linetype=2)+
scale_y_continuous("Midgut length (mm)\n [mean \u00B1 se]",
limits=c(3,7.2),
sec.axis = sec_axis(~./3.9, name = "Ratio (HY/HS)", breaks = seq(0.8,1.8,0.2)))+
scale_x_discrete("DGRP lines",expand=c(0.03,0.03))+
scale_color_manual(values = colors )+
theme(panel.background = element_blank(),
panel.border = element_blank()),
(axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_blank(),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_blank(),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "horizontal",
legend.box = "horizontal",
legend.position = c(0.25,0.98),
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.4, "cm"),
legend.title = element_blank(),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=Smallfont),
legend.background = element_rect(fill=NA))+
guides(color=guide_legend(ncol=3))
Error in ggplot(tab_GWAS_gut_mean, aes(x = reorder(dgrp_number, Ratio))): objet 'tab_GWAS_gut_mean' introuvable
plot_ratio_DGRP
Error in eval(expr, envir, enclos): objet 'plot_ratio_DGRP' introuvable
= unique(tab_GWAS_gut$dgrp_id)
list_lines = NULL
Tab for(i in list_lines){
= subset(tab_GWAS_gut,dgrp_id==i)
tmp= tmp %>% group_by(diet)%>%summarize(n=n())
sample_size
= t.test(totallength~diet ,data=tmp)
test= rbind(Tab, c(i,test$parameter,test$statistic,test$p.value,test$estimate,sample_size[1,2],sample_size[2,2]))
Tab
}
colnames(Tab)=c("Line","df","t","Pvalue","Mean_HS","Mean_HY","Sample_size_HS","Sample_size_HY")
= as.data.frame(Tab)%>%
Tab mutate(Pvalue=as.numeric(Pvalue),
Mean_HS =as.numeric(Mean_HS),
Mean_HY =as.numeric(Mean_HY),
Difference = Mean_HY-Mean_HS )
$Pv_adjust = p.adjust(Tab$Pvalue,method = "BH") # Here I control
Tab
length(which(Tab$Pv_adjust>0.05))
# 56 lines have no significant difference in size between diets
length(which(Tab$Pv_adjust<=0.05))
#132 lines have a significant difference in size between diets
= subset(Tab,Pv_adjust<=0.05)
Tab_sign
length(which(Tab_sign$Difference<=0))
# 0 line was significantly smaller on HY
length(which(Tab_sign$Difference>0))
# 132 lines (i.e. all of those that were different) were significantly larger on HY
Midgut re-sizing is allometric between regions of the midgut. Posterior midguts of flies fed HY exhibit a greater increase than anterior regions.
=
tab_GWAS_gut%>%
tab_GWAS_gutmutate(allometry=posteriorlength/anteriorlength)
Error in UseMethod("mutate"): pas de méthode pour 'mutate' applicable pour un objet de classe "NULL"
=
tab_GWAS_gut_allometry_mean%>%
tab_GWAS_gutgroup_by(diet,dgrp_number)%>%
summarise(mean_allometry=mean(allometry,na.rm=T))
Error in UseMethod("group_by"): pas de méthode pour 'group_by' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_GWAS_gut_allometry_meangroup_by(diet)%>%
summarise(Sample_size=n())
Error in group_by(., diet): objet 'tab_GWAS_gut_allometry_mean' introuvable
###Stats
= fitme(mean_allometry ~ diet + (1 | dgrp_number) , data = tab_GWAS_gut_allometry_mean) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_GWAS_gut_allometry_mean' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(mean_allometry ~ diet + (1 / dgrp_number) , data = tab_GWAS_gut_allometry_mean)
Error in is.data.frame(data): objet 'tab_GWAS_gut_allometry_mean' introuvable
= fitme(mean_allometry ~ 1 + (1 | dgrp_number), data = tab_GWAS_gut_allometry_mean) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_GWAS_gut_allometry_mean' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
#Now we make a tab with the results
= data.frame(Variable = as.character(paste("HS vs HY")),
tab_stat Rep = 1,
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in test$basicLRT: objet de type 'closure' non indiçable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("mean_allometry ~ diet + (1 | dgrp_number)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
### Plot
=
Plot_Fig1Gggplot(tab_GWAS_gut_allometry_mean, aes(diet,mean_allometry, group=dgrp_number,color=diet)) +
geom_path(size=0.3,color=grey(0.65))+
geom_point(shape=16,size= 1)+
scale_x_discrete("",
expand=c(0.1,0.1),
limits=c("x","y"),
labels=c("HS", "HY"))+
scale_y_continuous("Posterior / anterior length",
limits=c(0.6, 1.4),
breaks=c(c(seq(0.5,1.4,by=0.1))))+
scale_color_manual(limits=c("x","y"),
values=palette_diet_2)+
annotate("text", label=paste("p=",tab_stat$Pvalue,sep=""), x= 1.5, y=1.4,size=3)+
stat_summary(fun = mean, aes(group = 1),geom = "point", colour = "black", fill = "yellow", size = 3, shape = 23) +
stat_summary(fun=mean, colour="black", geom="line", aes(group = 1),size=1,linetype=2)+
theme(
axis.title.x = element_text(size=Smallfont),
axis.title.y = element_text(size=Smallfont),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
legend.position = "none",
panel.background = element_blank())
Error in ggplot(tab_GWAS_gut_allometry_mean, aes(diet, mean_allometry, : objet 'tab_GWAS_gut_allometry_mean' introuvable
Plot_Fig1G
Error in eval(expr, envir, enclos): objet 'Plot_Fig1G' introuvable
##Export Figure 1
Canton S (Cs) flies fed HS diet have narrower midguts than those fed HY diet. Width was measured in three point along the gut (Region 2, 3 and 4, as visible in the yellow annotation in Figure 1C,D) and the sum of these three measurement was used as proxy for midgut width. Measurements are from the same guts as in Figure 1E
=
Length_HSHY "1E - 1S1A"]]%>%
d[[mutate_at(vars(starts_with("Total")),~./1000)%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(Total_Length_mm=Total.L,
dplyrTotal_width_mm=Total.W,
Day_of_treatment=Day)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
Length_HSHYgroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'Length_HSHY' introuvable
###Stats
= fitme(log(Total_width_mm) ~ Diet + (1 | Repeat), data = Length_HSHY) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Length_HSHY' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_width_mm) ~ Diet + (1 / Repeat), data = Length_HSHY)
Error in is.data.frame(data): objet 'Length_HSHY' introuvable
= fitme(log(Total_width_mm) ~ 1 + (1 | Repeat), data = Length_HSHY) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Length_HSHY' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
#Now we make a tab with the results
= data.frame(Variable = as.character(paste("HS vs HY")),
tab_stat Rep = nlevels(Length_HSHY$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Length_HSHY' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>%
add_header_above(c("log(Total_width_mm) ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
### Plot
= c("HS", "HY")
Limits = max(Length_HSHY$Total_width_mm) z
Error in eval(expr, envir, enclos): objet 'Length_HSHY' introuvable
=
Plot_Fig1S1Aggplot(Length_HSHY, aes(x = Diet, y = Total_width_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.6) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/50) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 0.25, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(annotation = formatC(paste("p=",tab_stat$Pvalue), digits = 2), textsize = 3, y_position = 0.93, xmin = 1, xmax = 2, tip_length = c(0.02, 0.02), vjust = -0.2)+
scale_fill_manual(limits=Limits,
values=palette_diet_2)+
scale_x_discrete("",
limits=c("HS", "HY"),
breaks=c("HS", "HY"))+
scale_y_continuous("Midgut width (mm)",
limits=c(0.2,1),
breaks=seq(0.2,1,by=0.1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18,colour = "black",aes(group=Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18,aes(group=Repeat, colour = Repeat)) +
scale_color_manual(values=palette_mean)+
theme(panel.background = element_blank(),
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA))
Error in ggplot(Length_HSHY, aes(x = Diet, y = Total_width_mm)): objet 'Length_HSHY' introuvable
Plot_Fig1S1A
Error in eval(expr, envir, enclos): objet 'Plot_Fig1S1A' introuvable
Length of midguts on HY diet is similar to standard diets used in the field (Bloomington [Bl] cornmeal and Bl molasses).
=
tab_stddiets_rev "1 - S1B"]]%>%
d[[mutate(Total_Length_mm =Total.L/1000)%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
mutate(Sugar=fct_relevel(Diet,"HS","HY", "BL Cornmeal", "BL Molasses"))
Error in UseMethod("mutate"): pas de méthode pour 'mutate' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_stddiets_revgroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'tab_stddiets_rev' introuvable
###Stats
= fitme((Total_Length_mm) ~ Diet + (1 | Repeat), data = tab_stddiets_rev) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_stddiets_rev' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest((Total_Length_mm) ~ Diet + (1 / Repeat), data = tab_stddiets_rev)
Error in is.data.frame(data): objet 'tab_stddiets_rev' introuvable
= fitme((Total_Length_mm) ~ 1 + (1 | Repeat), data = tab_stddiets_rev) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_stddiets_rev' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
#Now we make a tab with the results
= data.frame(Variable = as.character(paste("Anova diets")),
tab_stat Rep = nlevels(tab_stddiets_rev$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_stddiets_rev' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("(Total_Length_mm) ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
= lmer(Total_Length_mm ~ Diet + (1 | Repeat), data = tab_stddiets_rev) mod.gen
Error: bad 'data': objet 'tab_stddiets_rev' introuvable
= glht(mod.gen, linfct=mcp(Diet="Tukey")) multcomp
Error in model.matrix(model) : objet 'mod.gen' introuvable
Error in factor_contrasts(model): no 'model.matrix' method for 'model' found!
= cld(multcomp) tmp
Error in cld(multcomp): objet 'multcomp' introuvable
= aggregate(data=tab_stddiets_rev,Total_Length_mm ~ Diet, max) letter_position
Error in eval(m$data, parent.frame()): objet 'tab_stddiets_rev' introuvable
= as.data.frame(tmp$mcletters$Letters) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tmp' introuvable
$Diet=rownames(tab_letter) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'rownames' : objet 'tab_letter' introuvable
colnames(tab_letter)[1] = "Letter"
Error in colnames(tab_letter)[1] = "Letter": objet 'tab_letter' introuvable
= left_join(tab_letter,letter_position) tab_letter
Error in left_join(tab_letter, letter_position): objet 'tab_letter' introuvable
=c("HS","HY", "BL Cornmeal", "BL Molasses")
Limits =c("HS","HY", "Bl cornmeal", "Bl molasses")
Labels = c("#FFB4B4","#C3E6FC", "#f6efe5", "#f6efe5")
cbbPalette
= max(tab_stddiets_rev$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_stddiets_rev' introuvable
=
Plot_Fig1S1Bggplot(tab_stddiets_rev, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8, alpha = 0.5) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/35) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 1.8, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_text(data = tab_stat, mapping = aes(x = 2.5, y = 7.5, label = paste("p=",format(Pvalue,digits=2))),size=3)+
geom_text(data = tab_letter, mapping = aes(x = Diet, y = Total_Length_mm+0.6, label = Letter),size=3)+
scale_fill_manual(limits=Limits,
values=cbbPalette)+
scale_x_discrete("",
limits=Limits,
labels=Labels)+
scale_y_continuous("Midgut length (mm)",
limits=c(1.6,8),
breaks=seq(2,7,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.background = element_blank(),
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(c(0,0,0,0.5), "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA))
Error in ggplot(tab_stddiets_rev, aes(x = Diet, y = Total_Length_mm)): objet 'tab_stddiets_rev' introuvable
Plot_Fig1S1B
Error in eval(expr, envir, enclos): objet 'Plot_Fig1S1B' introuvable
Un-mated females and mated males have lower response to diet compared to mated female flies. Statistics: comparison of the interaction between diet and mating status/sex. Full annotation on figure present in manuscript
=
tab_MUmM_rev "1 - S1C"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
mutate(Total_Length_mm=Total.L/1000)%>%
mutate(Treatment=fct_relevel(Treatment,c("Mated females","Un-mated females","Males")))
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_MUmM_revgroup_by(Diet,Treatment)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Treatment): objet 'tab_MUmM_rev' introuvable
###Stats
#Un-mated
= subset(tab_MUmM_rev, Treatment%in%c("Mated females","Un-mated females")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_MUmM_rev' introuvable
= fitme((Total_Length_mm) ~ Diet * Treatment + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest((Total_Length_mm) ~ Diet + Treatment + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme((Total_Length_mm) ~ Diet + Treatment + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Treatment = as.character(paste("Mated vs Un-mated females")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=1,scientific=F)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_Un_mated
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Male
= subset(tab_MUmM_rev, Treatment%in%c("Mated females","Males")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_MUmM_rev' introuvable
= fitme(log(Total_Length_mm) ~ Diet * Treatment + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + Treatment + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ Diet + Treatment + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Treatment = as.character(paste("Mated vs Males")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=1,scientific=F)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_Male
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
=rbind(tab_stat_Male,tab_stat_Un_mated) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_Male' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.009, "*", #changed to 0.009 because Un-mated is exactle 0.01
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.009, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Variable", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>%
add_header_above(c("log(Total_Length_mm) ~ Diet + Treatment + Diet : Treatment + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Variable", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
$Treatment = as.factor(tab_stat$Treatment) tab_stat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.factor' : objet 'tab_stat' introuvable
tab
Error in eval(expr, envir, enclos): objet 'tab' introuvable
### Plot
=tab_stat tab_stat_1S1C
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
=
Plot_Fig1S1Cggplot(tab_MUmM_rev, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 0.15) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 1.7, label = paste("(",Sample_size,")",sep="")),size=3)+
facet_grid(.~ Treatment)+
scale_fill_manual(values=palette_diet_2)+
scale_x_discrete("",
limits=c("HS","HY"),
labels=c("HS","HY"))+
scale_y_continuous("Midgut length (mm)",
limits=c(1.5,8),
breaks=seq(2,6,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
stat_summary(fun = mean, colour = "black", geom = "line", aes(group = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_MUmM_rev, aes(x = Diet, y = Total_Length_mm)): objet 'tab_MUmM_rev' introuvable
Plot_Fig1S1C
Error in eval(expr, envir, enclos): objet 'Plot_Fig1S1C' introuvable
Feeding assay shows higher dietary intake on HS than on HY diet. Absorbance measured after 1 day of assay, each day along a 5-day period from eclosion, for a total of 5 times per condition/repeat
=
Tab_absorbance "1 - S1D"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(Diet=Food) dplyr
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
Tab_absorbancegroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'Tab_absorbance' introuvable
###Stats
= fitme(Absorbance ~ Diet + (1 | Repeat), data = Tab_absorbance) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Tab_absorbance' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(Absorbance ~ Diet + (1 / Repeat), data = Tab_absorbance)
Error in is.data.frame(data): objet 'Tab_absorbance' introuvable
= fitme(Absorbance ~ 1 + (1 | Repeat), data = Tab_absorbance) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Tab_absorbance' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
#Now we make a tab with the results
= data.frame(Variable = as.character(paste("HS vs HY")),
tab_stat Rep = nlevels(Tab_absorbance$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Tab_absorbance' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("Absorbance ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
##Plot
= c("HS", "HY")
Limits = max(Tab_absorbance$Absorbance) z
Error in eval(expr, envir, enclos): objet 'Tab_absorbance' introuvable
=
Plot_Fig1S1Dggplot(Tab_absorbance, aes(x = Diet, y = Absorbance))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/40) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 0.02, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(annotation = formatC(paste("p=",tab_stat$Pvalue), digits = 2), textsize = 3, y_position = 0.58, xmin = 1, xmax = 2, tip_length = c(0.02, 0.02), vjust = -0.2)+
scale_fill_manual(limits=Limits,
values=palette_diet_2)+
scale_x_discrete("",
limits=c("HS", "HY"),
breaks=c("HS", "HY"))+
scale_y_continuous("Absorbance",
limits=c(0,0.6),
breaks=seq(0,0.5,by=0.1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18,colour = "black",aes(group=Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18,aes(group=Repeat, colour = Repeat)) +
scale_color_manual(values=palette_mean)+
theme(panel.background = element_blank(),
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA))
Error in ggplot(Tab_absorbance, aes(x = Diet, y = Absorbance)): objet 'Tab_absorbance' introuvable
Plot_Fig1S1D
Error in eval(expr, envir, enclos): objet 'Plot_Fig1S1D' introuvable
Microbes are not required for the difference in size observed between HS and HY fed flies. Germ-free flies exhibit similar diet-induced increase in size as conventionally reared flies at both 7- and 14-days post eclosion (statistics: comparison of the interaction between diets and conv. reared/germ free treatment). Of note, at 7-days post eclosion we observed longer guts in germ free flies compared to conventionally reared flies (significant on HS diet). This difference was lost at 14-days post eclosion (Post hoc Tukey test from GLMM summarized by letter at the bottom of chart). Full statistical annotation on figure present in manuscript
=
Length_HSHY_germfree "1 - S1E"]]%>%
d[[mutate_at(vars(starts_with("Total")),~./1000)%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(Total_Length_mm=Total.L,
dplyrDay_of_treatment=Day)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
Length_HSHY_germfreegroup_by(Diet,Treatment, Day_of_treatment)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Treatment, Day_of_treatment): objet 'Length_HSHY_germfree' introuvable
$Sample_size <- as.numeric(Sample_size$Sample_size) Sample_size
Error in eval(expr, envir, enclos): objet 'Sample_size' introuvable
###Stats Day 7 interaction
= subset(Length_HSHY_germfree, Day_of_treatment == "7") Length_HSHY_germfree_Day7
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_HSHY_germfree' introuvable
= fitme(log(Total_Length_mm) ~ Diet + Treatment + Diet : Treatment + (1 | Repeat), data = Length_HSHY_germfree_Day7) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Length_HSHY_germfree_Day7' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + Treatment + (1 / Repeat), data = Length_HSHY_germfree_Day7)
Error in is.data.frame(data): objet 'Length_HSHY_germfree_Day7' introuvable
= fitme(log(Total_Length_mm) ~ Diet + Treatment + (1 | Repeat), data = Length_HSHY_germfree_Day7) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Length_HSHY_germfree_Day7' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
#Now we make a tab with the results
= data.frame(Variable = as.character(paste("Response to diet Day7")),
tab_stat7 Rep = as.numeric(nlevels(Length_HSHY_germfree_Day7$Repeat)),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[4],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Length_HSHY_germfree_Day7' introuvable
$sig = ifelse(tab_stat7$Pvalue < 0.05 & tab_stat7$Pvalue > 0.01, "*",
tab_stat7ifelse(tab_stat7$Pvalue < 0.01 & tab_stat7$Pvalue > 0.001, "**",
ifelse(tab_stat7$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat7$Pvalue < 0.05 & tab_stat7$Pvalue > 0.01, "*", : objet 'tab_stat7' introuvable
%>%
tab_stat7kable(col.names = c("Response to diet Day7", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Total_Length_mm) ~ Diet + Treatment + Diet : Treatment + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Response to diet Day7", "Replicates", : objet 'tab_stat7' introuvable
=tab_stat7 tab_stat_int_GF7
Error in eval(expr, envir, enclos): objet 'tab_stat7' introuvable
###Stats Day 14 interaction
= subset(Length_HSHY_germfree, Day_of_treatment == "14") Length_HSHY_germfree_Day14
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_HSHY_germfree' introuvable
= fitme(log(Total_Length_mm) ~ Diet + Treatment + Diet : Treatment + (1 | Repeat), data = Length_HSHY_germfree_Day14) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Length_HSHY_germfree_Day14' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + Treatment + (1 / Repeat), data = Length_HSHY_germfree_Day14)
Error in is.data.frame(data): objet 'Length_HSHY_germfree_Day14' introuvable
= fitme(log(Total_Length_mm) ~ Diet + Treatment + (1 | Repeat), data = Length_HSHY_germfree_Day14) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Length_HSHY_germfree_Day14' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
#Now we make a tab with the results
= data.frame(Variable = as.character(paste("Response to diet Day14")),
tab_stat14 Rep = as.numeric(nlevels(Length_HSHY_germfree_Day14$Repeat)),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[4],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Length_HSHY_germfree_Day14' introuvable
$sig = ifelse(tab_stat14$Pvalue < 0.05 & tab_stat14$Pvalue > 0.01, "*",
tab_stat14ifelse(tab_stat14$Pvalue < 0.01 & tab_stat14$Pvalue > 0.001, "**",
ifelse(tab_stat14$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat14$Pvalue < 0.05 & tab_stat14$Pvalue > 0.01, "*", : objet 'tab_stat14' introuvable
%>%
tab_stat14kable(col.names = c("Response to diet Day14", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Total_Length_mm) ~ Diet + Treatment + Diet : Treatment + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Response to diet Day14", "Replicates", : objet 'tab_stat14' introuvable
=tab_stat14 tab_stat_int_GF14
Error in eval(expr, envir, enclos): objet 'tab_stat14' introuvable
#Model including all samples and Post HOC test
$Treat_Diet_Day = as.factor(paste(Length_HSHY_germfree$Treatment, Length_HSHY_germfree$Diet, Length_HSHY_germfree$Day_of_treatment, sep="_")) Length_HSHY_germfree
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.factor' : objet 'Length_HSHY_germfree' introuvable
= lmer(log(Total_Length_mm) ~ Treat_Diet_Day + (1 | Repeat), data = Length_HSHY_germfree) mod.gen
Error: bad 'data': objet 'Length_HSHY_germfree' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Treat_Diet_Day + (1/ Repeat), data = Length_HSHY_germfree)
Error in is.data.frame(data): objet 'Length_HSHY_germfree' introuvable
= glht(mod.gen, linfct=mcp(Treat_Diet_Day="Tukey")) multcomp
Error in model.matrix(model) : objet 'mod.gen' introuvable
Error in factor_contrasts(model): no 'model.matrix' method for 'model' found!
= cld(multcomp) tmp
Error in cld(multcomp): objet 'multcomp' introuvable
= aggregate(data=Length_HSHY_germfree,Total_Length_mm ~ Treat_Diet_Day, min) letter_position
Error in eval(m$data, parent.frame()): objet 'Length_HSHY_germfree' introuvable
= as.data.frame(tmp$mcletters$Letters) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tmp' introuvable
$Treat_Diet_Day=rownames(tab_letter) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'rownames' : objet 'tab_letter' introuvable
colnames(tab_letter)[1] = "Letter"
Error in colnames(tab_letter)[1] = "Letter": objet 'tab_letter' introuvable
= left_join(tab_letter,letter_position) tab_letter
Error in left_join(tab_letter, letter_position): objet 'tab_letter' introuvable
$Treat_Diet_Day= as.factor(tab_letter$Treat_Diet_Day) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.factor' : objet 'tab_letter' introuvable
$Day_of_treatment = as.factor(mid(tab_letter$Treat_Diet_Day,7, 2)) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.factor' : erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'substr' : objet 'tab_letter' introuvable
$Diet = as.factor(mid(tab_letter$Treat_Diet_Day, 4,2)) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.factor' : erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'substr' : objet 'tab_letter' introuvable
$Treatment = as.factor(left(tab_letter$Treat_Diet_Day, 2)) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.factor' : erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'substr' : objet 'tab_letter' introuvable
### Plot
= c("HS", "HY")
Limits = max(Length_HSHY_germfree$Total_Length_mm) z
Error in eval(expr, envir, enclos): objet 'Length_HSHY_germfree' introuvable
= c("Conv. reared", "Germ free")
Treatment.status names(Treatment.status) = c("CR", "GF")
=
Plot_Fig1S1Eggplot(Length_HSHY_germfree, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/50) +
geom_text(data = tab_letter, mapping = aes(x = Diet, y = Total_Length_mm-0.4, label = Letter),size=3)+
facet_wrap(Day_of_treatment~Treatment,labeller=labeller(Treatment=Treatment.status), nrow = 1)+
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 1.35, label = paste("(",Sample_size,")",sep="")),size=3)+
scale_fill_manual(limits=Limits,
values=palette_diet_2)+
scale_x_discrete("",
limits=c("HS", "HY"),
breaks=c("HS", "HY"))+
scale_y_continuous("Midgut length (mm)",
limits=c(1,8),
breaks=seq(2,8,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18,colour = "black",aes(group=Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18,aes(group=Repeat, colour = Repeat)) +
stat_summary(fun=mean, colour="black", geom="line",aes(group=Repeat))+
scale_color_manual(values=palette_mean)+
theme(panel.background = element_blank(),
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size =Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size =Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(Length_HSHY_germfree, aes(x = Diet, y = Total_Length_mm)): objet 'Length_HSHY_germfree' introuvable
Plot_Fig1S1E
Error in eval(expr, envir, enclos): objet 'Plot_Fig1S1E' introuvable
##Export Figure S1
Scheme depicting regional organization of the gut. The gut comprises three main anatomical regions: foregut (comprising the crop), midgut and hindgut. The midgut itself can be divided in anterior (blue), middle (green) and posterior (purple). Additional subregions have been described (Buchon et al., 2013; Marianes and Spradling, 2013).
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/1- S2A.jpg") img1S2A
Error in transpose(y): object is NULL
= rasterGrob(img1S2A) gob_imageFig1S2A
Error in rasterGrob(img1S2A): objet 'img1S2A' introuvable
grid.draw(gob_imageFig1S2A)
Error in grid.draw(gob_imageFig1S2A): objet 'gob_imageFig1S2A' introuvable
All regions of the midgut (x-axis) respond variably to diet composition, but the response of the posterior midgut length more closely reflects the response of the total midgut length. Red lines represent linear regression and black dashed lines are the lines of equivalence.
$dgrpDiet = factor(paste(tab_GWAS_gut$dgrp_id, tab_GWAS_gut$diet), ordered=T)
tab_GWAS_gut
= aggregate(as.matrix(tab_GWAS_gut[,c("anteriorlength", "middlelength", "posteriorlength", "totallength")]) ~ diet * dgrp_id, tab_GWAS_gut, mean)
meansMat rownames(meansMat) = paste(meansMat$dgrp_id, meansMat$diet, sep="_")
colnames(meansMat) <- c("diet","dgrp_id", "Anterior Length", "Middle Length", "Posterior Length", "Total Length")
= subset(meansMat, diet=="x")
meansMatX = subset(meansMat, diet=="y")
meansMatY all(meansMatX$dgrp_id == meansMatY$dgrp_id)
= meansMatX[,!colnames(meansMatX) %in% c("dgrp_id", "diet")]
meansMatX = meansMatY[,!colnames(meansMatY) %in% c("dgrp_id", "diet")]
meansMatY
=
meansMatY%>%
meansMatY setNames(str_to_sentence(names(.)))
=
meansMatX%>%
meansMatX setNames(str_to_sentence(names(.)))
<- meansMatY / meansMatX
RIs <- RIs[,!grepl("width", colnames(RIs))]
RIs <- function(x,y, datRange, textCex, ...){
plotRegress <- lm(y ~ x)
regn plot(y ~ x, xlim=datRange, ylim=datRange, ...)
abline(a=0,b=1, col=alpha(1, 0.5), lty=2)
abline(a=coef(regn)[1], b=coef(regn)[2],col=2)
=round(summary(regn)$adj.r.squared, 1)
valtext(y=max(datRange), x=min(datRange),
labels=bquote(R^2 ~"="~ .(val)), adj=0, cex=textCex)
text(y=max(datRange) - (0.1 * diff(range(RIs))), x=min(datRange),
labels=paste("p =", signif(summary(regn)$coefficients[2,4], 2)), adj=0, cex=textCex)
text(y=max(datRange) - (0.2 * diff(range(RIs))), x=min(datRange),
labels=paste("y = ", signif(coef(regn)[2], 2), "x", " + ", signif(coef(regn)[1], 2), sep=""), adj=0, cex=textCex)
}
jpeg(filename = "Plot_Fig1S2B.jpeg",
res = 300,
width = 9, height = 3, units = 'in' )
par(bty="n", mfrow=c(1,3), cex.main=1.4, cex.lab=1.4, cex.axis=1.4)
for(i in 1:3){
plotRegress(x=RIs[,i], y=RIs[,4], xlab=paste(c("Anterior", "Middle", "Posterior")[i], "HY length / HS length"), ylab="Total HY length / HS length", bty="n", cex=0.75, pch=16, datRange=range(RIs), las=1, asp =1, textCex=1.4)
}
dev.off()
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/Plot_Fig1S2B.jpeg") img1S2B
Error in transpose(y): object is NULL
= rasterGrob(img1S2B) gob_imageFig1S2B
Error in rasterGrob(img1S2B): objet 'img1S2B' introuvable
grid.draw(gob_imageFig1S2B)
Error in grid.draw(gob_imageFig1S2B): objet 'gob_imageFig1S2B' introuvable
##Export Figure 1S2
Variation in impact of diet on midgut length in the DGRP maps to genes with functions connected to epithelial turnover. The Manhattan plot summarizes the p-value per chromosomal locus (grey bars) associated with GWAS analysis. Highlighted genes have been selected based on their statistical significance, their function, and the effect of the genetic variation (e.g. non-synonymous mutation, etc.).
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/1 - S3.jpg") img1S3A
Error in transpose(y): object is NULL
= rasterGrob(img1S3A) gob_imageFig1S3A
Error in rasterGrob(img1S3A): objet 'img1S3A' introuvable
grid.draw(gob_imageFig1S3A)
Error in grid.draw(gob_imageFig1S3A): objet 'gob_imageFig1S3A' introuvable
##Export Figure
Midgut length is maximized at specific points in diet space. Adult flies were maintained for 5 days from eclosion on one of 28 diets based on different caloric concentration and yeast to sucrose ratios (see figure 1-figure supplement 1A for scheme on diets used and sample size). The list of recipes can be found in Table1. The figure shows contours of a thin-plate spline (Generalized Additive Model) of length (mm, coded by colors) as a function of yeast and sucrose in diet. Colored dots represent mean of samples in a particular diet.
=
tab_nutri_geo "2A"]]%>%
d[[mutate(Total.Lmm = Total.L / 1000)
$YSdiet <- with(tab_nutri_geo, (Yeast.in.Diet)/(Sucrose.in.Diet))
tab_nutri_geo$YSingested <- with(tab_nutri_geo, (Yeast.ingested)/(Sucrose.ingested))
tab_nutri_geo
jpeg(filename = "F:/Dropbox/Github/Bonfini_eLife_2021/data/Plot_Fig2A.jpeg",
res = 600,
width = 5, height = 4, units = 'in' )
par(cex=1, mar = c(4.5, 4.5, 1, 3))
with(tab_nutri_geo, geomPlotta(x = Sucrose.in.Diet, y = Yeast.in.Diet, z = Total.Lmm, alf = 1, xlim = c(-10, 300), ylim = c(-10, 300), xlab = "Sucrose in diet (g/L)", ylab = "Yeast in diet (g/L)", frame.plot= FALSE, cex.lab=1.2, cex.axis =1, las=1, labcex=1, asp=1))
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/Plot_Fig2A.jpeg") img2A
Error in transpose(y): object is NULL
= rasterGrob(img2A) gob_imageFig2A
Error in rasterGrob(img2A): objet 'img2A' introuvable
grid.draw(gob_imageFig2A)
Error in grid.draw(gob_imageFig2A): objet 'gob_imageFig2A' introuvable
Plot show an increase in midgut length with increased amount of yeast ingested.
=
tab_nutri_geo "2A"]]%>%
d[[mutate(Total.Lmm = Total.L / 1000)
Error in UseMethod("mutate"): pas de méthode pour 'mutate' applicable pour un objet de classe "NULL"
$title1 <- "Midgut length vs yeast ingested" tab_nutri_geo
Error in tab_nutri_geo$title1 <- "Midgut length vs yeast ingested": objet 'tab_nutri_geo' introuvable
<- ggplot(tab_nutri_geo, aes(x=Yeast.ingested, y=Total.Lmm)) graph2
Error in ggplot(tab_nutri_geo, aes(x = Yeast.ingested, y = Total.Lmm)): objet 'tab_nutri_geo' introuvable
=
Plot_Fig2B+ geom_point(size=2,shape=16) + geom_smooth(span=1, size=1, color = "blue") +
graph2 scale_y_continuous("Midgut length (mm)") +
scale_x_continuous("Yeast ingested (g/L x absorbance)") +
theme(panel.background = element_blank(),
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"))
Error in eval(expr, envir, enclos): objet 'graph2' introuvable
Plot_Fig2B
Error in eval(expr, envir, enclos): objet 'Plot_Fig2B' introuvable
Plots show a decrease in midgut length with increased amount of sucrose ingested.
=
tab_nutri_geo "2A"]]%>%
d[[mutate(Total.Lmm = Total.L / 1000)
Error in UseMethod("mutate"): pas de méthode pour 'mutate' applicable pour un objet de classe "NULL"
<- ggplot(tab_nutri_geo, aes(x=Sucrose.ingested, y=Total.Lmm)) graph3
Error in ggplot(tab_nutri_geo, aes(x = Sucrose.ingested, y = Total.Lmm)): objet 'tab_nutri_geo' introuvable
=
Plot_Fig2C+ geom_point(size=2,shape=16) + geom_smooth(span=1, size=1, color = "red")+
graph3 scale_y_continuous("Midgut length (mm)") +
scale_x_continuous("Sucrose ingested (g/L x absorbance)") +
theme(panel.background = element_blank(),
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"))
Error in eval(expr, envir, enclos): objet 'graph3' introuvable
Plot_Fig2C
Error in eval(expr, envir, enclos): objet 'Plot_Fig2C' introuvable
Plot show an increase in midgut length with ratio of yeast to sucrose ingested.
=
tab_nutri_geo "2A"]]%>%
d[[mutate(Total.Lmm = Total.L / 1000)
Error in UseMethod("mutate"): pas de méthode pour 'mutate' applicable pour un objet de classe "NULL"
<- ggplot(tab_nutri_geo, aes(x=(Yeast.ingested/Sucrose.ingested), y=Total.Lmm)) graph4
Error in ggplot(tab_nutri_geo, aes(x = (Yeast.ingested/Sucrose.ingested), : objet 'tab_nutri_geo' introuvable
=
Plot_Fig2D
+ geom_point(size=2,shape=16) + geom_smooth(span=1, size=1, color = "green")+
graph4 scale_y_continuous("Midgut length (mm)") +
scale_x_continuous("Y:S ingested") +
theme(panel.background = element_blank(),
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"))
Error in eval(expr, envir, enclos): objet 'graph4' introuvable
Plot_Fig2D
Error in eval(expr, envir, enclos): objet 'Plot_Fig2D' introuvable
Several nutrients from yeast (proteins, lipids, vitamins/minerals) are required to increase midgut length. Nutrients from yeast (proteins, amino acids, lipids, cholesterol, vitamins/minerals) were added against a base diet of only the amount of sucrose found in HY and devoid of yeast. Letters above violin plots represent grouping by statistical differences (Post hoc Tukey on GLMM). Bars beneath the main plot describe caloric content provided by the different components. Proper label annotation (in line with the chart) can be found in manuscript figures
=
tab_lenght_complement "2E"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(Diet=Food,
dplyrTotal_Length_mm = Total.Lmm)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
$Diet = factor(tab_lenght_complement$Diet, levels = c("HS",
tab_lenght_complement"S74Y0 (A)",
"A+Cas2",
"A+Cas4",
"A+AA",
"A+AA2",
"A+L4",
"A+Ch0.4",
"A+L2+Ch0.2",
"A+L4+Ch0.4",
"A+V2",
"A+V4",
"A+C4+L4+Ch0.4",
"A+C4+L4+Ch0.4+V2",
"HY")) #Order Diets
Error in factor(tab_lenght_complement$Diet, levels = c("HS", "S74Y0 (A)", : objet 'tab_lenght_complement' introuvable
=
Sample_size%>%
tab_lenght_complementgroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'tab_lenght_complement' introuvable
###Stats
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tab_lenght_complement) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_lenght_complement' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tab_lenght_complement)
Error in is.data.frame(data): objet 'tab_lenght_complement' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tab_lenght_complement) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_lenght_complement' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
#Now we make a tab with the results
= data.frame(Variable = as.character(paste("Anova diets")),
tab_stat Rep = nlevels(tab_lenght_complement$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_lenght_complement' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Total_Length_mm) ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
= lmer(Total_Length_mm ~ Diet + (1 | Repeat), data = tab_lenght_complement) mod.gen
Error: bad 'data': objet 'tab_lenght_complement' introuvable
= glht(mod.gen, linfct=mcp(Diet="Tukey")) multcomp
Error in model.matrix(model) : objet 'mod.gen' introuvable
Error in factor_contrasts(model): no 'model.matrix' method for 'model' found!
= cld(multcomp) tmp
Error in cld(multcomp): objet 'multcomp' introuvable
= aggregate(data=tab_lenght_complement,Total_Length_mm ~ Diet, max) letter_position
Error in eval(m$data, parent.frame()): objet 'tab_lenght_complement' introuvable
= as.data.frame(tmp$mcletters$Letters) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tmp' introuvable
$Diet=rownames(tab_letter) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'rownames' : objet 'tab_letter' introuvable
colnames(tab_letter)[1] = "Letter"
Error in colnames(tab_letter)[1] = "Letter": objet 'tab_letter' introuvable
= left_join(tab_letter,letter_position) tab_letter
Error in left_join(tab_letter, letter_position): objet 'tab_letter' introuvable
### Plot
= c("HS", "S74Y0 (A)", "A+Cas2", "A+Cas4", "A+AA", "A+AA2", "A+L4", "A+Ch0.4", "A+L2+Ch0.2", "A+L4+Ch0.4", "A+V2", "A+V4", "A+C4+L4+Ch0.4","A+C4+L4+Ch0.4+V2", "HY")
Limits
= c("#FFB4B4", "#f6efe5", "#f6efe5", "#f6efe5", "#f6efe5", "#f6efe5", "#f6efe5", "#f6efe5", "#f6efe5", "#f6efe5", "#f6efe5", "#f6efe5", "#f6efe5", "#f6efe5", "#C3E6FC")
cbbPalette
= max(tab_lenght_complement$Total_Length_mm, na.rm=TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_lenght_complement' introuvable
=
Plot_Fig2Eggplot(tab_lenght_complement, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z / 60) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 2.2, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_text(data = tab_letter, mapping = aes(x = Diet, y = Total_Length_mm+0.4, label = Letter),size=3)+
geom_text(data = tab_stat, mapping = aes(x = 2, y = 7.5, label = paste("p=",Pvalue)),size=3)+
scale_fill_manual(limits=Limits,
values=cbbPalette)+
scale_x_discrete("",
limits=Limits)+
scale_y_continuous("Midgut length (mm)",
limits=c(2,8),
breaks=seq(3,7,by=1))+
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 1, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.background = element_blank(),
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
axis.title.x = element_blank(),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_blank(),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(c(0,0,0,0.5), "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.5, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA))
Error in ggplot(tab_lenght_complement, aes(x = Diet, y = Total_Length_mm)): objet 'tab_lenght_complement' introuvable
= mutate_if(d[["2E - calories"]],is.character,as.factor) tab_component_calories
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
$Component <- factor(tab_component_calories$Component, levels = c("Lipids", "Proteins", "Carbohydrates")) tab_component_calories
Error in factor(tab_component_calories$Component, levels = c("Lipids", : objet 'tab_component_calories' introuvable
= c("Lipids","Proteins","Carbohydrates")
Limits_2 = c("Lipids","Proteins","Carbohydrates")
Labels
=
Plot_Fig2E_bisggplot(tab_component_calories,aes(x=Diet,y=Calories.contributed))+
geom_bar(stat="identity",aes(fill=Component),color="black",width=.90)+
scale_fill_manual(limits=Limits_2,
values=palette_component_3,
labels=Labels)+
scale_x_discrete("",
limits=Limits)+
scale_y_reverse("Calories",
breaks=c(seq(0,1400,by=300)))+
theme(axis.title.x = element_blank(),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="white"),
axis.line.y = element_line(colour="black"),
axis.ticks.x = element_line(colour="white"),
axis.ticks.y = element_line(),
axis.text.x = element_blank(),
axis.text.y = element_text(size=Smallfont,colour="black"),
panel.grid = element_blank(),
plot.margin = unit(c(0,0,0,0), "cm"),
legend.direction = "horizontal",
legend.box = "horizontal",
legend.position = "bottom",
legend.margin=margin(t=0.1, r=0.2, b=0.1, l=0, unit="cm"),
legend.title = element_blank(),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=Smallfont),
legend.background = element_rect(fill="white", colour="black"),
legend.key.size = unit(0.5,"cm"),
strip.text.x = element_text(size =Mediumfont, colour = "black",face="italic"),
strip.text.y = element_text(size =Mediumfont, colour = "black",face="italic"),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside",
panel.background = element_rect(fill="transparent"))+
guides(fill=guide_legend(ncol=3))
Error in ggplot(tab_component_calories, aes(x = Diet, y = Calories.contributed)): objet 'tab_component_calories' introuvable
= grid.arrange(Plot_Fig2E,
plot_2E + theme(legend.position="none"),
Plot_Fig2E_bisgrid.text("HS",x=0.15, y=0.2, just="left",gp = gpar(fontsize=Smallfont,fontface="bold")),
grid.text("HY",x=0.95, y=1, just="left",gp = gpar(fontsize=Smallfont,fontface="bold")),
grid.text("Sucrose in HY completed with:",x=0.21, y=0.9,just="left",gp = gpar(fontsize=Smallfont,fontface="bold")),
grid.text("Casein x0 x2 x4 x4 x4", x=0.02, y=0.52,just="left",gp = gpar(fontsize=Smallfont,fontface="bold")),
grid.text("AAs x0 x1 x2", x=0.02, y=0.51,just="left",gp = gpar(fontsize=Smallfont,fontface="bold")),
grid.text("Lard x0 x4 x2 x4 x4 x4", x=0.02, y=0.50,just="left",gp = gpar(fontsize=Smallfont,fontface="bold")),
grid.text("Chol. x0 x1 x1 x1 x1 x1", x=0.02, y=0.49,just="left",gp = gpar(fontsize=Smallfont,fontface="bold")),
grid.text("Vit. x0 x2 x4 x2", x=0.02, y=0.48,just="left",gp = gpar(fontsize=Smallfont,fontface="bold")),
ncol = 1, heights = c(2,1,0.2,0.15, 0.15,0.15,0.15,0.15,0.15,0.2))
Error in arrangeGrob(...): objet 'Plot_Fig2E' introuvable
Midgut size is antagonized by sugar, but not other added calories. Diet with only lipids, isocaloric with HS and HY diets, results in midguts of lengths comparable to those on HS diet. Substitution of sucrose from HS diet with isocaloric lipids (Lipids HS) results in midguts as long as those on HY. Midguts of flies reared on a diet substituting sucrose in HY diet with lipids (Lipids HY) are also similar in length to those of flies fed HY. Letters above violin plots represent grouping by statistical differences (Post hoc Tukey on GLMM). Bottom part of the chart (bar graph) describes caloric content provided by the different components.
=
tab_lipids "2F"]]%>%
d[[mutate(Total_Length_mm =Total.L/1000)%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(Diet=Food) dplyr
Error in UseMethod("mutate"): pas de méthode pour 'mutate' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_lipidsgroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'tab_lipids' introuvable
###Stats
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tab_lipids) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_lipids' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tab_lipids)
Error in is.data.frame(data): objet 'tab_lipids' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tab_lipids) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_lipids' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
#Now we make a tab with the results
= data.frame(Variable = as.character(paste("Anova diets")),
tab_stat Rep = nlevels(tab_lipids$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_lipids' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Total_Length_mm) ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
= lmer(Total_Length_mm ~ Diet + (1 | Repeat), data = tab_lipids) mod.gen
Error: bad 'data': objet 'tab_lipids' introuvable
= glht(mod.gen, linfct=mcp(Diet="Tukey")) multcomp
Error in model.matrix(model) : objet 'mod.gen' introuvable
Error in factor_contrasts(model): no 'model.matrix' method for 'model' found!
= cld(multcomp) tmp
Error in cld(multcomp): objet 'multcomp' introuvable
= aggregate(data=tab_lipids,Total_Length_mm ~ Diet, max) letter_position
Error in eval(m$data, parent.frame()): objet 'tab_lipids' introuvable
= as.data.frame(tmp$mcletters$Letters) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tmp' introuvable
$Diet=rownames(tab_letter) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'rownames' : objet 'tab_letter' introuvable
colnames(tab_letter)[1] = "Letter"
Error in colnames(tab_letter)[1] = "Letter": objet 'tab_letter' introuvable
= left_join(tab_letter,letter_position) tab_letter
Error in left_join(tab_letter, letter_position): objet 'tab_letter' introuvable
=c("Lard Only","HS","HS Lard sub","HY Lard sub","HY")
Limits =c("Yeast:Lipid 0:1","Yeast:Sugar 1:14 (HS)","Yeast:Lipid 1:14","Yeast:Lipid 1:0.7","Yeast:Sugar 1:0.7 (HY)")
Labels = c("#f6efe5", "#FFB4B4", "#f6efe5", "#f6efe5", "#C3E6FC")
cbbPalette
= max(tab_lipids$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_lipids' introuvable
=
Plot_Fig2Fggplot(tab_lipids, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8, alpha = 0.5) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/60) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 2.5, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_text(data = tab_stat, mapping = aes(x = 1.7, y = 7.5, label = paste("p=",format(Pvalue,digits=2))),size=3)+
geom_text(data = tab_letter, mapping = aes(x = Diet, y = Total_Length_mm+0.4, label = Letter),size=3)+
scale_fill_manual(limits=Limits,
values=cbbPalette)+
scale_x_discrete("",
limits=Limits,
labels=Labels)+
scale_y_continuous("Midgut length (mm)",
limits=c(2,8.2),
breaks=seq(2,8,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.background = element_blank(),
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
axis.title.x = element_blank(),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_blank(),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(c(0,0,0,0.5), "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA))
Error in ggplot(tab_lipids, aes(x = Diet, y = Total_Length_mm)): objet 'tab_lipids' introuvable
= mutate_if(d[["2F - calories"]],is.character,as.factor) tab_component_calories_2F
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=c("Lard Only","HS","HS Lard","HY Lard","HY")
Limits_1 =c("Yeast:Lipid 0:1","Yeast:Sugar 1:14 (HS)","Yeast:Lipid 1:14","Yeast:Lipid 1:0.7","Yeast:Sugar 1:0.7 (HY)")
Labels_1
$Component <- factor(tab_component_calories_2F$Component, levels = c("Lipids", "Proteins", "Carbohydrates")) tab_component_calories_2F
Error in factor(tab_component_calories_2F$Component, levels = c("Lipids", : objet 'tab_component_calories_2F' introuvable
= c("Lipids","Proteins","Carbohydrates")
Limits_2 = c("Lipids","Proteins","Carbohydrates")
Labels_2
=
Plot_Fig2F_bisggplot(tab_component_calories_2F,aes(x=Diet,y=Calories.contributed))+
geom_bar(stat="identity",aes(fill=Component),color="black",width=.90)+
scale_x_discrete("",
limits=Limits_1,
labels=Labels_1)+
scale_y_reverse("Calories",
breaks=c(seq(0,600,by=200)))+
scale_fill_manual(limits=Limits_2,
values=palette_component_3,
labels=Labels_2)+
theme(axis.title.x = element_blank(),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="white"),
axis.line.y = element_line(colour="black"),
axis.ticks.x = element_line(colour="white"),
axis.ticks.y = element_line(),
axis.text.x = element_text(size=Smallfont,colour="black",angle=45,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
panel.grid = element_blank(),
plot.margin = unit(c(0,0,0,0), "cm"),
legend.direction = "horizontal",
legend.box = "horizontal",
legend.position = "bottom",
legend.key.height = unit(0.3, "cm"),
legend.key.width= unit(0.3, "cm"),
legend.margin=margin(t=0, r=0, b=0, l=0, unit="cm"),
legend.title = element_blank(),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=Smallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size =Mediumfont, colour = "black",face="italic"),
strip.text.y = element_text(size =Mediumfont, colour = "black",face="italic"),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside",
panel.background = element_rect(fill="transparent"))+
guides(fill=guide_legend(ncol=3))
Error in ggplot(tab_component_calories_2F, aes(x = Diet, y = Calories.contributed)): objet 'tab_component_calories_2F' introuvable
=function(a.gplot){
g_legend= ggplot_gtable(ggplot_build(a.gplot))
tmp = which(sapply(tmp$grobs, function(x) x$name) == "guide-box")
leg = tmp$grobs[[leg]]
legend return(legend)}
=g_legend(Plot_Fig2F_bis) mylegend
Error in ggplot_build(a.gplot): objet 'Plot_Fig2F_bis' introuvable
= grid.arrange(Plot_Fig2F,
plot_2F + theme(legend.position="none"),
Plot_Fig2F_bisncol = 1, heights = c(2,2))
Error in arrangeGrob(...): objet 'Plot_Fig2F' introuvable
Antagonism by sugar of yeast-induced growth is not specific to sucrose. Statistical comparisons were performed with HS vs HY for each sugar.
=
tab_sugars "2G"]]%>%
d[[mutate(Total_Length_mm =Total.L/1000)%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(Day_of_Treatment=Day) dplyr
Error in UseMethod("mutate"): pas de méthode pour 'mutate' applicable pour un objet de classe "NULL"
$Sugar = factor(c("Sucrose","Fructose","Glucose","Maltose"), levels = c("Sucrose", "Glucose", "Fructose", "Maltose")) tab_sugars
Error in tab_sugars$Sugar = factor(c("Sucrose", "Fructose", "Glucose", : objet 'tab_sugars' introuvable
=
Sample_size%>%
tab_sugarsgroup_by(Diet,Sugar)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Sugar): objet 'tab_sugars' introuvable
###Stats
# Sucrose:
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = subset(tab_sugars,Sugar=="Sucrose")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_sugars' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = subset(tab_sugars,Sugar=="Sucrose"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_sugars' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = subset(tab_sugars,Sugar=="Sucrose")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_sugars' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS vs HY sucrose")),
tab_stat Rep = nlevels(tab_lipids$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_lipids' introuvable
=tab_stat tab_stat_sucrose
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
# Glucose:
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = subset(tab_sugars,Sugar=="Glucose")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_sugars' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = subset(tab_sugars,Sugar=="Glucose"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_sugars' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = subset(tab_sugars,Sugar=="Glucose")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_sugars' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS vs HY glucose")),
tab_stat Rep = nlevels(tab_lipids$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_lipids' introuvable
=tab_stat tab_stat_Glucose
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
# Fructose:
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = subset(tab_sugars,Sugar=="Fructose")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_sugars' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = subset(tab_sugars,Sugar=="Fructose"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_sugars' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = subset(tab_sugars,Sugar=="Fructose")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_sugars' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS vs HY fructose")),
tab_stat Rep = nlevels(tab_lipids$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_lipids' introuvable
= tab_stat tab_stat_Fructose
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
# Maltose:
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = subset(tab_sugars,Sugar=="Maltose")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_sugars' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = subset(tab_sugars,Sugar=="Maltose"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_sugars' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = subset(tab_sugars,Sugar=="Maltose")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_sugars' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS vs HY maltose")),
tab_stat Rep = nlevels(tab_lipids$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_lipids' introuvable
= tab_stat tab_stat_Maltose
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
= rbind(tab_stat_sucrose,tab_stat_Glucose,tab_stat_Fructose,tab_stat_Maltose) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_sucrose' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
$Sugar = c("Sucrose","Glucose","Fructose","Maltose") tab_stat
Error in tab_stat$Sugar = c("Sucrose", "Glucose", "Fructose", "Maltose"): objet 'tab_stat' introuvable
$Sugar =as.factor(tab_stat$Sugar) tab_stat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.factor' : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif.","Sugar"),row.names = FALSE) %>% add_header_above(c("log(Total_Length_mm) ~ Diet + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
= c("HS","HY")
Limits = c("HS","HY")
Labels
= max(tab_sugars$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_sugars' introuvable
=
Plot_Fig2Gggplot(tab_sugars, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot(colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z / 60) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 2.5, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(data = tab_stat,aes(xmin = 1, xmax = 2, annotations = formatC(paste("p=",Pvalue), digits = 2), y_position = 8.5), textsize = 3, vjust = -0.2, manual = TRUE)+
facet_grid(.~Sugar)+
scale_fill_manual(limits=Limits,
values=palette_diet_2)+
scale_x_discrete("",
limits=Limits,
labels=Labels)+
scale_y_continuous("Midgut length (mm)",
limits=c(2,9),
breaks=seq(2,8,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.background = element_blank(),
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
axis.title.x = element_blank(),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(c(0,0,0,0.5), "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_sugars, aes(x = Diet, y = Total_Length_mm)): objet 'tab_sugars' introuvable
Plot_Fig2G
Error in eval(expr, envir, enclos): objet 'Plot_Fig2G' introuvable
##Export Figure 2
Set of diets utilized for the nutritional geometry experiment. Numbers on dots denote sample sizes for figure 2A (pool of three independent biological replicates). We utilized 28 different diets, varying either caloric content or the yeast to sucrose ratio. The complete list of recipes can be found in Table 1. Complete numbers can be found in manuscript figure
=
tab_nutri_geo_design "2 - S1A"]]%>%
d[[::rename(Yeast.in.Diet=Yeast,
dplyrSucrose.in.Diet=Sugar)
Error in UseMethod("rename"): pas de méthode pour 'rename' applicable pour un objet de classe "NULL"
=
tab_raw_2A "2A"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
mutate(Conc = paste(round(Sucrose.in.Diet,digits=2),"x",round(Yeast.in.Diet,digits=2),sep=""))%>%
group_by(Yeast.in.Diet,Sucrose.in.Diet)%>%
summarise(Sample_size=n())
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
= left_join(tab_nutri_geo_design,tab_raw_2A) tab_nutri_geo_design
Error in left_join(tab_nutri_geo_design, tab_raw_2A): objet 'tab_nutri_geo_design' introuvable
=
Plot_Fig2S1Aggplot(tab_nutri_geo_design, aes(x = Sucrose.in.Diet, y = Yeast.in.Diet,label=Sample_size))+
geom_point(aes(size=Calories), colour = "black") +
scale_x_continuous("Sucrose in diet (g/L)",
limits=c(-5,300),
breaks=seq(0,300,by=100))+
scale_y_continuous("Yeast in diet (g/L)",
limits=c(-5,300),
breaks=seq(0,300,by=100))+
geom_text(data=subset(tab_nutri_geo_design,Yeast.in.Diet>=30 | Sucrose.in.Diet>=30),color="white",size=3)+
scale_size_continuous(range = c(1,13)) +
theme(panel.background = element_blank(),
panel.grid.major = element_line(colour = "black",linetype=3),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(c(0,0,0,0.5), "cm"),
legend.direction = "horizontal",
legend.box = "horizontal",
legend.position = "top",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size =Smallfont, colour = "black",face="italic"),
strip.text.y = element_text(size =Smallfont, colour = "black",face="italic"),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")+
guides(size=guide_legend(ncol=4))
Error in ggplot(tab_nutri_geo_design, aes(x = Sucrose.in.Diet, y = Yeast.in.Diet, : objet 'tab_nutri_geo_design' introuvable
Plot_Fig2S1A
Error in eval(expr, envir, enclos): objet 'Plot_Fig2S1A' introuvable
HS and HY diet compared to standard diets used for Drosophila
FD&C1 blue transit assay (feeding assay) showing amount of food defecated, and by inference ingested, in the nutritional geometry experiment. The scale maps color to units. The graph indicates compensatory feeding at lower nutrient densities, especially low yeast. These data were used to calculate the total amount of yeast and sucrose ingested on each diet in Figure 2-supplemental figure 1C.
=
tab_geom_fecal "2 - S1B"]]
d[[
jpeg(filename = "F:/Dropbox/Github/Bonfini_eLife_2021/data/Plot_Fig2-S1B.jpeg",
res = 600,
width = 5, height = 4, units = 'in' )
par(cex=1, mar = c(4, 4, 1, 3))
with(tab_geom_fecal, geomPlotta(x = Sucrose.in.Diet, y = Yeast.in.Diet, z = (Absorbance*10), alf = 1, xlim = c(-10, 300), ylim = c(-10, 300), xlab = "Sucrose in diet (g/L)", ylab = "Yeast in diet (g/L)", frame.plot= FALSE, cex.lab=1, cex.axis =1, las=1, labcex=1, asp=1))
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/Plot_Fig2-S1B.jpeg") img2S1B
Error in transpose(y): object is NULL
= rasterGrob(img2S1B) gob_imageFig2S1B
Error in rasterGrob(img2S1B): objet 'img2S1B' introuvable
grid.draw(gob_imageFig2S1B)
Error in grid.draw(gob_imageFig2S1B): objet 'gob_imageFig2S1B' introuvable
Yeast and sucrose have mutually antagonistic impacts on midgut length. Plots show midgut length as a function of sucrose or yeast ingested (g/L x Absorbance from Figure 2-supplemental figure 1B), or their ratio multiplied by ingestion per diet.
=
tab_nutri_geo "2A"]]%>%
d[[mutate(Total.Lmm = Total.L / 1000)
Error in UseMethod("mutate"): pas de méthode pour 'mutate' applicable pour un objet de classe "NULL"
<- tab_nutri_geo %>%
tab_nutri_geo2 group_by(concatenate) %>%
summarize(Calories.ingested = mean(Calories.ingested),
Midgut.length = mean(Total.Lmm),
Yeast.ingested = mean(Yeast.ingested),
Sucrose.ingested = mean(Sucrose.ingested))
Error in group_by(., concatenate): objet 'tab_nutri_geo' introuvable
<- ggplot(tab_nutri_geo2, aes(x=Sucrose.ingested, y=Yeast.ingested)) graph
Error in ggplot(tab_nutri_geo2, aes(x = Sucrose.ingested, y = Yeast.ingested)): objet 'tab_nutri_geo2' introuvable
=
Plot_Fig2S1C+ geom_point(aes(size=Calories.ingested, fill=Midgut.length), stroke=1.5, shape=21, color="black") +
graph scale_size(range = c(1,5)) +
scale_fill_viridis_c() +
theme(plot.title= element_text(hjust = 0.5))+
scale_x_continuous("Sucrose ingested (g/L x Absorbance)",
limits=c(-5,160),
breaks=seq(0,160,by=25))+
scale_y_continuous("Yeast ingested (g/L x Absorbance)",
limits=c(-5,50),
breaks=seq(0,50,by=10))+
scale_size_continuous(range = c(1,10)) +
theme(panel.background = element_blank(),
panel.grid.major = element_line(colour = "black",linetype=3),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(c(0,0,0,0.5), "cm"),
legend.direction = "horizontal",
legend.box = "vertical",
legend.position = c(0.79,0.79),
legend.key.height = unit(0.3, "cm"),
legend.key.width= unit(0.4, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
strip.text.x = element_text(size =Smallfont, colour = "black",face="italic"),
strip.text.y = element_text(size =Smallfont, colour = "black",face="italic"),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")+
labs(fill = "Midgut length (mm)", size = "Calories ingested")
Error in eval(expr, envir, enclos): objet 'graph' introuvable
Plot_Fig2S1C
Error in eval(expr, envir, enclos): objet 'Plot_Fig2S1C' introuvable
##Export Figure 2S1
Food texture does not explain the differential effects of HS and HY diets on midgut length. Addition of inulin (inu), pectin (pect), cellulose (cell), and all previous fibers mixed (AF) or pectin + cellulose (PC) to HS does not increase midgut length. Addition of fibers to HY (HY + AF) and HY + pectin + cellulose (HY + PC2) does not affect midgut length.
=
tab_fiber "2 - S2A"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
mutate(Total_Length_mm = Total.L/1000)%>%
::rename(Diet=Food) dplyr
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
$Diet = factor(tab_fiber$Diet, levels = c("HS", "HS + Inu", "HS + Pect", "HS + Pect2", "HS + Cell", "HS + Cell2", "HS + AF", "HS + PC2", "HY + AF", "HY + PC2", "HY")) tab_fiber
Error in factor(tab_fiber$Diet, levels = c("HS", "HS + Inu", "HS + Pect", : objet 'tab_fiber' introuvable
=
Sample_size%>%
tab_fibergroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'tab_fiber' introuvable
###Stats
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tab_fiber) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_fiber' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tab_fiber)
Error in is.data.frame(data): objet 'tab_fiber' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tab_fiber) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_fiber' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
#Now we make a tab with the results
= data.frame(Variable = as.character(paste("Any difference")),
tab_stat Rep = nlevels(tab_fiber$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_fiber' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Total_Length_mm) ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
= lmer(Total_Length_mm ~ Diet + (1 | Repeat), data = tab_fiber) mod.gen
Error: bad 'data': objet 'tab_fiber' introuvable
= glht(mod.gen, linfct=mcp(Diet="Tukey")) multcomp
Error in model.matrix(model) : objet 'mod.gen' introuvable
Error in factor_contrasts(model): no 'model.matrix' method for 'model' found!
= cld(multcomp) tmp
Error in cld(multcomp): objet 'multcomp' introuvable
= aggregate(data=subset(tab_fiber,!is.na(Total_Length_mm)),Total_Length_mm ~ Diet, max) letter_position
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_fiber' introuvable
= as.data.frame(tmp$mcletters$Letters) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tmp' introuvable
$Diet=rownames(tab_letter) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'rownames' : objet 'tab_letter' introuvable
colnames(tab_letter)[1] = "Letter"
Error in colnames(tab_letter)[1] = "Letter": objet 'tab_letter' introuvable
= left_join(tab_letter,letter_position) tab_letter
Error in left_join(tab_letter, letter_position): objet 'tab_letter' introuvable
### Plot
= c("HS", "HS + Inu", "HS + Pect", "HS + Pect2", "HS + Cell", "HS + Cell2", "HS + AF", "HS + PC2", "HY + AF", "HY + PC2", "HY")
Limits
= c("#FFB4B4", "#f6efe5", "#f6efe5", "#f6efe5", "#f6efe5", "#f6efe5", "#f6efe5","#f6efe5", "#f6efe5", "#f6efe5", "#C3E6FC")
cbbPalette = max(tab_fiber$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_fiber' introuvable
=
Plot_Fig2S2Aggplot(tab_fiber, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/60) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 2.5, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_text(data = tab_letter, mapping = aes(x = Diet, y = Total_Length_mm+0.4, label = Letter),size=3)+
geom_text(data = tab_stat, mapping = aes(x = 1.5, y = 7.5, label = paste("p=",format(Pvalue,digits=2))),size=3)+
scale_fill_manual(limits=Limits,
values=cbbPalette)+
scale_x_discrete("",
limits=Limits)+
scale_y_continuous("Midgut length (mm)",
limits=c(2,8),
breaks=seq(2,8,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.background = element_blank(),
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
axis.title.x = element_blank(),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=45,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(c(0,0,0,0.5), "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA))
Error in ggplot(tab_fiber, aes(x = Diet, y = Total_Length_mm)): objet 'tab_fiber' introuvable
Plot_Fig2S2A
Error in eval(expr, envir, enclos): objet 'Plot_Fig2S2A' introuvable
Changes in food texture due to variation in agar concentration can affect midgut length but do not explain the effect of the diet treatment. Changes in agar concentration do not change midgut length on HS. Either increasing or decreasing agar concentration reduces midgut length on HY.
=
tab_agar "2 - S2B"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
mutate(Total_Length_mm = Total.L/1000)%>%
::rename(Diet=Food) dplyr
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
levels(tab_agar$Diet)[levels(tab_agar$Diet)=="HS"] ="HS (original, 1.5%)"
Error in levels(tab_agar$Diet)[levels(tab_agar$Diet) == "HS"] = "HS (original, 1.5%)": objet 'tab_agar' introuvable
levels(tab_agar$Diet)[levels(tab_agar$Diet)=="HY"] ="HY (original, 1.5%)"
Error in levels(tab_agar$Diet)[levels(tab_agar$Diet) == "HY"] = "HY (original, 1.5%)": objet 'tab_agar' introuvable
=
Sample_size%>%
tab_agargroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'tab_agar' introuvable
###Stats
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tab_agar) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_agar' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tab_agar)
Error in is.data.frame(data): objet 'tab_agar' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tab_agar) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_agar' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
#Now we make a tab with the results
= data.frame(Variable = as.character(paste("Any difference")),
tab_stat Rep = nlevels(tab_agar$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_agar' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Total_Length_mm) ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
= lmer(Total_Length_mm ~ Diet + (1 | Repeat), data = tab_agar) mod.gen
Error: bad 'data': objet 'tab_agar' introuvable
= glht(mod.gen, linfct=mcp(Diet="Tukey")) multcomp
Error in model.matrix(model) : objet 'mod.gen' introuvable
Error in factor_contrasts(model): no 'model.matrix' method for 'model' found!
= cld(multcomp) tmp
Error in cld(multcomp): objet 'multcomp' introuvable
= aggregate(data=subset(tab_agar,!is.na(Total_Length_mm)),Total_Length_mm ~ Diet, max) letter_position
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_agar' introuvable
= as.data.frame(tmp$mcletters$Letters) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tmp' introuvable
$Diet=rownames(tab_letter) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'rownames' : objet 'tab_letter' introuvable
colnames(tab_letter)[1] = "Letter"
Error in colnames(tab_letter)[1] = "Letter": objet 'tab_letter' introuvable
= left_join(tab_letter,letter_position) tab_letter
Error in left_join(tab_letter, letter_position): objet 'tab_letter' introuvable
### Plot
= c("HS Agar 0.5%", "HS Agar 1%", "HS (original, 1.5%)", "HS Agar 3%", "HY Agar 0.5%", "HY Agar 1%", "HY (original, 1.5%)", "HY Agar 3%")
Limits
= c("#FFB4B4", "#FFB4B4", "#FFB4B4", "#FFB4B4", "#C3E6FC", "#C3E6FC", "#C3E6FC", "#C3E6FC")
cbbPalette = max(tab_agar$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_agar' introuvable
=
Plot_Fig2S2Bggplot(tab_agar, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/60) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 2.5, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_text(data = tab_letter, mapping = aes(x = Diet, y = Total_Length_mm+0.4, label = Letter),size=3)+
geom_text(data = tab_stat, mapping = aes(x = 1.5, y = 7.5, label = paste("p=",Pvalue)),size=3)+
scale_fill_manual(limits=Limits,
values=cbbPalette)+
scale_x_discrete("",
limits=Limits)+
scale_y_continuous("Midgut length (mm)",
limits=c(2,8),
breaks=seq(2,8,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.background = element_blank(),
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
axis.title.x = element_blank(),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=34,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(c(0,0,0,0.5), "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA))
Error in ggplot(tab_agar, aes(x = Diet, y = Total_Length_mm)): objet 'tab_agar' introuvable
Plot_Fig2S2B
Error in eval(expr, envir, enclos): objet 'Plot_Fig2S2B' introuvable
Sorbitol, a nutritious but not palatable sugar, has increased size on HY compared to HS, while Arabinose, a palatable but not nutritious sugar, results in death of flies before reaching dissection day on HS, and decreased size of midguts on HY diet. Statistical analysis is HS vs HY for each sugar.
=
tab_xtrsugars_rev "2S2C"]]%>%
d[[mutate(Total_Length_mm =Total.L/1000)%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(Day_of_Treatment=Day)%>%
dplyrmutate(Sugar=fct_relevel(Sugar,"Sucrose","Sorbitol", "Arabinose"))
Error in UseMethod("mutate"): pas de méthode pour 'mutate' applicable pour un objet de classe "NULL"
#tab_xtrsugars_rev$Sugar = factor(c("Sucrose","Sorbitol","Arabinose"), levels = c("Sucrose", "Sorbitol", "Arabinose"))
=
Sample_size%>%
tab_xtrsugars_revgroup_by(Diet,Sugar)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Sugar): objet 'tab_xtrsugars_rev' introuvable
###Stats
# Sucrose:
= fitme((Total_Length_mm) ~ Diet + (1 | Repeat), data = subset(tab_xtrsugars_rev,Sugar=="Sucrose")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_xtrsugars_rev' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest((Total_Length_mm) ~ Diet + (1 / Repeat), data = subset(tab_xtrsugars_rev,Sugar=="Sucrose"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_xtrsugars_rev' introuvable
= fitme((Total_Length_mm) ~ 1 + (1 | Repeat), data = subset(tab_xtrsugars_rev,Sugar=="Sucrose")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_xtrsugars_rev' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS vs HY Sucrose")),
tab_stat Rep = nlevels(tab_lipids$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_lipids' introuvable
=tab_stat tab_stat_sucrose
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
# Sorbitol:
= fitme((Total_Length_mm) ~ Diet + (1 | Repeat), data = subset(tab_xtrsugars_rev,Sugar=="Sorbitol")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_xtrsugars_rev' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest((Total_Length_mm) ~ Diet + (1 / Repeat), data = subset(tab_xtrsugars_rev,Sugar=="Sorbitol"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_xtrsugars_rev' introuvable
= fitme((Total_Length_mm) ~ 1 + (1 | Repeat), data = subset(tab_xtrsugars_rev,Sugar=="Sorbitol")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_xtrsugars_rev' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS vs HY Sorbitol")),
tab_stat Rep = nlevels(tab_lipids$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_lipids' introuvable
=tab_stat tab_stat_Sorbitol
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
= rbind(tab_stat_sucrose,tab_stat_Sorbitol) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_sucrose' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
$Sugar = c("Sucrose","Sorbitol") tab_stat
Error in tab_stat$Sugar = c("Sucrose", "Sorbitol"): objet 'tab_stat' introuvable
$Sugar=as.factor(tab_stat$Sugar) tab_stat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.factor' : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif.","Sugar"),row.names = FALSE) %>% add_header_above(c("log(Total_Length_mm) ~ Diet + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
= c("HS","HY")
Limits = c("HS","HY")
Labels
= max(tab_xtrsugars_rev$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_xtrsugars_rev' introuvable
=
Plot_Fig2S2Cggplot(tab_xtrsugars_rev, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z / 60) +
facet_grid(.~Sugar)+
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 1.8, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(data = tab_stat,aes(xmin = 1, xmax = 2, annotations = formatC(paste("p=",Pvalue), digits = 2), y_position = 7.4), textsize = 3, vjust = -0.2, manual = TRUE)+
scale_fill_manual(limits=Limits,
values=palette_diet_2)+
scale_x_discrete("",
limits=Limits,
labels=Labels)+
scale_y_continuous("Midgut length (mm)",
limits=c(1.7,7.5),
breaks=seq(2,8,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.background = element_blank(),
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
axis.title.x = element_blank(),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(c(0,0,0,0.5), "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_xtrsugars_rev, aes(x = Diet, y = Total_Length_mm)): objet 'tab_xtrsugars_rev' introuvable
Plot_Fig2S2C
Error in eval(expr, envir, enclos): objet 'Plot_Fig2S2C' introuvable
##Export Figure 2S2
Representative pictures of midguts from flies kept on HS (A) or HY (B) diet. Green arrows indicate intestinal stem cells (ISCs), marked only by GFP (green), red arrows mark enteroblasts (EBs), marked by GFP and GBE Su(H)-lacZ (red), and white arrow indicate enteroendocrine (EE) cells, marked with anti-Prospero antibody (white). All nuclei are stained with DAPI (blue). Complete graphical annotation can be found in manuscript figures
Error in transpose(y): object is NULL
Error in rasterGrob(img3A): objet 'img3A' introuvable
Error in grid.draw(gob_imageFig3A): objet 'gob_imageFig3A' introuvable
Error in transpose(y): object is NULL
Error in rasterGrob(img3B): objet 'img3B' introuvable
Error in grid.draw(gob_imageFig3B): objet 'gob_imageFig3B' introuvable
Quantification of total cell numbers in the posterior midgut (R4) for HS and HY
=
Tab_cellnumber "3C"]]%>%
d[[mutate(across(c(Diet,Line,Day,Repeat,GutNumber,Region),as.factor))%>%
mutate(across(c(ISC.AL,EB.AL,EE.AL,EC.AL),round,0))
Error in UseMethod("mutate"): pas de méthode pour 'mutate' applicable pour un objet de classe "NULL"
###Stats
#### ISC
= fitme(log(ISC.AL) ~ Diet + (1 | Repeat), data = Tab_cellnumber) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Tab_cellnumber' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(ISC.AL) ~ Diet + (1 / Repeat), data = Tab_cellnumber)
Error in is.data.frame(data): objet 'Tab_cellnumber' introuvable
= fitme(log(ISC.AL) ~ 1 + (1 | Repeat), data = Tab_cellnumber) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Tab_cellnumber' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("HS vs HY ISC")),
tab_stat Cell_type = as.character(paste("ISC.AL")),
Rep = nlevels(Tab_cellnumber$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Tab_cellnumber' introuvable
=tab_stat tab_stat_ISC
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#### EB
= fitme(log(EB.AL) ~ Diet + (1 | Repeat),data = Tab_cellnumber) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Tab_cellnumber' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(EB.AL) ~ Diet + (1 / Repeat),data = Tab_cellnumber)
Error in is.data.frame(data): objet 'Tab_cellnumber' introuvable
= fitme(log(EB.AL) ~ 1 + (1 | Repeat), data = Tab_cellnumber) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Tab_cellnumber' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("HS vs HY EB")),
tab_stat Cell_type = as.character(paste("EB.AL")),
Rep = nlevels(Tab_cellnumber$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Tab_cellnumber' introuvable
=tab_stat tab_stat_EB
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#### EC
= fitme(log(EC.AL) ~ Diet + (1 | Repeat), data = Tab_cellnumber) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Tab_cellnumber' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(EC.AL) ~ Diet + (1 / Repeat), data = Tab_cellnumber)
Error in is.data.frame(data): objet 'Tab_cellnumber' introuvable
= fitme(log(EC.AL) ~ 1 + (1 | Repeat), data = Tab_cellnumber) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Tab_cellnumber' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
test
function (pkg = ".", filter = NULL, stop_on_failure = FALSE,
export_all = TRUE, ...)
{
save_all()
pkg <- as.package(pkg)
if (!uses_testthat(pkg) && interactive()) {
cli::cli_alert_danger("No testing infrastructure found. Create it?")
if (utils::menu(c("Yes", "No")) == 1) {
usethis_use_testthat(pkg)
}
return(invisible())
}
load_all(pkg$path)
cli::cli_alert_info("Testing {.pkg {pkg$package}}")
withr::local_envvar(r_env_vars())
testthat::test_local(pkg$path, filter = filter, stop_on_failure = stop_on_failure,
...)
}
<bytecode: 0x000000009e53be20>
<environment: namespace:devtools>
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("HS vs HY EC")),
tab_stat Cell_type = as.character(paste("EC.AL")),
Rep = nlevels(Tab_cellnumber$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Tab_cellnumber' introuvable
=tab_stat tab_stat_EC
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#### EE
= fitme(log(EE.AL) ~ Diet + (1 | Repeat), data = Tab_cellnumber) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Tab_cellnumber' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(EE.AL) ~ Diet + (1 / Repeat), data = Tab_cellnumber)
Error in is.data.frame(data): objet 'Tab_cellnumber' introuvable
= fitme(log(EE.AL) ~ 1 + (1 | Repeat), data = Tab_cellnumber) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Tab_cellnumber' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("HS vs HY EE")),
tab_stat Cell_type = as.character(paste("EE.AL")),
Rep = nlevels(Tab_cellnumber$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Tab_cellnumber' introuvable
=tab_stat tab_stat_EE
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
=rbind(tab_stat_ISC,tab_stat_EB,tab_stat_EC,tab_stat_EE) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_ISC' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Cell type", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Cell number) ~ Diet + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Cell type", "Replicates", : objet 'tab_stat' introuvable
### Plot
= c("HS", "HY")
Limits
=
Tab_cellnumber_gather%>%
Tab_cellnumber select(Diet,Line,Day,Repeat,GutNumber,Region,EB.AL,ISC.AL,EE.AL,EC.AL)%>%
gather(key, value, -c(Diet,Line,Day,Repeat,GutNumber,Region)) %>%
::rename(Cell_type = key,
dplyrCell_number = value) %>%
mutate_if(is.character,as.factor)
Error in select(., Diet, Line, Day, Repeat, GutNumber, Region, EB.AL, : objet 'Tab_cellnumber' introuvable
=
Sample_sizesubset(Tab_cellnumber_gather,!is.na(Day))%>%
group_by(Diet,Cell_type)%>%
summarise(Sample_size=n(),
max=max(Cell_number,na.rm=T))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Tab_cellnumber_gather' introuvable
=subset(Sample_size,Diet=="HY") tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Sample_size' introuvable
=
tab_stat left_join(tab_stat,tmp)
Error in left_join(tab_stat, tmp): objet 'tab_stat' introuvable
= c("ISC", "EB","EC","EE")
Treatment.status names(Treatment.status) = c("ISC.AL", "EB.AL","EC.AL","EE.AL")
=
Plot_Fig3Cggplot(Tab_cellnumber_gather, aes(x = Diet, y = Cell_number/100*2))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center") +
facet_wrap(.~Cell_type,scale="free_y",labeller=labeller(Cell_type=Treatment.status))+
geom_blank(data=tab_stat, aes(y = max/100*2.5))+
geom_signif(data = tab_stat, aes(xmin = 1, xmax = 2, annotations = formatC(paste("p=",Pvalue), digits = 2), y_position = max/100*2.2,), textsize = 3, vjust = -0.2, manual = TRUE)+
scale_fill_manual(limits=Limits,
values=palette_diet_2)+
scale_x_discrete("",
limits=c("HS", "HY"),
labels=c("HS (n = 46)", "HY (n = 55)"))+
scale_y_continuous(expression(paste("Cell number in posterior midgut (x",10^2,")",sep="")))+
stat_summary(fun = mean, geom = "point", size = 2.5, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 1.5, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 1, r = 0, b = 1, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 1, r = 0, b = 1, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(Tab_cellnumber_gather, aes(x = Diet, y = Cell_number/100 * : objet 'Tab_cellnumber_gather' introuvable
Plot_Fig3C
Error in eval(expr, envir, enclos): objet 'Plot_Fig3C' introuvable
HS and HY diets do not affect the relative proportion of cell types in the midgut (error is standard error of the mean).
=
tab_prop_cell_type "3C"]]%>%
d[[::select(Diet, Line, Day, Repeat, GutNumber, Region | ends_with(".AL") & !starts_with("ESG"))%>%
dplyrmutate_if(is.character,as.factor)%>%
drop_na()%>%
mutate(across(c(ISC.AL,EB.AL,EE.AL,EC.AL),round,0))%>%
mutate(Total_cell=ISC.AL+EB.AL+EE.AL+EC.AL,
proportion_ISC=ISC.AL/Total_cell*100,
proportion_EB=EB.AL/Total_cell*100,
proportion_EE=EE.AL/Total_cell*100,
proportion_EC=EC.AL/Total_cell*100)%>%
::select(Diet, Line, Day, Repeat, GutNumber, Region | starts_with("proportion"))%>%
dplyrgather(key, value, -!starts_with("proportion") )%>%
::rename(Cell_type = key,
dplyrCell_proportion = value) %>%
mutate_if(is.character,as.factor) %>%
group_by(Diet,Cell_type)%>%
summarise(mean_proportion=mean(Cell_proportion, na.rm=T),
se_proportion=se(Cell_proportion)) %>%
as.data.frame()
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'select' applicable pour un objet de classe "NULL"
for (i in 1:length(tab_prop_cell_type$se_proportion)){
$se_proportionGraphPlus[i] = tab_prop_cell_type$mean_proportion[i]+tab_prop_cell_type$se_proportion[i]
tab_prop_cell_type$se_proportionGraphMinus[i] = tab_prop_cell_type$mean_proportion[i]-tab_prop_cell_type$se_proportion[i]
tab_prop_cell_type }
Error in eval(expr, envir, enclos): objet 'tab_prop_cell_type' introuvable
for (i in 1:length(tab_prop_cell_type$se_proportion)){
if(tab_prop_cell_type$Cell_type[i]=="proportion_EB"){
$se_proportionGraphPlus[i] = tab_prop_cell_type$mean_proportion[i]+tab_prop_cell_type$se_proportion[i]
tab_prop_cell_type
$se_proportionGraphMinus[i] = tab_prop_cell_type$mean_proportion[i]-tab_prop_cell_type$se_proportion[i]
tab_prop_cell_type
else{
}if(tab_prop_cell_type$Cell_type[i]=="proportion_EC"){
$se_proportionGraphPlus[i] = tab_prop_cell_type$mean_proportion[i-1]+tab_prop_cell_type$mean_proportion[i]+tab_prop_cell_type$se_proportion[i]
tab_prop_cell_type
$se_proportionGraphMinus[i] = tab_prop_cell_type$mean_proportion[i-1]+tab_prop_cell_type$mean_proportion[i]+-tab_prop_cell_type$se_proportion[i]
tab_prop_cell_type
else{
}if(tab_prop_cell_type$Cell_type[i]=="proportion_EE"){
$se_proportionGraphPlus[i] =tab_prop_cell_type$mean_proportion[i-1]+ tab_prop_cell_type$mean_proportion[i-2]+tab_prop_cell_type$mean_proportion[i]+tab_prop_cell_type$se_proportion[i]
tab_prop_cell_type
$se_proportionGraphMinus[i] =tab_prop_cell_type$mean_proportion[i-1]+ tab_prop_cell_type$mean_proportion[i-2]+tab_prop_cell_type$mean_proportion[i]-tab_prop_cell_type$se_proportion[i]
tab_prop_cell_type
else{
}$se_proportionGraphPlus[i] =tab_prop_cell_type$mean_proportion[i-1]+tab_prop_cell_type$mean_proportion[i-2]+ tab_prop_cell_type$mean_proportion[i-3]+tab_prop_cell_type$mean_proportion[i]+tab_prop_cell_type$se_proportion[i]
tab_prop_cell_type
$se_proportionGraphMinus[i] =tab_prop_cell_type$mean_proportion[i-1]+tab_prop_cell_type$mean_proportion[i-2]+ tab_prop_cell_type$mean_proportion[i-3]+tab_prop_cell_type$mean_proportion[i]-tab_prop_cell_type$se_proportion[i]
tab_prop_cell_type
}
}
} }
Error in eval(expr, envir, enclos): objet 'tab_prop_cell_type' introuvable
$Cell_type =factor(tab_prop_cell_type$Cell_type,levels = c("proportion_ISC","proportion_EE","proportion_EC","proportion_EB")) tab_prop_cell_type
Error in factor(tab_prop_cell_type$Cell_type, levels = c("proportion_ISC", : objet 'tab_prop_cell_type' introuvable
=
Plot_Fig3D ggplot(tab_prop_cell_type, aes(x=Diet, y=mean_proportion))+
geom_bar(stat="identity",aes(fill=Cell_type),color="black",width=.90)+
geom_errorbar(aes(ymin= se_proportionGraphMinus, ymax= se_proportionGraphPlus),width=0.25)+
scale_fill_manual(name = "Cell types",
values=c("#1fd511","#ffffff", "#5869d5","#fe0000"),
labels = c("ISC", "EE", "EC","EB"))+
scale_y_continuous("Proportion of cells (% \u00B1se)",
limits=c(0,101),
breaks=seq(0,100,by=25))+
theme(
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_blank(),
axis.title.y = element_text(size=Smallfont,colour="black", hjust = 0.1 ),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "bottom",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=Smallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size =Smallfont, colour = "black",face="italic"),
strip.text.y = element_text(size =Smallfont, colour = "black",face="italic"),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_prop_cell_type, aes(x = Diet, y = mean_proportion)): objet 'tab_prop_cell_type' introuvable
Plot_Fig3D
Error in eval(expr, envir, enclos): objet 'Plot_Fig3D' introuvable
Diet affects enterocyte size. Representative picture of midguts stained with anti-Mesh antibody on HS (D, left) vs HY (E, right) diet. Complete graphical annotation can be found in manuscript figures
Error in transpose(y): object is NULL
Error in rasterGrob(img3E): objet 'img3E' introuvable
Error in grid.draw(gob_imageFig3E): objet 'gob_imageFig3E' introuvable
Error in transpose(y): object is NULL
Error in rasterGrob(img3F): objet 'img3F' introuvable
Error in grid.draw(gob_imageFig3F): objet 'gob_imageFig3F' introuvable
Quantification of EC size of individuals on HS or HY diet for 5 days confirms an increase in cell size on HY diet.
=
tab_cell_area "3G"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_cell_areagroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'tab_cell_area' introuvable
###Stats
= fitme(log(Area) ~ Diet + (1|Repeat),data =tab_cell_area) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_cell_area' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Area) ~ Diet + (1/Repeat),data =tab_cell_area)
Error in is.data.frame(data): objet 'tab_cell_area' introuvable
= fitme(log(Area) ~ 1 + (1|Repeat),data =tab_cell_area) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_cell_area' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS vs HY")),
tab_stat Rep = nlevels(tab_cell_area$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_cell_area' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Cell area) ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
### Plot
= max(tab_cell_area$Area/1000, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_cell_area' introuvable
=
Plot_Fig3Gggplot(tab_cell_area, aes(x = Diet, y = Area/1000))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/140) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = -0.01, label = paste("(",Sample_size,")",sep="")),size=3)+
# geom_text(data = tab_stat, mapping = aes(x = 1.5, y = 0.62, label = paste("p=",format(Pvalue,digits=3))),size=3)+
geom_signif(annotation = formatC(paste("p=",tab_stat$Pvalue), digits = 2), textsize = 3, y_position = 0.86, xmin = 1, xmax = 2, tip_length = c(0.02, 0.02), vjust = -0.2)+
scale_fill_manual(limits=c("HS", "HY"),
values= palette_diet_2 )+
scale_x_discrete("",
limits=c("HS", "HY"),
labels=c("HS", "HY"))+
scale_y_continuous(expression(paste("EC area (10"^3, "mm"^2,")",sep="")),
limits=c(-0.01,0.9),
breaks=seq(0,0.8,by=0.1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA))
Error in ggplot(tab_cell_area, aes(x = Diet, y = Area/1000)): objet 'tab_cell_area' introuvable
Plot_Fig3G
Error in eval(expr, envir, enclos): objet 'Plot_Fig3G' introuvable
##Export Figure 3
ECs are more densely packed on HS diet than on HY diet.
=
tab_ECarea "3C"]]%>%
d[[select(Diet, Line, Day, Repeat, GutNumber, Region,EC.A)%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(EC_density=EC.A)%>%
dplyrmutate(EC_density_mm=EC_density*1000)%>%
drop_na()
Error in UseMethod("select"): pas de méthode pour 'select' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_ECareagroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'tab_ECarea' introuvable
###Stats
= fitme(EC_density_mm ~ Diet + (1 | Repeat), data = tab_ECarea) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_ECarea' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(EC_density_mm ~ Diet + (1 / Repeat), data = tab_ECarea)
Error in is.data.frame(data): objet 'tab_ECarea' introuvable
= fitme(EC_density_mm ~ 1 + (1 | Repeat), data = tab_ECarea) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_ECarea' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
#Now we make a tab with the results
= data.frame(Variable = as.character(paste("HS vs HY")),
tab_stat Rep = nlevels(tab_ECarea$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_ECarea' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("EC density ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
= c("HS","HY")
Limits
=max(tab_ECarea$EC_density_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_ECarea' introuvable
=
Plot_Fig3S1A ggplot(tab_ECarea, aes(x=Diet, y=EC_density_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/60) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 1.8, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(annotation = formatC(paste("p=",tab_stat$Pvalue), digits = 2), textsize = 3, y_position = 9, xmin = 1, xmax = 2, tip_length = c(0.02, 0.02), vjust = -0.2)+
scale_fill_manual(limits=Limits,
values=palette_diet_2)+
scale_x_discrete("",
limits=c("HS", "HY"),
labels=c("HS", "HY"))+
scale_y_continuous(expression(paste("EC density (per ",mm^2,")")),
limits=c(1.5,9.5),
breaks=seq(2,8,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA))
Error in ggplot(tab_ECarea, aes(x = Diet, y = EC_density_mm)): objet 'tab_ECarea' introuvable
Plot_Fig3S1A
Error in eval(expr, envir, enclos): objet 'Plot_Fig3S1A' introuvable
Scheme illustrating area measurements. Top view in this scheme is as in pictures shown in figure 3 D, E. 3D side view show side view with Mesh showing measured surface.
Error in transpose(y): object is NULL
Error in rasterGrob(img3S1B): objet 'img3S1B' introuvable
Error in grid.draw(gob_imageFig3S1B): objet 'gob_imageFig3S1B' introuvable
Diet affects enterocyte size. Quantification of EC height of MyoTS>GFP on HS or HY diet demonstrates an increase in cell height on HY diet.
=
tab_ECheight "3 - S1C"]]%>%
d[[select(Diet, Repeat, GutNumber, Region, Height)%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(EC_height=Height)%>%
dplyrdrop_na()
Error in UseMethod("select"): pas de méthode pour 'select' applicable pour un objet de classe "NULL"
$EC_height <- as.numeric(tab_ECheight$EC_height) tab_ECheight
Error in eval(expr, envir, enclos): objet 'tab_ECheight' introuvable
=
Sample_size%>%
tab_ECheightgroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'tab_ECheight' introuvable
###Stats
= fitme((EC_height) ~ Diet + (1 | Repeat), data = tab_ECheight) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_ECheight' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(EC_height ~ Diet + (1 / Repeat), data = tab_ECheight)
Error in is.data.frame(data): objet 'tab_ECheight' introuvable
= fitme(EC_height ~ 1 + (1 | Repeat), data = tab_ECheight) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_ECheight' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
#Now we make a tab with the results
= data.frame(Variable = as.character(paste("HS vs HY")),
tab_stat Rep = nlevels(tab_ECheight$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_ECheight' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("EC height ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
= c("HS","HY")
Limits
=max(tab_ECheight$EC_height, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_ECheight' introuvable
=
Plot_Fig3S1C ggplot(tab_ECheight, aes(x=Diet, y=EC_height))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/150) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = -1, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(annotation = formatC(paste("p=",tab_stat$Pvalue), digits = 2), textsize = 3, y_position = 23, xmin = 1, xmax = 2, tip_length = c(0.02, 0.02), vjust = -0.2)+
scale_fill_manual(limits=Limits,
values=palette_diet_2)+
scale_x_discrete("",
limits=c("HS", "HY"),
labels=c("HS", "HY"))+
scale_y_continuous(expression(paste("EC height (", mu, "m)")),
limits=c(-2,25),
breaks=seq(2,25,by=5))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA))
Error in ggplot(tab_ECheight, aes(x = Diet, y = EC_height)): objet 'tab_ECheight' introuvable
Plot_Fig3S1C
Error in eval(expr, envir, enclos): objet 'Plot_Fig3S1C' introuvable
Representative density plot from FACS for HS diet Complete annotation found in manuscript’s figures
Error in transpose(y): object is NULL
Error in rasterGrob(img3S1D): objet 'img3S1D' introuvable
Error in grid.draw(gob_imageFig3S1D): objet 'gob_imageFig3S1D' introuvable
Representative density plot from FACS for HY diet Complete annotation found in manuscript’s figures
Error in transpose(y): object is NULL
Error in rasterGrob(img3S1E): objet 'img3S1E' introuvable
Error in grid.draw(gob_imageFig3S1E): objet 'gob_imageFig3S1E' introuvable
Representative frequency plot from FACS for HS diet. Complete annotation found in manuscript’s figures
Error in transpose(y): object is NULL
Error in rasterGrob(img3S1F): objet 'img3S1F' introuvable
Error in grid.draw(gob_imageFig3S1F): objet 'gob_imageFig3S1F' introuvable
Representative frequency plot from FACS for HY dietComplete annotation found in manuscript’s figures
Error in transpose(y): object is NULL
Error in rasterGrob(img3S1G): objet 'img3S1G' introuvable
Error in grid.draw(gob_imageFig3S1G): objet 'gob_imageFig3S1G' introuvable
Ploidy of midguts on either HS or HY diets is largely unchanged. Stacked bar plot from 7 repeats, each of 25 midguts
=
tab_ploidy_rev "3 - S1H"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
group_by(Diet, Ploidy)%>%
summarise(mean_Percentage=mean(Percentage,na.rm=T),
sd_Percentage=sd(Percentage))%>%
mutate(group=paste(Diet, Ploidy,sep="_"))%>%
mutate(Ploidy=fct_relevel(Ploidy,"2","4", "8", "16", "32", "64", "64+"))%>%
as.data.frame()
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_ploidy_revmutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
group_by(Diet)%>%
summarise(Sample_size=n())
Error in is_grouped_df(tbl): objet 'tab_ploidy_rev' introuvable
# Creation of dataset with right position for error bar
##HS
= subset(tab_ploidy_rev , Diet%in%c("HS")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_ploidy_rev' introuvable
<- subset(tmp, select = -c(group , sd_Percentage, Diet)) tmp1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tmp' introuvable
<-spread(tmp1, Ploidy, mean_Percentage) tmpw1
Error in spread(tmp1, Ploidy, mean_Percentage): objet 'tmp1' introuvable
$`2.p` = tmpw1$`2` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`4.p` = tmpw1$`2` + tmpw1$`4` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`8.p` = tmpw1$`4.p` + tmpw1$`8` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`16.p` = tmpw1$`8.p` + tmpw1$`16` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`32.p` = tmpw1$`16.p` + tmpw1$`32` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`64.p` = tmpw1$`32.p` + tmpw1$`64` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`64+.p` = tmpw1$`64.p` + tmpw1$`64+` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
<- subset(tmp, select = -c(group , mean_Percentage, Diet)) tmp2
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tmp' introuvable
<-spread(tmp2, Ploidy, sd_Percentage) tmpw2
Error in spread(tmp2, Ploidy, sd_Percentage): objet 'tmp2' introuvable
$`2.se` = tmpw2$`2` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw2' introuvable
$`4.se` = tmpw2$`4` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw2' introuvable
$`8.se` = tmpw2$`8` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw2' introuvable
$`16.se` = tmpw2$`16` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw2' introuvable
$`32.se` = tmpw2$`32` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw2' introuvable
$`64.se` = tmpw2$`64` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw2' introuvable
$`64+.se` = tmpw2$`64+` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw2' introuvable
$`2.se+` = tmpw1$`2` + tmpw1$`2.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`4.se+` = tmpw1$`4.p` + tmpw1$`4.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`8.se+` = tmpw1$`8.p` + tmpw1$`8.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`16.se+` = tmpw1$`16.p` + tmpw1$`16.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`32.se+` = tmpw1$`32.p` + tmpw1$`32.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`64.se+` = tmpw1$`64.p` + tmpw1$`64.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`64+.se+` = tmpw1$`64+.p` + tmpw1$`64+.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`2.se-` = tmpw1$`2` - tmpw1$`2.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`4.se-` = tmpw1$`4.p` - tmpw1$`4.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`8.se-` = tmpw1$`8.p` - tmpw1$`8.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`16.se-` = tmpw1$`16.p` - tmpw1$`16.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`32.se-` = tmpw1$`32.p` - tmpw1$`32.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`64.se-` = tmpw1$`64.p` - tmpw1$`64.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`64+.se-` = tmpw1$`64+.p` - tmpw1$`64+.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
<- reshape(data=tmpw1,
tmpl varying = list(Ploidy = c(1:7), Position = c(8:14), se = c(15:21), seplus = c(22:28), seminus = c(29:35)),
direction = 'long',
v.names = c("Percentage", "Position", "se", "seplus", "seminus"),
sep = ".")
Error in FUN(X[[i]], ...): objet 'tmpw1' introuvable
$Ploidy = c("2","4", "8", "16", "32", "64", "64+") tmpl
Error in tmpl$Ploidy = c("2", "4", "8", "16", "32", "64", "64+"): objet 'tmpl' introuvable
$Diet = "HS" tmpl
Error in tmpl$Diet = "HS": objet 'tmpl' introuvable
<- subset(tmpl, select = -c(time , id)) tmpl
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tmpl' introuvable
<- tmpl tmpl_HS
Error in eval(expr, envir, enclos): objet 'tmpl' introuvable
##HY
= subset(tab_ploidy_rev , Diet%in%c("HY")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_ploidy_rev' introuvable
<- subset(tmp, select = -c(group , sd_Percentage, Diet)) tmp1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tmp' introuvable
<-spread(tmp1, Ploidy, mean_Percentage) tmpw1
Error in spread(tmp1, Ploidy, mean_Percentage): objet 'tmp1' introuvable
$`2.p` = tmpw1$`2` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`4.p` = tmpw1$`2` + tmpw1$`4` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`8.p` = tmpw1$`4.p` + tmpw1$`8` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`16.p` = tmpw1$`8.p` + tmpw1$`16` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`32.p` = tmpw1$`16.p` + tmpw1$`32` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`64.p` = tmpw1$`32.p` + tmpw1$`64` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`64+.p` = tmpw1$`64.p` + tmpw1$`64+` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
<- subset(tmp, select = -c(group , mean_Percentage, Diet)) tmp2
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tmp' introuvable
<-spread(tmp2, Ploidy, sd_Percentage) tmpw2
Error in spread(tmp2, Ploidy, sd_Percentage): objet 'tmp2' introuvable
$`2.se` = tmpw2$`2` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw2' introuvable
$`4.se` = tmpw2$`4` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw2' introuvable
$`8.se` = tmpw2$`8` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw2' introuvable
$`16.se` = tmpw2$`16` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw2' introuvable
$`32.se` = tmpw2$`32` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw2' introuvable
$`64.se` = tmpw2$`64` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw2' introuvable
$`64+.se` = tmpw2$`64+` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw2' introuvable
$`2.se+` = tmpw1$`2` + tmpw1$`2.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`4.se+` = tmpw1$`4.p` + tmpw1$`4.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`8.se+` = tmpw1$`8.p` + tmpw1$`8.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`16.se+` = tmpw1$`16.p` + tmpw1$`16.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`32.se+` = tmpw1$`32.p` + tmpw1$`32.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`64.se+` = tmpw1$`64.p` + tmpw1$`64.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`64+.se+` = tmpw1$`64+.p` + tmpw1$`64+.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`2.se-` = tmpw1$`2` - tmpw1$`2.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`4.se-` = tmpw1$`4.p` - tmpw1$`4.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`8.se-` = tmpw1$`8.p` - tmpw1$`8.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`16.se-` = tmpw1$`16.p` - tmpw1$`16.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`32.se-` = tmpw1$`32.p` - tmpw1$`32.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`64.se-` = tmpw1$`64.p` - tmpw1$`64.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
$`64+.se-` = tmpw1$`64+.p` - tmpw1$`64+.se` tmpw1
Error in eval(expr, envir, enclos): objet 'tmpw1' introuvable
<- reshape(data=tmpw1,
tmpl varying = list(Ploidy = c(1:7), Position = c(8:14), se = c(15:21), seplus = c(22:28), seminus = c(29:35)),
direction = 'long',
v.names = c("Percentage", "Position", "se", "seplus", "seminus"),
sep = ".")
Error in FUN(X[[i]], ...): objet 'tmpw1' introuvable
$Ploidy = c("2","4", "8", "16", "32", "64", "64+") tmpl
Error in tmpl$Ploidy = c("2", "4", "8", "16", "32", "64", "64+"): objet 'tmpl' introuvable
$Diet = "HY" tmpl
Error in tmpl$Diet = "HY": objet 'tmpl' introuvable
<- subset(tmpl, select = -c(time , id)) tmpl
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tmpl' introuvable
<- tmpl tmpl_HY
Error in eval(expr, envir, enclos): objet 'tmpl' introuvable
#Bind, rename and reorcer
<- rbind(tmpl_HS, tmpl_HY) tab_ploidy
Error in eval(quote(list(...)), env): objet 'tmpl_HS' introuvable
$Ploidy <- as.factor(tab_ploidy$Ploidy) tab_ploidy
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.factor' : objet 'tab_ploidy' introuvable
$Ploidy <-factor(tab_ploidy$Ploidy, levels =c("64+","64", "32", "16", "8", "4", "2")) tab_ploidy
Error in factor(tab_ploidy$Ploidy, levels = c("64+", "64", "32", "16", : objet 'tab_ploidy' introuvable
#Plot
=
Plot_Fig3S1H ggplot(tab_ploidy, aes(x=Diet, y=Percentage))+
geom_bar(stat="identity",aes(fill=Ploidy),color="black",width=.90)+
geom_errorbar(aes(ymin= seminus, ymax= seplus),width=0.25, color = "black")+
geom_text(data = Sample_size, mapping = aes(x = Diet, y = -5, label = paste("(",Sample_size,")",sep="")),size=3)+
scale_fill_manual(name = "Ploidy",
values=c("#0052A2","#1A63AB", "#3375B5", "#6697C7", "#99BADA", "#CCDCEC", "#E6EEF6"),
labels = c("64+n", "64n", "32n", "16n", "8n", "4n", "2n"))+
scale_y_continuous("Percentage of ploidy (mean \u00B1sd)",
limits=c(-5,90),
breaks=seq(0,80,by=20))+
theme(
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_blank(),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "horizontal",
legend.box = "horizontal",
legend.position = "bottom",
#legend.key.height = unit(0.6, "cm"),
#legend.key.width= unit(0.4, "cm"),
legend.title = element_blank(),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=Smallfont),
legend.background = element_rect(fill=NA),
strip.text = element_blank())+
guides(fill=guide_legend(nrow=4,byrow=TRUE))
Error in ggplot(tab_ploidy, aes(x = Diet, y = Percentage)): objet 'tab_ploidy' introuvable
#strip.background = element_rect(fill=NA, colour="black"),
#strip.placement="outside")
Plot_Fig3S1H
Error in eval(expr, envir, enclos): objet 'Plot_Fig3S1H' introuvable
##Export Figure 3S1
Midguts can respond plastically to changes in isocaloric diets. Midgut length increases from eclosion on HY for 7 days, then decreases when switched to HS for additional 7 days but can re-increase size upon a further 7 days HY feeding. Letters above violin plots represent grouping by statistical differences (Post hoc Tukey on GLMM).
=
Length_plasticity_time "4A"]]%>%
d[[mutate_at(vars(starts_with("Total")),~./1000)%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(Total_Length_mm=Total.L,
dplyrDay_of_treatment=Day)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
Length_plasticity_timegroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'Length_plasticity_time' introuvable
###Stats
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = Length_plasticity_time) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Length_plasticity_time' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = Length_plasticity_time)
Error in is.data.frame(data): objet 'Length_plasticity_time' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = Length_plasticity_time) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Length_plasticity_time' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("Anova diets")),
tab_stat Rep = nlevels(Length_plasticity_time$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Length_plasticity_time' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Total_Length_mm) ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
= lmer(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = Length_plasticity_time) mod.gen
Error: bad 'data': objet 'Length_plasticity_time' introuvable
= glht(mod.gen, linfct=mcp(Diet="Tukey")) multcomp
Error in model.matrix(model) : objet 'mod.gen' introuvable
Error in factor_contrasts(model): no 'model.matrix' method for 'model' found!
= cld(multcomp) tmp
Error in cld(multcomp): objet 'multcomp' introuvable
= aggregate(data=Length_plasticity_time,Total_Length_mm ~ Diet, max) letter_position
Error in eval(m$data, parent.frame()): objet 'Length_plasticity_time' introuvable
= as.data.frame(tmp$mcletters$Letters) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tmp' introuvable
$Diet=rownames(tab_letter) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'rownames' : objet 'tab_letter' introuvable
colnames(tab_letter)[1] = "Letter"
Error in colnames(tab_letter)[1] = "Letter": objet 'tab_letter' introuvable
= left_join(tab_letter,letter_position) tab_letter
Error in left_join(tab_letter, letter_position): objet 'tab_letter' introuvable
### Plot
= c("Eclosion","HY","HYtoHS", "HYtoHStoHY")
Limits = max(Length_plasticity_time$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'Length_plasticity_time' introuvable
=
Plot_Fig4Aggplot(Length_plasticity_time, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/60) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 1.5, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_text(data = tab_letter, mapping = aes(x = Diet, y = Total_Length_mm+0.4, label = Letter),size=3)+
geom_text(data = tab_stat, mapping = aes(x = 1.2, y = 7.5, label = paste("p=",format(Pvalue,digits=2))),size=3)+
scale_fill_manual(limits=Limits,
values=cbbPalette_4)+
scale_x_discrete("",
limits=Limits,
labels=c("Eclosion","HY","HY to HS", "HY to HS to HY"))+
scale_y_continuous("Midgut length (mm)",
limits=c(1.3,8.2),
breaks=seq(2,8,by=1),
minor_breaks = seq(3, 7,by= 1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size =Smallfont, colour = "black",face="italic"),
strip.text.y = element_text(size =Smallfont, colour = "black",face="italic"),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(Length_plasticity_time, aes(x = Diet, y = Total_Length_mm)): objet 'Length_plasticity_time' introuvable
Plot_Fig4A
Error in eval(expr, envir, enclos): objet 'Plot_Fig4A' introuvable
Mitotically active cells visualized by phospho-Histone H3 (pH3) immunostaining are more numerous on HY diet than on HS diet. pH3+ cells gradually increase over time on HY, but not HS diet. Letters above violin plots represent grouping by statistical differences (Post hoc Tukey on GLMM).
=
Length_Diet_time "4B, 4S1C"]]%>%
d[[mutate_at(vars(ends_with(".L")),~./1000)%>%
mutate_at(vars(!starts_with("Total")),as.factor)%>%
mutate(group=paste(Diet, Day,sep="_"))%>%
::rename(Total_Length_mm=Total.L,
dplyrPH3_positive_cell=Total.PH3,
Day_of_treatment=Day)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
Length_Diet_timegroup_by(Diet,Day_of_treatment)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Day_of_treatment): objet 'Length_Diet_time' introuvable
###Stats
= fitme(PH3_positive_cell ~ group + (1 | Repeat),data = subset(Length_Diet_time,!is.na(PH3_positive_cell))) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_Diet_time' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(PH3_positive_cell ~ group + (1 / Repeat),data = subset(Length_Diet_time,!is.na(PH3_positive_cell)))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_Diet_time' introuvable
= fitme(PH3_positive_cell ~ 1 + (1 | Repeat),data = subset(Length_Diet_time,!is.na(PH3_positive_cell))) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_Diet_time' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("Any difference")),
tab_stat Rep = nlevels(Length_Diet_time$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Length_Diet_time' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("PH3_positive_cell ~ group + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
$Diet="HS" tab_stat
Error in tab_stat$Diet = "HS": objet 'tab_stat' introuvable
= lmer(PH3_positive_cell ~ group + (1 | Repeat),data =subset(Length_Diet_time,!is.na(PH3_positive_cell))) mod.gen
Error: bad 'data': erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_Diet_time' introuvable
= glht(mod.gen, linfct=mcp(group="Tukey")) multcomp
Error in model.matrix(model) : objet 'mod.gen' introuvable
Error in factor_contrasts(model): no 'model.matrix' method for 'model' found!
= cld(multcomp) tmp
Error in cld(multcomp): objet 'multcomp' introuvable
= aggregate(data=subset(Length_Diet_time,!is.na(PH3_positive_cell)),PH3_positive_cell ~ group, max) letter_position
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_Diet_time' introuvable
= as.data.frame(tmp$mcletters$Letters) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tmp' introuvable
$group=rownames(tab_letter) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'rownames' : objet 'tab_letter' introuvable
colnames(tab_letter)[1] = "Letter"
Error in colnames(tab_letter)[1] = "Letter": objet 'tab_letter' introuvable
= left_join(tab_letter,letter_position) tab_letter
Error in left_join(tab_letter, letter_position): objet 'tab_letter' introuvable
= separate(tab_letter,group, c("Diet", "Day_of_treatment"), sep = "_", remove=FALSE) tab_letter
Error in separate(tab_letter, group, c("Diet", "Day_of_treatment"), sep = "_", : objet 'tab_letter' introuvable
### Plot
= c("7","14","21", "28")
Limits = max(Length_Diet_time$PH3_positive_cell, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'Length_Diet_time' introuvable
=
Plot_Fig4Bggplot(Length_Diet_time, aes(x = Day_of_treatment, y = PH3_positive_cell))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/40) +
facet_grid(. ~ Diet)+
geom_text(data = Sample_size, mapping = aes(x = Day_of_treatment, y = -8, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_text(data = tab_letter, mapping = aes(x = Day_of_treatment, y = PH3_positive_cell+10, label = Letter),size=3)+
geom_text(data = tab_stat, mapping = aes(x = 2, y = 130, label = paste("p=",format(Pvalue,digits=2))),size=3)+
scale_fill_manual(limits=c("HS","HY"),
values=palette_diet_2)+
scale_x_discrete("",
limits=Limits,
labels=c("7 days","14 days", "21 days", "28 days"))+
scale_y_continuous(expression(paste("pH3" ^ "+", " cells")),
limits=c(-10,140),
breaks=seq(0,140,by=20))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(Length_Diet_time, aes(x = Day_of_treatment, y = PH3_positive_cell)): objet 'Length_Diet_time' introuvable
Plot_Fig4B
Error in eval(expr, envir, enclos): objet 'Plot_Fig4B' introuvable
Shifting between diets impacts pH3+ cell number in growth (HS to HY) experiments. Statistical comparisons are vs pre-shift measurement.
=
Length_Growth_PH3 "4C, 4S1D"]]%>%
d[[mutate_at(vars(ends_with(".L")),~./1000)%>%
mutate_at(vars(!starts_with("Total")),as.factor)%>%
::rename(Total_Length_mm=Total.L,
dplyrPH3_positive_cell=Total.PH3,
Day_of_treatment=Day)%>%
as.data.frame()%>%
mutate(Dday=fct_relevel(Dday,"Shift Day 7","Shift Day 14","Shift Day 21"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
Length_Growth_PH3group_by(Diet,Dday)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Dday): objet 'Length_Growth_PH3' introuvable
###Stats
###Day 7
= fitme(log(PH3_positive_cell) ~ Diet + (1 | Repeat),data = subset(Length_Growth_PH3,Dday=="Shift Day 7")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_Growth_PH3' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell) ~ Diet + (1 / Repeat),data = subset(Length_Growth_PH3,Dday=="Shift Day 7"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_Growth_PH3' introuvable
= fitme(log(PH3_positive_cell) ~ 1 + (1 | Repeat),data = subset(Length_Growth_PH3,Dday=="Shift Day 7")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_Growth_PH3' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("HS Day 7 vs HS to HY Day 14")),
tab_stat Variable = as.character(paste("Shift Day 7")),
Rep = nlevels(Length_Growth_PH3$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Length_Growth_PH3' introuvable
=tab_stat tab_stat_7
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 14
= fitme(log(PH3_positive_cell) ~ Diet + (1 | Repeat),data = subset(Length_Growth_PH3,Dday=="Shift Day 14")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_Growth_PH3' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell) ~ Diet + (1 / Repeat),data = subset(Length_Growth_PH3,Dday=="Shift Day 14"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_Growth_PH3' introuvable
= fitme(log(PH3_positive_cell) ~ 1 + (1 | Repeat),data = subset(Length_Growth_PH3,Dday=="Shift Day 14")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_Growth_PH3' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("HS Day 14 vs HS to HY Day 21")),
tab_stat Variable = as.character(paste("Shift Day 14")),
Rep = nlevels(Length_Growth_PH3$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Length_Growth_PH3' introuvable
=tab_stat tab_stat_14
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 21
= fitme(log(PH3_positive_cell) ~ Diet + (1 | Repeat),data = subset(Length_Growth_PH3,Dday=="Shift Day 21")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_Growth_PH3' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell) ~ Diet + (1 / Repeat),data = subset(Length_Growth_PH3,Dday=="Shift Day 21"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_Growth_PH3' introuvable
= fitme(log(PH3_positive_cell) ~ 1 + (1 | Repeat),data = subset(Length_Growth_PH3,Dday=="Shift Day 21")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_Growth_PH3' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("HS Day 21 vs HS to HY Day 28")),
tab_stat Variable = as.character(paste("Shift Day 21")),
Rep = nlevels(Length_Growth_PH3$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Length_Growth_PH3' introuvable
= tab_stat tab_stat_21
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
=rbind(tab_stat_7,tab_stat_14,tab_stat_21) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_7' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Variable", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(PH3_positive_cell) ~ Diet + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Variable", "Replicates", : objet 'tab_stat' introuvable
=
tab_stat%>%
tab_stat ::rename(Dday=Variable)%>%
dplyras.data.frame()%>%
mutate(Dday=fct_relevel(Dday,"Shift Day 7","Shift Day 14","Shift Day 21"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tab_stat' introuvable
### Plot
= c("HS","HStoHY")
Limits =max(Length_Growth_PH3$PH3_positive_cell, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'Length_Growth_PH3' introuvable
=
Plot_Fig4Cggplot(Length_Growth_PH3, aes(x = Diet, y = PH3_positive_cell))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/40) +
facet_grid(. ~ Dday)+
geom_text(data = Sample_size, mapping = aes(x = Diet, y = -5, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(data = tab_stat, aes(xmin = 1, xmax = 2, annotations = formatC(paste("p=",Pvalue), digits = 2), y_position = 132,), textsize = 3, vjust = -0.2, manual = TRUE)+
scale_fill_manual(limits=c("HS","HStoHY"),
values=cbbHS_HStoHY)+
scale_x_discrete("",
limits=Limits,
labels=c("HS","HS to HY"))+
scale_y_continuous(expression(paste("pH3" ^ "+", " cells")),
limits=c(-8,136),
breaks=seq(0,120,by=20))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(Length_Growth_PH3, aes(x = Diet, y = PH3_positive_cell)): objet 'Length_Growth_PH3' introuvable
Plot_Fig4C
Error in eval(expr, envir, enclos): objet 'Plot_Fig4C' introuvable
Shifting between diets impacts pH3+ cell number in shrinkage (HY to HS) experiments. Statistical comparisons are vs pre-shift measurement.
=
Length_shrinkage_PH3 "4C', 4S1D'"]]%>%
d[[mutate_at(vars(ends_with(".L")),~./1000)%>%
mutate_at(vars(!starts_with("Total")),as.factor)%>%
::rename(Total_Length_mm=Total.L,
dplyrPH3_positive_cell=Total.PH3,
Day_of_treatment=Day)%>%
as.data.frame()%>%
mutate(Dday=fct_relevel(Dday,"Shift Day 7","Shift Day 14","Shift Day 21"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
Length_shrinkage_PH3group_by(Diet,Dday)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Dday): objet 'Length_shrinkage_PH3' introuvable
###Stats
###Day 7
= fitme(log(PH3_positive_cell) ~ Diet + (1 | Repeat),data = subset(Length_shrinkage_PH3,Dday=="Shift Day 7")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shrinkage_PH3' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell) ~ Diet + (1 / Repeat),data = subset(Length_shrinkage_PH3,Dday=="Shift Day 7"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shrinkage_PH3' introuvable
= fitme(log(PH3_positive_cell) ~ 1 + (1 | Repeat),data = subset(Length_shrinkage_PH3,Dday=="Shift Day 7")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shrinkage_PH3' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_shrinkage
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("HS Day 7 vs HS to HY Day 14")),
tab_stat Variable = as.character(paste("Shift Day 7")),
Rep = nlevels(Length_shrinkage_PH3$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_shrinkage,df=1,lower.tail = F),digits=1,scientific=F)))
Error in levels(x): objet 'Length_shrinkage_PH3' introuvable
=tab_stat tab_stat_7
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 14
= fitme(log(PH3_positive_cell) ~ Diet + (1 | Repeat),data = subset(Length_shrinkage_PH3,Dday=="Shift Day 14")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shrinkage_PH3' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell) ~ Diet + (1 / Repeat),data = subset(Length_shrinkage_PH3,Dday=="Shift Day 14"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shrinkage_PH3' introuvable
= fitme(log(PH3_positive_cell) ~ 1 + (1 | Repeat),data = subset(Length_shrinkage_PH3,Dday=="Shift Day 14")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shrinkage_PH3' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_shrinkage
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("HS Day 14 vs HS to HY Day 21")),
tab_stat Variable = as.character(paste("Shift Day 14")),
Rep = nlevels(Length_shrinkage_PH3$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_shrinkage,df=1,lower.tail = F),digits=1)))
Error in levels(x): objet 'Length_shrinkage_PH3' introuvable
=tab_stat tab_stat_14
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 21
= fitme(log(PH3_positive_cell) ~ Diet + (1 | Repeat),data = subset(Length_shrinkage_PH3,Dday=="Shift Day 21")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shrinkage_PH3' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell) ~ Diet + (1 / Repeat),data = subset(Length_shrinkage_PH3,Dday=="Shift Day 21"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shrinkage_PH3' introuvable
= fitme(log(PH3_positive_cell) ~ 1 + (1 | Repeat),data = subset(Length_shrinkage_PH3,Dday=="Shift Day 21")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shrinkage_PH3' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_shrinkage
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("HS Day 21 vs HS to HY Day 28")),
tab_stat Variable = as.character(paste("Shift Day 21")),
Rep = nlevels(Length_shrinkage_PH3$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_shrinkage,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Length_shrinkage_PH3' introuvable
= tab_stat tab_stat_21
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
=rbind(tab_stat_7,tab_stat_14,tab_stat_21) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_7' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Variable", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(PH3_positive_cell) ~ Diet + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Variable", "Replicates", : objet 'tab_stat' introuvable
=
tab_stat%>%
tab_stat ::rename(Dday=Variable)%>%
dplyras.data.frame()%>%
mutate(Dday=fct_relevel(Dday,"Shift Day 7","Shift Day 14","Shift Day 21"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tab_stat' introuvable
### Plot
= c("HY","HYtoHS")
Limits = max(Length_shrinkage_PH3$PH3_positive_cell, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'Length_shrinkage_PH3' introuvable
=
Plot_Fig4Dggplot(Length_shrinkage_PH3, aes(x = Diet, y = PH3_positive_cell))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/40) +
facet_grid(. ~ Dday)+
geom_text(data = Sample_size, mapping = aes(x = Diet, y = -5, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(data = tab_stat, aes(xmin = 1, xmax = 2, annotations = formatC(paste("p=",Pvalue), digits = 2), y_position = 132,), textsize = 3, vjust = -0.2, manual = TRUE)+
scale_fill_manual(limits=c("HY","HYtoHS"),
values=cbbHY_HYtoHS)+
scale_x_discrete("",
limits=Limits,
labels=c("HY","HY to HS"))+
scale_y_continuous(expression(paste("pH3" ^ "+", " cells")),
limits=c(-8,136),
breaks=seq(0,120,by=20))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(Length_shrinkage_PH3, aes(x = Diet, y = PH3_positive_cell)): objet 'Length_shrinkage_PH3' introuvable
Plot_Fig4D
Error in eval(expr, envir, enclos): objet 'Plot_Fig4D' introuvable
Clonal assay with EsgF/O system illustrates increased number of marked cells on HY (F) vs HS (E) diets 5 days post-eclosion in region 4 of the midgut. GFP, in green, marks all cells made since the EsgF/O system was activated. Complete graphical annotation can be found in manuscript figures
Error in transpose(y): object is NULL
Error in rasterGrob(img4E): objet 'img4E' introuvable
Error in grid.draw(gob_imageFig4E): objet 'gob_imageFig4E' introuvable
Error in transpose(y): object is NULL
Error in rasterGrob(img4F): objet 'img4F' introuvable
Error in grid.draw(gob_imageFig4F): objet 'gob_imageFig4F' introuvable
Cell loss assay enables analysis of the impact of diet composition on replacement ratio and rate. Description of experimental design is found in materials and methods and illustrated in figure 4–figure supplement 1H. In brief, this assay allows us to mark ECs and EBs at the start of the experiment and to count their numbers 14 days after shifting dietary conditions recapitulating growth and shrinkage of the midgut, thus estimating cell gain and cell loss in these conditions. Representative pictures for the cell loss assay in growing conditions (G, H, top row) and shrinkage conditions (I, J, bottom row). Complete graphical annotation can be found in manuscript figures
Error in transpose(y): object is NULL
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
Error in grid.draw(gob_imageFig4G): objet 'gob_imageFig4G' introuvable
Error in transpose(y): object is NULL
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
Error in grid.draw(gob_imageFig4H): objet 'gob_imageFig4H' introuvable
Error in transpose(y): object is NULL
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
Error in grid.draw(gob_imageFig4I): objet 'gob_imageFig4I' introuvable
Error in transpose(y): object is NULL
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
Error in grid.draw(gob_imageFig4J): objet 'gob_imageFig4J' introuvable
In red 5966GS> His-RFP, marking EB and EC. Number of ECs in the posterior midgut, both marked (Red, old ECs) and unmarked (Blue, new ECs) by RFP, error bars are SE from 3 repeats.
=
tab_prop_cell_RFP "4K"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
mutate(Post.Dapi.Number = (Post.Dapi.Number)*2)%>%
mutate(Post.RFP.Number = (Post.RFP.Number)*2)%>%
mutate(Post.NonRFP.Number = (Post.Dapi.Number - Post.RFP.Number))%>%
group_by(Day, Diet, Diet1, Experiment)%>%
summarise(mean_RFP_positive=mean(Post.RFP.Number,na.rm=T),
se_RFP_positive=se(Post.RFP.Number),
mean_RFP_negative=mean(Post.NonRFP.Number,na.rm=T),
se_RFP_negative=se(Post.NonRFP.Number))%>%
mutate(group=paste(Diet1,Experiment,sep="_"))%>%
as.data.frame()
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
attach(tab_prop_cell_RFP)
Error in attach(tab_prop_cell_RFP): objet 'tab_prop_cell_RFP' introuvable
for (i in 1:length(Experiment)){
$se_proportionGraphPlus_pos[i] = mean_RFP_positive[i]+se_RFP_positive[i]
tab_prop_cell_RFP$se_proportionGraphMinus_pos[i] = mean_RFP_positive[i]-se_RFP_positive[i]
tab_prop_cell_RFP$se_proportionGraphPlus_neg[i] = mean_RFP_positive[i]+mean_RFP_negative[i]+se_RFP_negative[i]
tab_prop_cell_RFP$se_proportionGraphMinus_neg[i] = mean_RFP_positive[i]+mean_RFP_negative[i]-se_RFP_negative[i]
tab_prop_cell_RFP }
Error in eval(expr, envir, enclos): objet 'Experiment' introuvable
= tab_prop_cell_RFP[,c("Day", "Diet", "Diet1", "Experiment","mean_RFP_positive", "se_RFP_positive","se_proportionGraphPlus_pos", "se_proportionGraphMinus_pos")] tmp1
Error in eval(expr, envir, enclos): objet 'tab_prop_cell_RFP' introuvable
$RFP="Positive" tmp1
Error in tmp1$RFP = "Positive": objet 'tmp1' introuvable
=dplyr::rename(tmp1,mean_RFP = mean_RFP_positive,
tmp1se_RFP = se_RFP_positive,
se_proportionGraphPlus =se_proportionGraphPlus_pos,
se_proportionGraphMinus= se_proportionGraphMinus_pos)
Error in dplyr::rename(tmp1, mean_RFP = mean_RFP_positive, se_RFP = se_RFP_positive, : objet 'tmp1' introuvable
= tab_prop_cell_RFP[,c("Day", "Diet", "Diet1", "Experiment","mean_RFP_negative", "se_RFP_negative", "se_proportionGraphMinus_neg" ,"se_proportionGraphPlus_neg")] tmp2
Error in eval(expr, envir, enclos): objet 'tab_prop_cell_RFP' introuvable
$RFP="Negative" tmp2
Error in tmp2$RFP = "Negative": objet 'tmp2' introuvable
=dplyr::rename(tmp2,mean_RFP = mean_RFP_negative,
tmp2se_RFP = se_RFP_negative,
se_proportionGraphPlus =se_proportionGraphPlus_neg,
se_proportionGraphMinus= se_proportionGraphMinus_neg)
Error in dplyr::rename(tmp2, mean_RFP = mean_RFP_negative, se_RFP = se_RFP_negative, : objet 'tmp2' introuvable
= rbind(tmp1,tmp2) tab_prop_cell_RFP
Error in eval(quote(list(...)), env): objet 'tmp1' introuvable
=
tab_prop_cell_RFP %>%
tab_prop_cell_RFPmutate_if(is.numeric,round,0)%>%
mutate_if(is.character,as.factor)
Error in is_grouped_df(tbl): objet 'tab_prop_cell_RFP' introuvable
#tab_prop_cell_RFP$Experiment = as.factor(ifelse(tab_prop_cell_RFP$Day=="0" & tab_prop_cell_RFP$Diet1=="HS","HS",
#ifelse(tab_prop_cell_RFP$Day=="0" & tab_prop_cell_RFP$Diet1=="HY","HY",
# as.character(tab_prop_cell_RFP$Experiment))))
#tab_prop_cell_RFP=
#tab_prop_cell_RFP%>%
#as.data.frame()%>%
#mutate(Diet1=fct_relevel(Diet1,"HS", "HStoHS" , "HStoHY", "HY", "HYtoHS", "HYtoHY"),
#Experiment=fct_relevel(Experiment, "HS", "Growth", "HY", "Shrinkage"))
levels(tab_prop_cell_RFP$Diet1) <- c("HS", "HS to HS" , "HS to HY", "HY", "HY to HS", "HY to HY")
Error in levels(tab_prop_cell_RFP$Diet1) <- c("HS", "HS to HS", "HS to HY", : objet 'tab_prop_cell_RFP' introuvable
=
Sample_size"4K"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
group_by(Diet1)%>%
summarise(Sample_size=n())
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
$Experiment = c("G", "G", "G", "S", "S", "S") Sample_size
Error in Sample_size$Experiment = c("G", "G", "G", "S", "S", "S"): objet 'Sample_size' introuvable
levels(Sample_size$Diet1) <- c("HS", "HS to HS" , "HS to HY", "HY", "HY to HS", "HY to HY")
Error in levels(Sample_size$Diet1) <- c("HS", "HS to HS", "HS to HY", : objet 'Sample_size' introuvable
=
Plot_Fig4K ggplot(tab_prop_cell_RFP, aes(x=Diet1, y=mean_RFP))+
geom_bar(stat="identity",aes(fill=RFP),color="black",width=.90)+
geom_errorbar(aes(ymin= se_proportionGraphMinus, ymax= se_proportionGraphPlus),width=0.25)+
geom_text(data = Sample_size, mapping = aes(x = Diet1, y = 200, label = paste("(",Sample_size,")",sep="")),size=3)+
facet_wrap(.~Experiment,scales="free_x")+
scale_fill_manual(name = "RFP labelling",
values=c("#3a5ecc","#cc0000"),
labels = c("Negative", "Positive"))+
scale_y_continuous("Number of cells (mean \u00B1se)",
limits=c(0,5800),
breaks=seq(0,5000,by=500))+
theme(
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_blank(),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = c(0.2,0.87),
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=Smallfont),
legend.background = element_rect(fill=NA),
strip.text = element_blank())
Error in ggplot(tab_prop_cell_RFP, aes(x = Diet1, y = mean_RFP)): objet 'tab_prop_cell_RFP' introuvable
#strip.background = element_rect(fill=NA, colour="black"),
#strip.placement="outside")
Plot_Fig4K
Error in eval(expr, envir, enclos): objet 'Plot_Fig4K' introuvable
Data shown as rate relative to experiment start (cell /initial EC/ day). Number on bar in red is ratio of EC gained/EC lost (see materials and methods for formula).
=
tab_relative_cell_rate "4L, 4S2D"]]%>%
d[[select(-starts_with("X"))%>%
drop_na()%>%
mutate_if(is.character,as.factor)%>%
group_by(Diet1, Experiment, Experiment2, GL)%>%
summarise(mean_RelativeRate=mean(RelativeRate,na.rm=T),
se_RelativeRate=se(RelativeRate))%>%
mutate(group=paste(Diet1,Experiment,sep="_"))%>%
as.data.frame()
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'select' applicable pour un objet de classe "NULL"
=
tab_relative_cell_rate_ratio %>%
tab_relative_cell_rategroup_by(Diet1,Experiment2)%>%
summarize(Ratio = round(mean_RelativeRate[GL == "Gain"] / (-mean_RelativeRate[GL == "Loss"]),2))%>%
mutate(GL="Loss")
Error in group_by(., Diet1, Experiment2): objet 'tab_relative_cell_rate' introuvable
levels(tab_relative_cell_rate$Diet1) <- c("HS to HS" , "HS to HY", "HY to HS", "HY to HY")
Error in levels(tab_relative_cell_rate$Diet1) <- c("HS to HS", "HS to HY", : objet 'tab_relative_cell_rate' introuvable
levels(tab_relative_cell_rate_ratio$Diet1) <- c("HS to HS" , "HS to HY", "HY to HS", "HY to HY")
Error in levels(tab_relative_cell_rate_ratio$Diet1) <- c("HS to HS", "HS to HY", : objet 'tab_relative_cell_rate_ratio' introuvable
=
Plot_Fig4L ggplot(tab_relative_cell_rate, aes(x = Diet1, y = mean_RelativeRate, fill = GL))+
geom_bar(stat="identity",aes(fill=GL),color="black",width=.90)+
geom_hline(yintercept = 0)+
geom_text(data=tab_relative_cell_rate_ratio,mapping=aes(x=Diet1,y=-0.01,label=Ratio), color = "red")+
facet_grid(.~Experiment2,scales="free_x")+
scale_fill_manual(name = "Enterocyte",
values=c("palegreen", "moccasin"),
labels = c("Gain", "Loss"))+
scale_y_continuous("Cell rate (cell/ initialEC/ day)",
limits=c(-0.11,0.11),
breaks=seq(-0.2,0.2,by=0.05))+
theme(
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_blank(),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = c(0.18,0.83),
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=Smallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_relative_cell_rate, aes(x = Diet1, y = mean_RelativeRate, : objet 'tab_relative_cell_rate' introuvable
Plot_Fig4L
Error in eval(expr, envir, enclos): objet 'Plot_Fig4L' introuvable
##Export Figure 4
Midgut length increases progressively on HY, but not on HS. Statistics compare HS vs HY for each day, *** = p<0.01.
=
Length_dayseclosion "4 - S1A"]]%>%
d[[select(-starts_with("X"))%>%
mutate_at(vars(starts_with("Total")),~./1000)%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(Total_Length_mm=Total.Length)%>%
dplyrmutate(group=paste(TreatCol,Day,sep="_"))
Error in UseMethod("select"): pas de méthode pour 'select' applicable pour un objet de classe "NULL"
=
Sample_size%>%
Length_dayseclosiongroup_by(Day,TreatCol)%>%
summarise(Sample_size=n())%>%
::rename(Diet=TreatCol) dplyr
Error in group_by(., Day, TreatCol): objet 'Length_dayseclosion' introuvable
#Stats4S1A
###Stats
#Day 1
= subset(Length_dayseclosion, Day == "1") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosion' introuvable
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character("1"),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_1
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 2
= subset(Length_dayseclosion, Day == "2") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosion' introuvable
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character("2"),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_2
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 3
= subset(Length_dayseclosion, Day == "3") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosion' introuvable
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character("3"),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_3
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 4
= subset(Length_dayseclosion, Day == "4") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosion' introuvable
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("4")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_4
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 5
= subset(Length_dayseclosion, Day == "5") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosion' introuvable
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character("5"),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_5
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
= rbind(tab_stat_day_1, tab_stat_day_2, tab_stat_day_3, tab_stat_day_4, tab_stat_day_5) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_day_1' introuvable
$padj = p.adjust(tab_stat$Pvalue, method = "BH") tab_stat
Error in p.adjust(tab_stat$Pvalue, method = "BH"): objet 'tab_stat' introuvable
$sig = ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*",
tab_statifelse(tab_stat$padj < 0.01 & tab_stat$padj > 0.001, "**",
ifelse(tab_stat$padj < 0.001, "***", "")))
Error in ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*", ifelse(tab_stat$padj < : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparisons diet within days", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","p-value adjusted","Signif."),row.names = FALSE) %>%
add_header_above(c("log(Total_Length_mm) ~ Diet + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparisons diet within days", "Replicates", : objet 'tab_stat' introuvable
=
tab_stat %>%
tab_stat ::rename(Day = Variable) %>%
dplyrmutate(Day = as.factor(Day))
Error in dplyr::rename(., Day = Variable): objet 'tab_stat' introuvable
$Diet = "HY" tab_stat
Error in tab_stat$Diet = "HY": objet 'tab_stat' introuvable
= aggregate(data = Length_dayseclosion, Total_Length_mm ~ Day, max) letter_position
Error in eval(m$data, parent.frame()): objet 'Length_dayseclosion' introuvable
= left_join(tab_stat, letter_position) tab_stat1
Error in left_join(tab_stat, letter_position): objet 'tab_stat' introuvable
#Stats vs eclosion for HS
= subset(Length_dayseclosion, Diet == "0" | Diet == "HS") Length_dayseclosionHS
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosion' introuvable
#Day 1
= subset(Length_dayseclosionHS, Day == "0" | Day == "1") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosionHS' introuvable
= fitme(log(Total_Length_mm) ~ Day + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Day + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("1")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_0vs1
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 2
= subset(Length_dayseclosionHS, Day == "0" | Day == "2") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosionHS' introuvable
= fitme(log(Total_Length_mm) ~ Day + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Day + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("2")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_0vs2
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 3
= subset(Length_dayseclosionHS, Day == "0" | Day == "3") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosionHS' introuvable
= fitme(log(Total_Length_mm) ~ Day + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Day + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("3")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_0vs3
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 4
= subset(Length_dayseclosionHS, Day == "0" | Day == "4") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosionHS' introuvable
= fitme(log(Total_Length_mm) ~ Day + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Day + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("4")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_0vs4
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 5
= subset(Length_dayseclosionHS, Day == "0" | Day == "5") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosionHS' introuvable
= fitme(log(Total_Length_mm) ~ Day + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Day + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("5")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_0vs5
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
= rbind(tab_stat_day_0vs1, tab_stat_day_0vs2, tab_stat_day_0vs3, tab_stat_day_0vs4, tab_stat_day_0vs5) tab_statHSeclosion
Error in eval(quote(list(...)), env): objet 'tab_stat_day_0vs1' introuvable
$padj = p.adjust(tab_statHSeclosion$Pvalue, method = "BH") tab_statHSeclosion
Error in p.adjust(tab_statHSeclosion$Pvalue, method = "BH"): objet 'tab_statHSeclosion' introuvable
$sig = ifelse(tab_statHSeclosion$padj > 0.05, "ns",
tab_statHSeclosionifelse(tab_statHSeclosion$padj < 0.05 & tab_statHSeclosion$padj > 0.01, "*",
ifelse(tab_statHSeclosion$padj < 0.01 & tab_statHSeclosion$padj > 0.001, "**",
ifelse(tab_statHSeclosion$padj < 0.001, "***", ""))))
Error in ifelse(tab_statHSeclosion$padj > 0.05, "ns", ifelse(tab_statHSeclosion$padj < : objet 'tab_statHSeclosion' introuvable
%>%
tab_statHSeclosionkable(col.names = c("Comparison to eclosion on HS", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","p-value adjusted","Signif."),row.names = FALSE) %>%
add_header_above(c("log(Total_Length_mm) ~ Day + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison to eclosion on HS", "Replicates", : objet 'tab_statHSeclosion' introuvable
=
tab_statHSeclosion %>%
tab_statHSeclosion ::rename(Day = Variable) %>%
dplyrmutate(Day = as.factor(Day))
Error in dplyr::rename(., Day = Variable): objet 'tab_statHSeclosion' introuvable
$Diet = "HS" tab_statHSeclosion
Error in tab_statHSeclosion$Diet = "HS": objet 'tab_statHSeclosion' introuvable
= aggregate(data = Length_dayseclosion, Total_Length_mm ~ Day, max) letter_position
Error in eval(m$data, parent.frame()): objet 'Length_dayseclosion' introuvable
= left_join(tab_statHSeclosion, letter_position) tab_statHSeclosion
Error in left_join(tab_statHSeclosion, letter_position): objet 'tab_statHSeclosion' introuvable
#Stats vs eclosion for HY
= subset(Length_dayseclosion, Diet == "0" | Diet == "HY") Length_dayseclosionHS
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosion' introuvable
#Day 1
= subset(Length_dayseclosionHS, Day == "0" | Day == "1") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosionHS' introuvable
= fitme(log(Total_Length_mm) ~ Day + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Day + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("1")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_0vs1
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 2
= subset(Length_dayseclosionHS, Day == "0" | Day == "2") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosionHS' introuvable
= fitme(log(Total_Length_mm) ~ Day + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Day + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("2")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_0vs2
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 3
= subset(Length_dayseclosionHS, Day == "0" | Day == "3") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosionHS' introuvable
= fitme(log(Total_Length_mm) ~ Day + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Day + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("3")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_0vs3
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 4
= subset(Length_dayseclosionHS, Day == "0" | Day == "4") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosionHS' introuvable
= fitme(log(Total_Length_mm) ~ Day + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Day + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("4")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_0vs4
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Day 5
= subset(Length_dayseclosionHS, Day == "0" | Day == "5") %>%
tmp mutate(Day = as.factor(Day))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_dayseclosionHS' introuvable
= fitme(log(Total_Length_mm) ~ Day + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Day + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2 * (mod.gen$APHLs[["p_v"]] - mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("5")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_day_0vs5
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
= rbind(tab_stat_day_0vs1, tab_stat_day_0vs2, tab_stat_day_0vs3, tab_stat_day_0vs4, tab_stat_day_0vs5) tab_statHYeclosion
Error in eval(quote(list(...)), env): objet 'tab_stat_day_0vs1' introuvable
$padj = as.numeric(p.adjust(tab_statHYeclosion$Pvalue, method = "BH")) tab_statHYeclosion
Error in p.adjust(tab_statHYeclosion$Pvalue, method = "BH"): objet 'tab_statHYeclosion' introuvable
$sig = ifelse(tab_statHYeclosion$padj > 0.05, "ns",
tab_statHYeclosionifelse(tab_statHYeclosion$padj < 0.05 & tab_statHYeclosion$padj > 0.01, "*",
ifelse(tab_statHYeclosion$padj < 0.01 & tab_statHYeclosion$padj > 0.001, "**",
ifelse(tab_statHYeclosion$padj < 0.001, "***", ""))))
Error in ifelse(tab_statHYeclosion$padj > 0.05, "ns", ifelse(tab_statHYeclosion$padj < : objet 'tab_statHYeclosion' introuvable
%>%
tab_statHYeclosionkable(col.names = c("Comparison to eclosion on HY", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","p-value adjusted","Signif."),row.names = FALSE) %>%
add_header_above(c("log(Total_Length_mm) ~ Day + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison to eclosion on HY", "Replicates", : objet 'tab_statHYeclosion' introuvable
=
tab_statHYeclosion %>%
tab_statHYeclosion ::rename(Day = Variable) %>%
dplyrmutate(Day = as.factor(Day))
Error in dplyr::rename(., Day = Variable): objet 'tab_statHYeclosion' introuvable
$Diet = "HY" tab_statHYeclosion
Error in tab_statHYeclosion$Diet = "HY": objet 'tab_statHYeclosion' introuvable
= aggregate(data = Length_dayseclosion, Total_Length_mm ~ Day, max) letter_position
Error in eval(m$data, parent.frame()): objet 'Length_dayseclosion' introuvable
= left_join(tab_statHYeclosion, letter_position) tab_statHYeclosion
Error in left_join(tab_statHYeclosion, letter_position): objet 'tab_statHYeclosion' introuvable
### Plot
= max(Length_dayseclosion$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'Length_dayseclosion' introuvable
=
Plot_Fig4S1Aggplot(Length_dayseclosion, aes(x = Day, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/60) +
facet_grid(.~Diet,scales="free_x",space="free")+
geom_text(data = Sample_size, mapping = aes(x = Day, y = 2.3, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_text(data = tab_stat1, mapping = aes(x =Day, y = 7.5, label = sig),size=3)+
geom_text(data = tab_statHSeclosion, mapping = aes(x =Day, y = 3.5, label = sig),size=3)+
geom_text(data = tab_statHYeclosion, mapping = aes(x =Day, y = 3.5, label = sig),size=3)+
scale_fill_manual(limits=c("0","HS","HY"),
values= c("#cfe7cf","#FFB4B4", "#C3E6FC"))+
scale_x_discrete("Days post eclosion")+
scale_y_continuous("Midgut length (mm)",
limits=c(2,8.2),
breaks=seq(2,8,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(Length_dayseclosion, aes(x = Day, y = Total_Length_mm)): objet 'Length_dayseclosion' introuvable
Plot_Fig4S1A
Error in eval(expr, envir, enclos): objet 'Plot_Fig4S1A' introuvable
Scheme for Figure 4 B, C, D and Figure 4 supplement 1C, D, E. At eclosion, flies were allocated to either HS or HY diet. 7-, 14- and 21-days post eclosion flies were either kept on the same diet or shifted on the opposite diet for 7 days (HS to HY or HY to HS). Flies were dissected every 7 days, up until day 28.
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/4 - S1B.jpg") img4S1B
Error in transpose(y): object is NULL
= rasterGrob(img4S1B) gob_imageFig4S1B
Error in rasterGrob(img4S1B): objet 'img4S1B' introuvable
grid.draw(gob_imageFig4S1B)
Error in grid.draw(gob_imageFig4S1B): objet 'gob_imageFig4S1B' introuvable
HS diet does not postpone post-eclosion development, but rather induces continual midgut shrinkage over 28 days of feeding. Letters above violin plots represent grouping by statistical differences (Post hoc Tukey on GLMM).
=
Length_longshift "4B, 4S1C"]]%>%
d[[select(-Total.PH3)%>%
mutate(Total_Length_mm = Total.L/1000)%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(Day_of_treatment=Day) dplyr
Error in UseMethod("select"): pas de méthode pour 'select' applicable pour un objet de classe "NULL"
=
Sample_size%>%
Length_longshiftgroup_by(Day_of_treatment,Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Day_of_treatment, Diet): objet 'Length_longshift' introuvable
###Stats
#HS
= subset(Length_longshift, Diet=="HS") tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_longshift' introuvable
= fitme(log(Total_Length_mm) ~ Day_of_treatment + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Day_of_treatment + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Diet = as.character(paste("HS")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_HS
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
= lmer(log(Total_Length_mm) ~ Day_of_treatment + (1 | Repeat), data = tmp) mod.gen
Error: bad 'data': objet 'tmp' introuvable
= glht(mod.gen, linfct=mcp(Day_of_treatment="Tukey")) multcomp
Error in model.matrix(model) : objet 'mod.gen' introuvable
Error in factor_contrasts(model): no 'model.matrix' method for 'model' found!
= cld(multcomp) Comp_HS
Error in cld(multcomp): objet 'multcomp' introuvable
= aggregate(data=tmp,Total_Length_mm ~ Day_of_treatment, max) letter_position_HS
Error in eval(m$data, parent.frame()): objet 'tmp' introuvable
$Diet="HS" letter_position_HS
Error in letter_position_HS$Diet = "HS": objet 'letter_position_HS' introuvable
#HY
= subset(Length_longshift, Diet=="HY") tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_longshift' introuvable
= fitme(log(Total_Length_mm) ~ Day_of_treatment + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Day_of_treatment + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Diet = as.character(paste("HY")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_HY
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
= lmer(log(Total_Length_mm) ~ Day_of_treatment + (1 | Repeat), data = tmp) mod.gen
Error: bad 'data': objet 'tmp' introuvable
= glht(mod.gen, linfct=mcp(Day_of_treatment="Tukey")) multcomp
Error in model.matrix(model) : objet 'mod.gen' introuvable
Error in factor_contrasts(model): no 'model.matrix' method for 'model' found!
= cld(multcomp) Comp_HY
Error in cld(multcomp): objet 'multcomp' introuvable
= aggregate(data=tmp,Total_Length_mm ~ Day_of_treatment, max) letter_position_HY
Error in eval(m$data, parent.frame()): objet 'tmp' introuvable
$Diet="HY" letter_position_HY
Error in letter_position_HY$Diet = "HY": objet 'letter_position_HY' introuvable
= rbind(tab_stat_HS,tab_stat_HY) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_HS' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Any difference", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>%
add_header_above(c("log(Total_Length_mm) ~ Day + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Any difference", "Replicates", "Chi2", : objet 'tab_stat' introuvable
= rbind(letter_position_HS,letter_position_HY) letter_position
Error in eval(quote(list(...)), env): objet 'letter_position_HS' introuvable
= as.data.frame(Comp_HS$mcletters$Letters) tab_letter_HS
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'Comp_HS' introuvable
$Diet = "HS" tab_letter_HS
Error in tab_letter_HS$Diet = "HS": objet 'tab_letter_HS' introuvable
$Day_of_treatment=rownames(tab_letter_HS) tab_letter_HS
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'rownames' : objet 'tab_letter_HS' introuvable
colnames(tab_letter_HS)[1] = "Letter"
Error in colnames(tab_letter_HS)[1] = "Letter": objet 'tab_letter_HS' introuvable
= as.data.frame(Comp_HY$mcletters$Letters) tab_letter_HY
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'Comp_HY' introuvable
$Day_of_treatment=rownames(tab_letter_HY) tab_letter_HY
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'rownames' : objet 'tab_letter_HY' introuvable
$Diet = "HY" tab_letter_HY
Error in tab_letter_HY$Diet = "HY": objet 'tab_letter_HY' introuvable
colnames(tab_letter_HY)[1] = "Letter"
Error in colnames(tab_letter_HY)[1] = "Letter": objet 'tab_letter_HY' introuvable
= rbind(tab_letter_HS,tab_letter_HY) tab_letter
Error in eval(quote(list(...)), env): objet 'tab_letter_HS' introuvable
= left_join(tab_letter,letter_position) tab_letter
Error in left_join(tab_letter, letter_position): objet 'tab_letter' introuvable
### Plot
=max(Length_longshift$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'Length_longshift' introuvable
=
Plot_Fig4S1Cggplot(Length_longshift, aes(x = Day_of_treatment, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 0.15) +
facet_grid(.~Diet,scales="free_x",space="free")+
geom_text(data = Sample_size, mapping = aes(x = Day_of_treatment, y = 1.5, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_text(data = tab_letter, mapping = aes(x = Day_of_treatment, y = Total_Length_mm+0.4, label = Letter),size=3)+
geom_text(data = tab_stat, mapping = aes(x = 1.5, y = 9.5, label = paste("p=",format(Pvalue,digits=2))),size=3)+
scale_fill_manual(limits=c("0","HS","HY"),
values= c("#cfe7cf","#FFB4B4", "#C3E6FC"))+
scale_x_discrete("Days post eclosion")+
scale_y_continuous("Midgut length (mm)",
limits=c(1.5,9.5),
breaks=seq(3,9,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(Length_longshift, aes(x = Day_of_treatment, y = Total_Length_mm)): objet 'Length_longshift' introuvable
Plot_Fig4S1C
Error in eval(expr, envir, enclos): objet 'Plot_Fig4S1C' introuvable
Midgut size is a plastic, diet-dependent trait. Midguts of flies shifted between HS or HY can reversibly grow throughout 21 days. Statistical comparison is vs pre-shift measurement.
=
Length_shift_growth "4C, 4S1D"]]%>%
d[[select(-Total.PH3)%>%
mutate(Total_Length_mm = Total.L/1000)%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(Day_of_treatment=Day)%>%
dplyras.data.frame()%>%
mutate(Dday=fct_relevel(Dday,"Shift Day 7","Shift Day 14","Shift Day 21"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'select' applicable pour un objet de classe "NULL"
=
Sample_size%>%
Length_shift_growthgroup_by(Dday,Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Dday, Diet): objet 'Length_shift_growth' introuvable
###Stats
# Day 7
= subset(Length_shift_growth,Dday=="Shift Day 7") tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shift_growth' introuvable
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste(("HS Day 7 vs HS to HY Day 14"))),
tab_stat Dday = as.character(paste("Shift Day 7")),
Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_7
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
# Day 14
= subset(Length_shift_growth,Dday=="Shift Day 14") tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shift_growth' introuvable
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste(("HS Day 14 vs HS to HY Day 21"))),
tab_stat Dday = as.character(paste("Shift Day 14")),
Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_14
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
# Day 21
= subset(Length_shift_growth,Dday=="Shift Day 21") tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shift_growth' introuvable
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste(("HS Day 21 vs HS to HY Day 28"))),
tab_stat Dday = as.character(paste("Shift Day 21")),
Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_21
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
=rbind(tab_stat_7,tab_stat_14,tab_stat_21) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_7' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Shift day", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Total_Length_mm) ~ Diet + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Shift day", "Replicates", : objet 'tab_stat' introuvable
=
tab_stat%>%
tab_statmutate_if(is.character,as.factor)%>%
as.data.frame()%>%
mutate(Dday=fct_relevel(Dday,"Shift Day 7","Shift Day 14","Shift Day 21"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tab_stat' introuvable
### Plot
= c("Shift\nDay 7","Shift\nDay 14","Shift\nDay 21")
Treatment.status names(Treatment.status) = c("Shift Day 7", "Shift Day 14","Shift Day 21")
=max(Length_shift_growth$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'Length_shift_growth' introuvable
=
Plot_Fig4S1Dggplot(Length_shift_growth, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/60) +
facet_grid(. ~ Dday,labeller=labeller(Dday=Treatment.status) )+
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 1.6, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(data = tab_stat, aes(xmin = 1, xmax = 2, annotations = formatC(paste("p=",Pvalue), digits = 2), y_position = 9), textsize = 2.5, vjust = -0.2, manual = TRUE)+
scale_fill_manual(limits=c("HS","HStoHY"),
values=cbbHS_HStoHY)+
scale_x_discrete("",
limits=c("HS","HStoHY"),
labels=c("HS","HS to HY"))+
scale_y_continuous("Midgut length (mm)",
limits=c(1.5,9.5),
breaks=seq(2,8,by=1))+
stat_summary(fun = mean, geom = "point", size = 2.5, shape = 18,aes(group=Repeat, colour = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(Length_shift_growth, aes(x = Diet, y = Total_Length_mm)): objet 'Length_shift_growth' introuvable
Plot_Fig4S1D
Error in eval(expr, envir, enclos): objet 'Plot_Fig4S1D' introuvable
Midgut size is a plastic, diet-dependent trait. Midguts of flies shifted between HS or HY can reversibly shrink throughout 21 days. Statistical comparison is vs pre-shift measurement.
=
Length_shift_Shrink "4C', 4S1D'"]]%>%
d[[select(-Total.PH3)%>%
mutate(Total_Length_mm = Total.L/1000)%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(Day_of_treatment=Day)%>%
dplyras.data.frame()%>%
mutate(Dday=fct_relevel(Dday,"Shift Day 7","Shift Day 14","Shift Day 21"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'select' applicable pour un objet de classe "NULL"
=
Sample_size%>%
Length_shift_Shrinkgroup_by(Dday,Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Dday, Diet): objet 'Length_shift_Shrink' introuvable
###Stats
# Day 7
= subset(Length_shift_Shrink,Dday=="Shift Day 7") tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shift_Shrink' introuvable
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste(("HS Day 7 vs HS to HY Day 14"))),
tab_stat Dday = as.character(paste("Shift Day 7")),
Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_7
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
# Day 14
= subset(Length_shift_Shrink,Dday=="Shift Day 14") tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shift_Shrink' introuvable
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste(("HS Day 14 vs HS to HY Day 21"))),
tab_stat Dday = as.character(paste("Shift Day 14")),
Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_14
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
# Day 21
= subset(Length_shift_Shrink,Dday=="Shift Day 21") tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Length_shift_Shrink' introuvable
= fitme(log(Total_Length_mm) ~ Diet + (1 | Repeat), data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + (1 / Repeat), data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat), data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste(("HS Day 21 vs HS to HY Day 28"))),
tab_stat Dday = as.character(paste("Shift Day 21")),
Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
= tab_stat tab_stat_21
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
=rbind(tab_stat_7,tab_stat_14,tab_stat_21) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_7' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison","Shift day", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Total length) ~ Day + Diet + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Shift day", "Replicates", : objet 'tab_stat' introuvable
=
tab_stat%>%
tab_statmutate_if(is.character,as.factor)%>%
as.data.frame()%>%
mutate(Dday=fct_relevel(Dday,"Shift Day 7","Shift Day 14","Shift Day 21"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tab_stat' introuvable
### Plot
= c("Shift\nDay 7","Shift\nDay 14","Shift\nDay 21")
Treatment.status names(Treatment.status) = c("Shift Day 7", "Shift Day 14","Shift Day 21")
=max(Length_shift_Shrink$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'Length_shift_Shrink' introuvable
=
Plot_Fig4S1Eggplot(Length_shift_Shrink, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 0.15) +
facet_grid(. ~ Dday,labeller=labeller(Dday=Treatment.status) )+
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 1.6, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(data = tab_stat, aes(xmin = 1, xmax = 2, annotations = formatC(paste("p=",Pvalue), digits = 2), y_position = 9), textsize = 2.5, vjust = -0.2, manual = TRUE)+
scale_fill_manual(limits=c("HY","HYtoHS"),
values=cbbHY_HYtoHS)+
scale_x_discrete("",
limits=c("HY","HYtoHS"),
labels=c("HY","HY to HS"))+
scale_y_continuous("Midgut length (mm)",
limits=c(1.5,9.5),
breaks=seq(2,8,by=1))+
stat_summary(fun = mean, geom = "point", size = 2.5, shape = 18,aes(group=Repeat, colour = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(Length_shift_Shrink, aes(x = Diet, y = Total_Length_mm)): objet 'Length_shift_Shrink' introuvable
Plot_Fig4S1E
Error in eval(expr, envir, enclos): objet 'Plot_Fig4S1E' introuvable
ISC proliferation is promoted by yeast and antagonized by sugar. Cell proliferation (pH3 stain) is impeded by dietary sucrose, and increased by yeast, similar to total midgut length (Figure 2A). Plots showing counts of pH3+ cells as a function of ingested yeast and sucrose.
=
tab_nutri_geo_PH3 "4 - S1F"]]
d[[
jpeg(filename = "Plot_Fig4-S1F.jpeg",
res = 600,
width = 5, height = 4, units = 'in' )
par(cex=1, mar = c(4.5, 4.5, 1, 3))
with(tab_nutri_geo_PH3, geomPlotta(x = Sucrose.in.Diet, y = Yeast.in.Diet, z = Ph3.Total, alf = 1, xlim = c(-10, 300), ylim = c(-10, 300), xlab = "Sucrose in diet (g/L)", ylab = "Yeast in diet (g/L)", frame.plot= FALSE, cex.lab=1.2, cex.axis =1, las=1, labcex=1, asp=1))
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/Plot_Fig4-S1F.jpeg") img4S1F
Error in transpose(y): object is NULL
= rasterGrob(img4S1F) gob_imageFig4S1F
Error in rasterGrob(img4S1F): objet 'img4S1F' introuvable
grid.draw(gob_imageFig4S1F)
Error in grid.draw(gob_imageFig4S1F): objet 'gob_imageFig4S1F' introuvable
Plots showing pH3+ cell counts increase with dietary yeast, with an optimum around HY diet. Increasing sucrose reduces counts of pH3+ cells.
=
tab_nutri_geo_PH3 "4 - S1F"]]
d[[
<- tab_nutri_geo_PH3 %>%
tab_nutri_geo_PH32 group_by(concatenate) %>%
summarize(Calories.ingested = mean(Calories.ingested),
Ph3.Total = mean(Ph3.Total),
Yeast.ingested = mean(Yeast.ingested),
Sucrose.ingested = mean(Sucrose.ingested))
Error in UseMethod("group_by"): pas de méthode pour 'group_by' applicable pour un objet de classe "NULL"
<- ggplot(tab_nutri_geo_PH32, aes(x=Sucrose.ingested, y=Yeast.ingested)) graph
Error in ggplot(tab_nutri_geo_PH32, aes(x = Sucrose.ingested, y = Yeast.ingested)): objet 'tab_nutri_geo_PH32' introuvable
=
Plot_Fig4S1G+ geom_point(aes(size=Calories.ingested, fill=Ph3.Total), stroke=1, shape=21, color="black") +
graph scale_size(range = c(1,5)) +
scale_fill_viridis_c() +
theme(plot.title= element_text(hjust = 0.5))+
scale_x_continuous("Sucrose ingested (g/L x Absorbance)",
limits=c(-5,160),
breaks=seq(0,160,by=25))+
scale_y_continuous("Yeast ingested (g/L x Absorbance)",
limits=c(-5,50),
breaks=seq(0,50,by=10))+
scale_size_continuous(range = c(1,5)) +
theme(panel.background = element_blank(),
panel.grid.major = element_line(colour = "black",linetype=3),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(c(0,0,0,0.5), "cm"),
legend.direction = "horizontal",
legend.box = "vertical",
legend.position = c(0.75,0.79),
legend.key.height = unit(0.3, "cm"),
legend.key.width= unit(0.3, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.box.background = element_rect(fill="white", colour ="black"),
legend.spacing.y = unit(0, "cm"))+
labs(fill = expression(paste("pH3" ^ "+", " cells")), size = "Calories
ingested", vjust="center" )
Error in eval(expr, envir, enclos): objet 'graph' introuvable
Plot_Fig4S1G
Error in eval(expr, envir, enclos): objet 'Plot_Fig4S1G' introuvable
##Export Figure 4S1
Illustration of the cell loss assay (Figure 4G - L). A pulse of RU486 for 3 days marks all ECs and EBs through 5966GS>His-2BRFP. Flies were dissected at 2 and 16-days after cessation of hormone pulse.
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/4 - S2A.jpg") img4S2A
Error in transpose(y): object is NULL
= rasterGrob(img4S2A) gob_imageFig4S2A
Error in rasterGrob(img4S2A): objet 'img4S2A' introuvable
grid.draw(gob_imageFig4S2A)
Error in grid.draw(gob_imageFig4S2A): objet 'gob_imageFig4S2A' introuvable
His2B-RFP is highly stable on both HS and HY diets on tissues not undergoing turnover in a manner similar to the midgut. We assayed the stability of the His2B-RFP by driving it through an ActGS driver, in the crop and hindgut in the same timeline as the experiment presented in Figure 4K. In both organs, we found a high degree of cells marked by His2B-RFP, and on both diets, at both the initial timepoint and after 14 days from the start of the chase. Day of dissection at the bottom of the chart are relative to start of pulse chase.
=
tab_Hisstab_rev "4S2B"]]%>%
d[[mutate_at(vars(!starts_with("RFP")),as.factor)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
###Stats
#Crop
= subset(tab_Hisstab_rev , Tissue%in%c("Crop")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_Hisstab_rev' introuvable
= fitme((RFP.Dapi) ~ Day * Diet + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest((RFP.Dapi) ~ Day * Diet + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme((RFP.Dapi) ~ Day + Diet + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
test
function (pkg = ".", filter = NULL, stop_on_failure = FALSE,
export_all = TRUE, ...)
{
save_all()
pkg <- as.package(pkg)
if (!uses_testthat(pkg) && interactive()) {
cli::cli_alert_danger("No testing infrastructure found. Create it?")
if (utils::menu(c("Yes", "No")) == 1) {
usethis_use_testthat(pkg)
}
return(invisible())
}
load_all(pkg$path)
cli::cli_alert_info("Testing {.pkg {pkg$package}}")
withr::local_envvar(r_env_vars())
testthat::test_local(pkg$path, filter = filter, stop_on_failure = stop_on_failure,
...)
}
<bytecode: 0x000000009e53be20>
<environment: namespace:devtools>
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Tissue = as.character(paste("Crop")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=1,scientific=F)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_Crop
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Hindgut
= subset(tab_Hisstab_rev , Tissue%in%c("Hindgut")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_Hisstab_rev' introuvable
= fitme((RFP.Dapi) ~ Day * Diet + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest((RFP.Dapi) ~ Day * Diet + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme((RFP.Dapi) ~ Day + Diet + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
test
function (pkg = ".", filter = NULL, stop_on_failure = FALSE,
export_all = TRUE, ...)
{
save_all()
pkg <- as.package(pkg)
if (!uses_testthat(pkg) && interactive()) {
cli::cli_alert_danger("No testing infrastructure found. Create it?")
if (utils::menu(c("Yes", "No")) == 1) {
usethis_use_testthat(pkg)
}
return(invisible())
}
load_all(pkg$path)
cli::cli_alert_info("Testing {.pkg {pkg$package}}")
withr::local_envvar(r_env_vars())
testthat::test_local(pkg$path, filter = filter, stop_on_failure = stop_on_failure,
...)
}
<bytecode: 0x000000009e53be20>
<environment: namespace:devtools>
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Tissue = as.character(paste("Hindgut")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=1,scientific=F)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_Hindgut
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Table
=rbind(tab_stat_Crop,tab_stat_Hindgut) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_Crop' introuvable
$padj = as.numeric(format(p.adjust(tab_stat$Pvalue, method = "BH"),digits=2,scientific =F)) tab_stat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'format' : objet 'tab_stat' introuvable
$sig = ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*",
tab_statifelse(tab_stat$padj < 0.01 & tab_stat$padj > 0.001, "**",
ifelse(tab_stat$padj < 0.001, "***", "")))
Error in ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*", ifelse(tab_stat$padj < : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Variable", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","p-value adjusted","Signif."),row.names = FALSE) %>%
add_header_above(c("(RFP/Dapi) ~ Diet + Genotype + Diet : Genotype + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Variable", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
=tab_stat tab_stat_rev_Hisstab
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Diet = "HY" tab_stat_rev_Hisstab
Error in tab_stat_rev_Hisstab$Diet = "HY": objet 'tab_stat_rev_Hisstab' introuvable
=
Sample_size%>%
tab_Hisstab_revgroup_by(Diet, Day, Tissue)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Day, Tissue): objet 'tab_Hisstab_rev' introuvable
### Plot
= c("0","14")
Limits
=
Plot_Fig4S2Bggplot(tab_Hisstab_rev, aes(x = Day, y = RFP.Dapi))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 4) +
facet_grid(Tissue ~ Diet,labeller=label_parsed)+
geom_text(data = Sample_size, mapping = aes(x = Day, y = 10, label = paste("(",Sample_size,")",sep="")),size=3)+
scale_fill_manual(limits=c("HS","HY"),
values=c("#FFB4B4","#C3E6FC"))+
scale_x_discrete("Day of dissection post RU486 pulse",
limits=Limits,
labels=c("0","14"))+
scale_y_continuous(expression(paste("RFP pos. cells / Total cells %")),
limits=c(0,110),
breaks=seq(0,100,by=20))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
stat_summary(fun = mean, colour = "black", geom = "line", aes(group = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black", margin = margin(t = 0, r = 0, b = 0, l = 0) ),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text = element_text(size =Smallfont-2, colour = "black",face="italic", margin = margin(t = 2, r = 1, b = 2, l = 1)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_Hisstab_rev, aes(x = Day, y = RFP.Dapi)): objet 'tab_Hisstab_rev' introuvable
Plot_Fig4S2B
Error in eval(expr, envir, enclos): objet 'Plot_Fig4S2B' introuvable
Cell loss assay performed at 5 days post start of chase shows limited cell loss in HY to HY condition. Number of ECs in the posterior midgut, both marked (Red, old ECs) and unmarked (Blue, new ECs) by RFP, error bars are SE from 3 repeats.
=
tab_prop_cell_RFP_kin "4S2C"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
mutate(Post.Dapi.Number = (Post.Dapi.Number)*2)%>%
mutate(Post.RFP.Number = (Post.RFP.Number)*2)%>%
mutate(Post.NonRFP.Number = (Post.Dapi.Number - Post.RFP.Number))%>%
group_by(Day, Diet, CG, Experiment)%>%
summarise(mean_RFP_positive=mean(Post.RFP.Number,na.rm=T),
se_RFP_positive=se(Post.RFP.Number),
mean_RFP_negative=mean(Post.NonRFP.Number,na.rm=T),
se_RFP_negative=se(Post.NonRFP.Number))%>%
mutate(group=paste(Diet,Experiment,sep="_"))%>%
as.data.frame()
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
attach(tab_prop_cell_RFP_kin)
Error in attach(tab_prop_cell_RFP_kin): objet 'tab_prop_cell_RFP_kin' introuvable
for (i in 1:length(Experiment)){
$se_proportionGraphPlus_pos[i] = mean_RFP_positive[i]+se_RFP_positive[i]
tab_prop_cell_RFP_kin$se_proportionGraphMinus_pos[i] = mean_RFP_positive[i]-se_RFP_positive[i]
tab_prop_cell_RFP_kin$se_proportionGraphPlus_neg[i] = mean_RFP_positive[i]+mean_RFP_negative[i]+se_RFP_negative[i]
tab_prop_cell_RFP_kin$se_proportionGraphMinus_neg[i] = mean_RFP_positive[i]+mean_RFP_negative[i]-se_RFP_negative[i]
tab_prop_cell_RFP_kin }
Error in eval(expr, envir, enclos): objet 'Experiment' introuvable
= tab_prop_cell_RFP_kin[,c("Day", "Diet", "CG", "Experiment","mean_RFP_positive", "se_RFP_positive","se_proportionGraphPlus_pos", "se_proportionGraphMinus_pos")] tmp1
Error in eval(expr, envir, enclos): objet 'tab_prop_cell_RFP_kin' introuvable
$RFP="Positive" tmp1
Error in tmp1$RFP = "Positive": objet 'tmp1' introuvable
=dplyr::rename(tmp1,mean_RFP = mean_RFP_positive,
tmp1se_RFP = se_RFP_positive,
se_proportionGraphPlus =se_proportionGraphPlus_pos,
se_proportionGraphMinus= se_proportionGraphMinus_pos)
Error in dplyr::rename(tmp1, mean_RFP = mean_RFP_positive, se_RFP = se_RFP_positive, : objet 'tmp1' introuvable
= tab_prop_cell_RFP_kin[,c("Day", "Diet", "CG", "Experiment","mean_RFP_negative", "se_RFP_negative", "se_proportionGraphMinus_neg" ,"se_proportionGraphPlus_neg")] tmp2
Error in eval(expr, envir, enclos): objet 'tab_prop_cell_RFP_kin' introuvable
$RFP="Negative" tmp2
Error in tmp2$RFP = "Negative": objet 'tmp2' introuvable
=dplyr::rename(tmp2,mean_RFP = mean_RFP_negative,
tmp2se_RFP = se_RFP_negative,
se_proportionGraphPlus =se_proportionGraphPlus_neg,
se_proportionGraphMinus= se_proportionGraphMinus_neg)
Error in dplyr::rename(tmp2, mean_RFP = mean_RFP_negative, se_RFP = se_RFP_negative, : objet 'tmp2' introuvable
= rbind(tmp1,tmp2) tab_prop_cell_RFP_kin
Error in eval(quote(list(...)), env): objet 'tmp1' introuvable
=
tab_prop_cell_RFP_kin %>%
tab_prop_cell_RFP_kinmutate_if(is.numeric,round,0)%>%
mutate_if(is.character,as.factor)
Error in is_grouped_df(tbl): objet 'tab_prop_cell_RFP_kin' introuvable
levels(tab_prop_cell_RFP_kin$Diet) <- c("HS", "HS to HS" , "HS to HY", "HY", "HY to HS", "HY to HY")
Error in levels(tab_prop_cell_RFP_kin$Diet) <- c("HS", "HS to HS", "HS to HY", : objet 'tab_prop_cell_RFP_kin' introuvable
=
Sample_size"4S2C"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
group_by(Diet)%>%
summarise(Sample_size=n())
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
$Experiment = c("G", "G", "G", "S", "S", "S") Sample_size
Error in Sample_size$Experiment = c("G", "G", "G", "S", "S", "S"): objet 'Sample_size' introuvable
levels(Sample_size$Diet) <- c("HS", "HS to HS" , "HS to HY", "HY", "HY to HS", "HY to HY")
Error in levels(Sample_size$Diet) <- c("HS", "HS to HS", "HS to HY", "HY", : objet 'Sample_size' introuvable
=
Plot_Fig4S2C ggplot(tab_prop_cell_RFP_kin, aes(x=Diet, y=mean_RFP))+
geom_bar(stat="identity",aes(fill=RFP),color="black",width=.90)+
geom_errorbar(aes(ymin= se_proportionGraphMinus, ymax= se_proportionGraphPlus),width=0.25)+
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 200, label = paste("(",Sample_size,")",sep="")),size=3)+
#facet_wrap(.~Experiment,scales="free_x")+
scale_fill_manual(name = "RFP labelling",
values=c("#3a5ecc","#cc0000"),
labels = c("Negative", "Positive"))+
scale_y_continuous("Number of cells (mean \u00B1se)",
limits=c(0,5800),
breaks=seq(0,5000,by=500))+
theme(
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_blank(),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = c(0.2,0.87),
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=Smallfont),
legend.background = element_rect(fill=NA),
strip.text = element_blank())
Error in ggplot(tab_prop_cell_RFP_kin, aes(x = Diet, y = mean_RFP)): objet 'tab_prop_cell_RFP_kin' introuvable
#strip.background = element_rect(fill=NA, colour="black"),
#strip.placement="outside")
Plot_Fig4S2C
Error in eval(expr, envir, enclos): objet 'Plot_Fig4S2C' introuvable
Diet composition modulates cell replacement rate (cell/day). Bar chart was made using the same data as in Figure 4 K, L.
=
tab_relative_cell_rate_supp "4L, 4S2D"]]%>%
d[[select(-starts_with("X"))%>%
drop_na()%>%
mutate_if(is.character,as.factor)%>%
group_by(Diet1, Experiment, Experiment2, GL)%>%
summarise(mean_Daily=mean(Daily,na.rm=T))%>%
mutate(group=paste(Diet1,Experiment,sep="_"))%>%
as.data.frame()
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'select' applicable pour un objet de classe "NULL"
=
tab_relative_cell_rate_ratio %>%
tab_relative_cell_rate_suppgroup_by(Diet1,Experiment2)%>%
summarize(Ratio = round(mean_Daily[GL == "Gain"] / (-mean_Daily[GL == "Loss"]),2))%>%
mutate(GL="Loss")
Error in group_by(., Diet1, Experiment2): objet 'tab_relative_cell_rate_supp' introuvable
levels(tab_relative_cell_rate_supp$Diet1) <- c("HS to HS" , "HS to HY", "HY to HS", "HY to HY")
Error in levels(tab_relative_cell_rate_supp$Diet1) <- c("HS to HS", "HS to HY", : objet 'tab_relative_cell_rate_supp' introuvable
levels(tab_relative_cell_rate_ratio$Diet1) <- c("HS to HS" , "HS to HY", "HY to HS", "HY to HY")
Error in levels(tab_relative_cell_rate_ratio$Diet1) <- c("HS to HS", "HS to HY", : objet 'tab_relative_cell_rate_ratio' introuvable
=
Plot_Fig4S2D ggplot(tab_relative_cell_rate_supp, aes(x = Diet1, y = mean_Daily, fill = GL))+
geom_bar(stat="identity",aes(fill=GL),color="black",width=.90)+
geom_hline(yintercept = 0)+
geom_text(data=tab_relative_cell_rate_ratio,mapping=aes(x=Diet1,y=-20,label=Ratio), color = "red")+
facet_grid(.~Experiment2,scales="free_x")+
scale_fill_manual(name = "Enterocyte",
values=c("palegreen", "moccasin"),
labels = c("Gain", "Loss"))+
scale_y_continuous("Cell rate (cell/ day)",
limits=c(-220,220),
breaks=seq(-200,200,by=50))+
theme(
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_blank(),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = c(0.18,0.88),
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=Smallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_relative_cell_rate_supp, aes(x = Diet1, y = mean_Daily, : objet 'tab_relative_cell_rate_supp' introuvable
Plot_Fig4S2D
Error in eval(expr, envir, enclos): objet 'Plot_Fig4S2D' introuvable
##Export Figure 4S2
Diet influences midgut transcriptomes after an initial programmed developmental transition. The plot shows a PCA of the whole transcriptome, with means per diet per day ± standard error (3 repeats). Numbers on the plot represent the day of dissection from eclosion. Lines connect the datapoints sequentially (Day 0 to day 1, day 1 to day 2, and so on), and show the divergent transcriptomic trajectory followed by midguts on the two different diets from eclosion.
=
dataInd "gutGrowthDataIndex"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
#add string to direct to enumerated reads
$countFile = gsub(".fastq", "_sn.sam.count", dataInd$library) dataInd
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'gsub' : objet 'dataInd' introuvable
$samp = paste("day",dataInd$day,"_diet",dataInd$diet,"_rep",dataInd$rep,sep="") dataInd
Error in eval(quote(list(...)), env): objet 'dataInd' introuvable
$expCond = factor(paste(dataInd$day, dataInd$diet, sep="")) dataInd
Error in eval(quote(list(...)), env): objet 'dataInd' introuvable
$dietCol = with( dataInd, ifelse(diet=="x", "#ff9595", ifelse(diet=="y", "#abefff", "#67ff67")) ) dataInd
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'data' lors de la s�lection d'une m�thode pour la fonction 'with' : objet 'dataInd' introuvable
= d[["readTable"]]
tab_read_RNAseq = rownames(tab_read_RNAseq) = tab_read_RNAseq$FBid
geneID = tab_read_RNAseq[,2:ncol(tab_read_RNAseq)] tab_read_RNAseq
Error in 2:ncol(tab_read_RNAseq): l'argument est de longueur nulle
= d[["normCounts"]]
normCounts rownames(normCounts) = geneID
= normCounts[,2:ncol(normCounts)] normCounts
Error in 2:ncol(normCounts): l'argument est de longueur nulle
#pca without day 4
= droplevels(subset(dataInd, day!=4)) dataInd2
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'droplevels' : erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'dataInd' introuvable
= normCounts[,dataInd$day!=4] normCounts2
Error in eval(expr, envir, enclos): objet 'dataInd' introuvable
= prcomp(t(normCounts2)) pca2
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 't' : objet 'normCounts2' introuvable
summary(pca2)
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'summary' : objet 'pca2' introuvable
#calculate means and SEs of the PCs
#without day 4
= aggregate(pca2$x ~ day * diet + dietCol, data=dataInd2, mean) pcMns
Error in eval(m$data, parent.frame()): objet 'dataInd2' introuvable
= aggregate(pca2$x ~ day * diet + dietCol, data=dataInd2, function(x){sd(x)/sqrt(length(x))}) pcSEs
Error in eval(m$data, parent.frame()): objet 'dataInd2' introuvable
= droplevels(subset(pcMns, day!=4)) pcMns
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'droplevels' : erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'pcMns' introuvable
= droplevels(subset(pcSEs, day!=4)) pcSEs
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'droplevels' : erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'pcSEs' introuvable
= pcMns[order(pcMns$day),] pcMns
Error in eval(expr, envir, enclos): objet 'pcMns' introuvable
= pcSEs[order(pcSEs$day),] pcSEs
Error in eval(expr, envir, enclos): objet 'pcSEs' introuvable
= pcMns%>%
pcMns mutate_if(is.character,as.factor)%>%
select(day,diet,dietCol,PC1,PC2)%>%
as.data.frame()%>%
::rename(PC1_mean=PC1,
dplyrPC2_mean=PC2)
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'pcMns' introuvable
= pcSEs%>%
pcSEs mutate_if(is.character,as.factor)%>%
select(day,diet,dietCol,PC1,PC2)%>%
::rename(PC1_se=PC1,
dplyrPC2_se=PC2)
Error in is_grouped_df(tbl): objet 'pcSEs' introuvable
= left_join(pcMns,pcSEs) tab_PCA
Error in left_join(pcMns, pcSEs): objet 'pcMns' introuvable
$diet1 =ifelse(tab_PCA$diet=="x","#ff9595","#abefff") tab_PCA
Error in ifelse(tab_PCA$diet == "x", "#ff9595", "#abefff"): objet 'tab_PCA' introuvable
$diet1[1]="#ff9595" tab_PCA
Error in tab_PCA$diet1[1] = "#ff9595": objet 'tab_PCA' introuvable
$diet2=ifelse(tab_PCA$diet=="y","#abefff","#ff9595") tab_PCA
Error in ifelse(tab_PCA$diet == "y", "#abefff", "#ff9595"): objet 'tab_PCA' introuvable
$diet2[1]="#abefff" tab_PCA
Error in tab_PCA$diet2[1] = "#abefff": objet 'tab_PCA' introuvable
=mutate_if(tab_PCA,is.character,as.factor) tab_PCA
Error in is_grouped_df(tbl): objet 'tab_PCA' introuvable
$diet1= factor(tab_PCA$diet1,levels=c("#67ff67","#abefff","#ff9595")) tab_PCA
Error in factor(tab_PCA$diet1, levels = c("#67ff67", "#abefff", "#ff9595")): objet 'tab_PCA' introuvable
$diet2= factor(tab_PCA$diet2,levels=c("#67ff67","#abefff","#ff9595")) tab_PCA
Error in factor(tab_PCA$diet2, levels = c("#67ff67", "#abefff", "#ff9595")): objet 'tab_PCA' introuvable
=
Plot_Fig5Aggplot(tab_PCA,aes(x=PC1_mean, y=PC2_mean))+
geom_point(aes(color=dietCol),size=2 ,shape=19)+
geom_errorbarh(aes(xmax = PC1_mean+PC1_se, xmin =PC1_mean-PC1_se,color=dietCol ),height=0.1)+
geom_errorbar(aes(ymax = PC2_mean+PC2_se, ymin =PC2_mean-PC2_se,color=dietCol ),width =0.1)+
geom_path(size=0.8,aes(group=diet1,color=diet1))+
geom_path(size=0.8,aes(group=diet2,color=diet2))+
geom_text(aes(label=day),size=4,vjust = 0, nudge_y = -2.5)+
scale_color_manual(values=c("#67ff67","#abefff","#ff9595"))+
scale_x_continuous(paste("PC1 (", round(summary(pca2)$importance[2,1]*100), "%)", sep=""),
limits=c(-50,60),
breaks=seq(-50,60,by=20))+
scale_y_continuous(paste("PC2 (", round(summary(pca2)$importance[2,2]*100), "%)", sep=""),
limits=c(-30,45),
breaks=seq(-30,40,by=10))+
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size =Smallfont, colour = "black",face="italic"),
strip.text.y = element_text(size =Smallfont, colour = "black",face="italic"),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_PCA, aes(x = PC1_mean, y = PC2_mean)): objet 'tab_PCA' introuvable
Plot_Fig5A
Error in eval(expr, envir, enclos): objet 'Plot_Fig5A' introuvable
Diet modulates expression of functionally distinct gene classes. Midguts of flies fed HY diet show higher expression of genes with digestive functions, while HS diet involves mainly genes attributed to stress response and growth. X-axis represents the statistical significance of the gene ontology (GO) categories (y-axis) after adjustment for multiple testing. Size of the dot is proportional to number of genes in the given GO category
=
tab_GO_results "5B"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate(Padj=-log(p.value,10),
Term = str_to_sentence(Term))%>%
as.data.frame()
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
$Term <- factor(tab_GO_results$Term, levels = tab_GO_results$Term[order(tab_GO_results$Diet, tab_GO_results$Padj, tab_GO_results$Significant)]) tab_GO_results
Error in factor(tab_GO_results$Term, levels = tab_GO_results$Term[order(tab_GO_results$Diet, : objet 'tab_GO_results' introuvable
#order GO categories based on size of Padj
$Diet <- factor(tab_GO_results$Diet, levels = c("HY", "HS")) tab_GO_results
Error in factor(tab_GO_results$Diet, levels = c("HY", "HS")): objet 'tab_GO_results' introuvable
### Plot
=
Plot_Fig5Bggplot(tab_GO_results, aes(x = Padj, y = Term))+
geom_point(aes(size=Significant,fill=Diet),shape=21) +
facet_grid(Diet~.,scales="free_y",space="free")+
scale_fill_manual(limits=c("HS","HY"),
values=c("#FFB4B4","#C3E6FC"))+
geom_vline(xintercept = 1.3,linetype=3)+
scale_y_discrete("GO categories")+
scale_x_continuous(expression(paste("-P-value adjusted (", log[10],")")),
limits=c(0,31),
breaks=c(0,seq(10,30,by=10)))+
scale_size_continuous("Nbr genes", range =c(1,5) )+
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont-2,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "horizontal",
legend.box = "horizontal",
legend.position = "top",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.margin=margin(b=0, unit='cm'),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=Smallfont-2),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size =Smallfont, colour = "black",face="italic"),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 3, r = 1, b = 3, l = 1)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")+
guides(fill=F)
Error in ggplot(tab_GO_results, aes(x = Padj, y = Term)): objet 'tab_GO_results' introuvable
Plot_Fig5B
Error in eval(expr, envir, enclos): objet 'Plot_Fig5B' introuvable
Table of genes significantly differently expressed, between HS and HY, as a ratio of HS/HY, representing midgut response to HS and HY diets; additional information on the statistics is found in material and methods; asterisks denote genes significantly different for p-value but not for adjusted p-value
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5C.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5C
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5C)
Error in grid.draw(gob_imageFig5C): objet 'gob_imageFig5C' introuvable
Cell proliferation is possible on HS diet when genetically induced. Progenitor-specific (EsgTS) overexpression of a constitutively active form of Ras (UAS-RasV12) and of UAS-Tor-DER (EGFR Active), both known proliferative inducers, allows for increased proliferation on HS diet. P-values on top of the chart refer to comparison vs control, P-values at the bottom refer to comparison between HS and HY for each sample. Complete statistical annotation on image can be fund in the manuscript’s figures.
=
Tab_Ras_PH3_Rev "5D"]]%>%
d[[mutate_at(vars(ends_with(".L")),~./1000)%>%
mutate_at(vars(!starts_with("Total")),as.factor)%>%
::rename(PH3_positive_cell=Total.PH3,
dplyrDiet=Treatment,
Male_Line=Male.Line)%>%
mutate(Cross=fct_relevel(Cross,"EsgTsXControl","EsgTsX64195", "EsgTsXTorDER" ))
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
###Stats
##Control
= subset(Tab_Ras_PH3_Rev , Male_Line%in%c("Control")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Tab_Ras_PH3_Rev' introuvable
= fitme(log(PH3_positive_cell+1) ~ Diet + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Diet + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS vs HY Control")),
tab_stat Rep = nlevels(Tab_Ras_PH3_Rev$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Tab_Ras_PH3_Rev' introuvable
=tab_stat tab_stat_Control
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
##Ras85DV12 (64195)
= subset(Tab_Ras_PH3_Rev , Male_Line%in%c("Ras85DV12")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Tab_Ras_PH3_Rev' introuvable
= fitme(log(PH3_positive_cell+1) ~ Diet + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Diet + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS vs HY Ras85DV12")),
tab_stat Rep = nlevels(Tab_Ras_PH3_Rev$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Tab_Ras_PH3_Rev' introuvable
=tab_stat tab_stat_Ras85DV12
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
##Ras85DV12_2 (TorDER)
= subset(Tab_Ras_PH3_Rev , Male_Line%in%c("TorDER")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Tab_Ras_PH3_Rev' introuvable
= fitme(log(PH3_positive_cell+1) ~ Diet + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Diet + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS vs HY TorDER")),
tab_stat Rep = nlevels(Tab_Ras_PH3_Rev$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Tab_Ras_PH3_Rev' introuvable
=tab_stat tab_stat_TorDER
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
=rbind(tab_stat_Control, tab_stat_Ras85DV12, tab_stat_TorDER) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_Control' introuvable
$padj = as.numeric(format(p.adjust(tab_stat$Pvalue, method = "BH"),digits=2,scientific =F)) tab_stat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'format' : objet 'tab_stat' introuvable
$sig = ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*",
tab_statifelse(tab_stat$padj < 0.01 & tab_stat$padj > 0.001, "**",
ifelse(tab_stat$padj < 0.001, "***", "")))
Error in ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*", ifelse(tab_stat$padj < : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","p-value adjusted","Signif."),row.names = FALSE) %>%
add_header_above(c("log(PH3_positive_cell+1) ~ Diet + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
=tab_stat tab_stat_rev_RasPH3
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Male_Line= tab_stat_rev_RasPH3$Variable tab_stat_rev_RasPH3
Error in eval(expr, envir, enclos): objet 'tab_stat_rev_RasPH3' introuvable
###Stats HS vs control
= subset(Tab_Ras_PH3_Rev , Diet%in%c("HS")) tmpd
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Tab_Ras_PH3_Rev' introuvable
##Ras85DV12
= subset(tmpd , Male_Line%in%c("Control", "Ras85DV12")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tmpd' introuvable
= fitme((PH3_positive_cell+1) ~ Male_Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest((PH3_positive_cell+1) ~ Male_Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme((PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS Ras85DV12 vs HS Control")),
tab_stat Rep = nlevels(Tab_Ras_PH3_Rev$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Tab_Ras_PH3_Rev' introuvable
=tab_stat tab_stat_HS_Ras85DV12
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
##TorDER
= subset(tmpd , Male_Line%in%c("Control", "TorDER")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tmpd' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male_Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male_Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS TorDER vs HS Control")),
tab_stat Rep = nlevels(Tab_Ras_PH3_Rev$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Tab_Ras_PH3_Rev' introuvable
=tab_stat tab_stat_HS_TorDER
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Table
=rbind(tab_stat_HS_Ras85DV12, tab_stat_HS_TorDER) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_HS_Ras85DV12' introuvable
$padj = as.numeric(format(p.adjust(tab_stat$Pvalue, method = "BH"),digits=2,scientific =F)) tab_stat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'format' : objet 'tab_stat' introuvable
$sig = ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*",
tab_statifelse(tab_stat$padj < 0.01 & tab_stat$padj > 0.001, "**",
ifelse(tab_stat$padj < 0.001, "***", "")))
Error in ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*", ifelse(tab_stat$padj < : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","p-value adjusted","Signif."),row.names = FALSE) %>%
add_header_above(c("log(PH3_positive_cell+1) ~ Genotype + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
=tab_stat tab_stat_rev_RasPH3_HS
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Male_Line= tab_stat_rev_RasPH3_HS$Variable tab_stat_rev_RasPH3_HS
Error in eval(expr, envir, enclos): objet 'tab_stat_rev_RasPH3_HS' introuvable
###Stats HY vs control
= subset(Tab_Ras_PH3_Rev , Diet%in%c("HY")) tmpd
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'Tab_Ras_PH3_Rev' introuvable
##Ras85DV12
= subset(tmpd , Male_Line%in%c("Control", "Ras85DV12")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tmpd' introuvable
= fitme((PH3_positive_cell+1) ~ Male_Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest((PH3_positive_cell+1) ~ Male_Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme((PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HY Ras85DV12 vs HY Control")),
tab_stat Rep = nlevels(Tab_Ras_PH3_Rev$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Tab_Ras_PH3_Rev' introuvable
=tab_stat tab_stat_HY_Ras85DV12
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
##TorDER
= subset(tmpd , Male_Line%in%c("Control", "TorDER")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tmpd' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male_Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male_Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HY TorDER vs HY Control")),
tab_stat Rep = nlevels(Tab_Ras_PH3_Rev$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Tab_Ras_PH3_Rev' introuvable
=tab_stat tab_stat_HY_TorDER
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Table
=rbind(tab_stat_HY_Ras85DV12, tab_stat_HY_TorDER) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_HY_Ras85DV12' introuvable
$padj = as.numeric(format(p.adjust(tab_stat$Pvalue, method = "BH"),digits=2,scientific =F)) tab_stat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'format' : objet 'tab_stat' introuvable
$sig = ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*",
tab_statifelse(tab_stat$padj < 0.01 & tab_stat$padj > 0.001, "**",
ifelse(tab_stat$padj < 0.001, "***", "")))
Error in ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*", ifelse(tab_stat$padj < : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","p-value adjusted","Signif."),row.names = FALSE) %>%
add_header_above(c("log(PH3_positive_cell+1) ~ Genotype + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
=tab_stat tab_stat_rev_RasPH3_HY
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Male_Line= tab_stat_rev_RasPH3_HY$Variable tab_stat_rev_RasPH3_HY
Error in eval(expr, envir, enclos): objet 'tab_stat_rev_RasPH3_HY' introuvable
#Samplesize
=
Sample_size%>%
Tab_Ras_PH3_Revgroup_by(Male_Line,Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Male_Line, Diet): objet 'Tab_Ras_PH3_Rev' introuvable
### Plot
$Male_Line = factor(Tab_Ras_PH3_Rev$Male_Line, labels = c(expression(italic(paste("Control"))), expression(italic(paste("Ra",s^{V12},sep=""))), expression(italic(paste("Tor-DER"))))) Tab_Ras_PH3_Rev
Error in factor(Tab_Ras_PH3_Rev$Male_Line, labels = c(expression(italic(paste("Control"))), : objet 'Tab_Ras_PH3_Rev' introuvable
$Male_Line = factor(Sample_size$Male_Line, labels = c(expression(italic(paste("Control"))), expression(italic(paste("Ra",s^{V12},sep=""))), expression(italic(paste("Tor-DER"))))) Sample_size
Error in factor(Sample_size$Male_Line, labels = c(expression(italic(paste("Control"))), : objet 'Sample_size' introuvable
$Male_Line = factor(tab_stat_rev_RasPH3$Male_Line, labels = c(expression(italic(paste("Control"))), expression(italic(paste("Ra",s^{V12},sep=""))), expression(italic(paste("Tor-DER"))))) tab_stat_rev_RasPH3
Error in factor(tab_stat_rev_RasPH3$Male_Line, labels = c(expression(italic(paste("Control"))), : objet 'tab_stat_rev_RasPH3' introuvable
$Male_Line = factor(tab_stat_rev_RasPH3_HS$Male_Line, labels = c(expression(italic(paste("Ra",s^{V12},sep=""))), expression(italic(paste("Tor-DER"))))) tab_stat_rev_RasPH3_HS
Error in factor(tab_stat_rev_RasPH3_HS$Male_Line, labels = c(expression(italic(paste("Ra", : objet 'tab_stat_rev_RasPH3_HS' introuvable
$Male_Line = factor(tab_stat_rev_RasPH3_HY$Male_Line, labels = c(expression(italic(paste("Ra",s^{V12},sep=""))), expression(italic(paste("Tor-DER"))))) tab_stat_rev_RasPH3_HY
Error in factor(tab_stat_rev_RasPH3_HY$Male_Line, labels = c(expression(italic(paste("Ra", : objet 'tab_stat_rev_RasPH3_HY' introuvable
#Annotation in the plot
<-data.frame(Male_Line = "Control", anot = "Vs Ctrl HS")
ann_textHS $Male_Line = factor(ann_textHS$Male_Line, labels = c(expression(italic(paste("Control")))))
ann_textHS
<-data.frame(Male_Line = "Control", anot = "Vs Ctrl HY")
ann_textHY $Male_Line = factor(ann_textHY$Male_Line, labels = c(expression(italic(paste("Control")))))
ann_textHY
<-data.frame(Male_Line = "Ras85DV12", anot = "HS vs HY")
ann_text $Male_Line = factor(ann_text$Male_Line, labels = c(expression(italic(paste("Ra",s^{V12},sep="")))))
ann_text
#Plot
= c("HS","HY")
Limits
=
Plot_Fig5Dggplot(Tab_Ras_PH3_Rev, aes(x = Diet, y = PH3_positive_cell))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 3) +
facet_grid(. ~ Male_Line,labeller=label_parsed)+
geom_text(data = Sample_size, mapping = aes(x = Diet, y = -10, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(data = tab_stat_rev_RasPH3, aes(xmin = 1, xmax = 2, annotations = formatC(paste("p=",Pvalue), digits = 2), y_position = 105), textsize = 2.5, vjust = -0.2, manual = TRUE)+
scale_fill_manual(limits=c("HS","HY"),
values=c("#FFB4B4","#C3E6FC"))+
scale_x_discrete("",
limits=Limits,
labels=c("HS","HY"))+
scale_y_continuous(expression(paste("pH3" ^ "+", " cells")),
limits=c(-15,175),
breaks=seq(0,110,by=20))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black", margin = margin(t = 0, r = 0, b = 0, l = 0) ),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text = element_text(size =Smallfont-2, colour = "black",face="italic", margin = margin(t = 2, r = 1, b = 2, l = 1)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(Tab_Ras_PH3_Rev, aes(x = Diet, y = PH3_positive_cell)): objet 'Tab_Ras_PH3_Rev' introuvable
Plot_Fig5D
Error in eval(expr, envir, enclos): objet 'Plot_Fig5D' introuvable
Enterocyte specific over expression (MyoTS) of UAS-upd3-OE and UAS-spi-SEC elicit increased proliferation, strongly only on HY diet, and weakly on HS with UAS-upd3-OE. P-values on top of the chart refer to comparisons with the control, p-values at the bottom refer to comparison between HS and HY for each sample. Flies were 9 days old when dissected. Complete statistical annotation on image can be fund in the manuscript’s figures.
=
tab_Myo_PH3_Rev "5E"]]%>%
d[[mutate_at(vars(ends_with(".L")),~./1000)%>%
mutate_at(vars(!starts_with("Total")),as.factor)%>%
::rename(PH3_positive_cell=Total.PH3,
dplyrDiet=Treatment,
Male_Line=Male.Line)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
###Stats HS vs HY
##Control
= subset(tab_Myo_PH3_Rev, Male_Line%in%c("Control")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_Myo_PH3_Rev' introuvable
= fitme(log(PH3_positive_cell+1) ~ Diet + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Diet + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("Control HS vs HY")),
tab_stat
Rep = nlevels(tab_Myo_PH3_Rev$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_Myo_PH3_Rev' introuvable
=tab_stat tab_stat_Control
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Male_Line = "Control" tab_stat_Control
Error in tab_stat_Control$Male_Line = "Control": objet 'tab_stat_Control' introuvable
##spi-sec
= subset(tab_Myo_PH3_Rev , Male_Line%in%c("spi-SEC")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_Myo_PH3_Rev' introuvable
= fitme(log(PH3_positive_cell+1) ~ Diet + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Diet + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("spi-SEC HS vs HY")),
tab_stat
Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_spi_sec
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Male_Line = "spi-SEC" tab_stat_spi_sec
Error in tab_stat_spi_sec$Male_Line = "spi-SEC": objet 'tab_stat_spi_sec' introuvable
##upd3-OE
= subset(tab_Myo_PH3_Rev , Male_Line%in%c("upd3-OE")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_Myo_PH3_Rev' introuvable
= fitme(log(PH3_positive_cell+1) ~ Diet + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Diet + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("upd3-OE HS vs HY")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_upd3_OE
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Male_Line = "upd3-OE" tab_stat_upd3_OE
Error in tab_stat_upd3_OE$Male_Line = "upd3-OE": objet 'tab_stat_upd3_OE' introuvable
=rbind(tab_stat_Control,tab_stat_spi_sec, tab_stat_upd3_OE) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_Control' introuvable
$padj = as.numeric(format(p.adjust(tab_stat$Pvalue, method = "BH"),digits=2,scientific =F)) tab_stat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'format' : objet 'tab_stat' introuvable
$sig = ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*",
tab_statifelse(tab_stat$padj < 0.01 & tab_stat$padj > 0.001, "**",
ifelse(tab_stat$padj < 0.001, "***", "")))
Error in ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*", ifelse(tab_stat$padj < : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value", "Genotype Male_line" ,"p-value adjusted","Signif."),row.names = FALSE) %>%
add_header_above(c("log(PH3_positive_cell+1) ~ Diet + (1 | Repeat)" = 10))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
=tab_stat tab_stat_rev_MyoPH3
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
###Stats HS vs control
= subset(tab_Myo_PH3_Rev , Diet%in%c("HS")) tmpd
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_Myo_PH3_Rev' introuvable
##spi-sec
= subset(tmpd , Male_Line%in%c("Control", "spi-SEC")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tmpd' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male_Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male_Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("Control vs spi-SEC (HS)")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_HS_spi_sec
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Male_Line = "spi-SEC" tab_stat_HS_spi_sec
Error in tab_stat_HS_spi_sec$Male_Line = "spi-SEC": objet 'tab_stat_HS_spi_sec' introuvable
##upd3-OE
= subset(tmpd , Male_Line%in%c("Control", "upd3-OE")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tmpd' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male_Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male_Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("Control vs upd3-OE (HS)")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_HS_upd3_OE
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Male_Line = "upd3-OE" tab_stat_HS_upd3_OE
Error in tab_stat_HS_upd3_OE$Male_Line = "upd3-OE": objet 'tab_stat_HS_upd3_OE' introuvable
#Table
=rbind(tab_stat_HS_spi_sec, tab_stat_HS_upd3_OE) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_HS_spi_sec' introuvable
$padj = as.numeric(format(p.adjust(tab_stat$Pvalue, method = "BH"),digits=2,scientific =F)) tab_stat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'format' : objet 'tab_stat' introuvable
$sig = ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*",
tab_statifelse(tab_stat$padj < 0.01 & tab_stat$padj > 0.001, "**",
ifelse(tab_stat$padj < 0.001, "***", "")))
Error in ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*", ifelse(tab_stat$padj < : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Genotype Male_Line" ,"p-value adjusted","Signif."),row.names = FALSE) %>%
add_header_above(c("log(PH3_positive_cell+1) ~ Genotype + (1 | Repeat)" = 10))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
=tab_stat tab_stat_rev_MyoPH3_HS
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
###Stats HY vs control
= subset(tab_Myo_PH3_Rev , Diet%in%c("HY")) tmpd
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_Myo_PH3_Rev' introuvable
##spi-sec
= subset(tmpd , Male_Line%in%c("Control", "spi-SEC")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tmpd' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male_Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male_Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("Control vs spi-SEC (HY)")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_HY_spi_sec
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Male_Line = "spi-SEC" tab_stat_HY_spi_sec
Error in tab_stat_HY_spi_sec$Male_Line = "spi-SEC": objet 'tab_stat_HY_spi_sec' introuvable
##upd3-OE
= subset(tmpd , Male_Line%in%c("Control", "upd3-OE")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tmpd' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male_Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male_Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("Control vs upd3-OE (HY)")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_HY_upd3_OE
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Male_Line = "upd3-OE" tab_stat_HY_upd3_OE
Error in tab_stat_HY_upd3_OE$Male_Line = "upd3-OE": objet 'tab_stat_HY_upd3_OE' introuvable
#Table
=rbind(tab_stat_HY_spi_sec, tab_stat_HY_upd3_OE) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_HY_spi_sec' introuvable
$padj = as.numeric(format(p.adjust(tab_stat$Pvalue, method = "BH"),digits=2,scientific =F)) tab_stat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'format' : objet 'tab_stat' introuvable
$sig = ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*",
tab_statifelse(tab_stat$padj < 0.01 & tab_stat$padj > 0.001, "**",
ifelse(tab_stat$padj < 0.001, "***", "")))
Error in ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*", ifelse(tab_stat$padj < : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value", "Genotype Male_Line" ,"p-value adjusted","Signif."),row.names = FALSE) %>%
add_header_above(c("log(PH3_positive_cell+1) ~ Genotype + (1 | Repeat)" = 10))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
=tab_stat tab_stat_rev_MyoPH3_HY
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
=
Sample_size%>%
tab_Myo_PH3_Revgroup_by(Male_Line,Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Male_Line, Diet): objet 'tab_Myo_PH3_Rev' introuvable
#Annotation in the plot
<-data.frame(Male_Line = "Control", anot = "Vs Ctrl HS")
ann_textHS
<-data.frame(Male_Line = "Control", anot = "Vs Ctrl HY")
ann_textHY
<-data.frame(Male_Line = "spi-SEC", anot = "HS vs HY")
ann_text
### Plot
= c("HS","HY")
Limits
=
Plot_Fig5Eggplot(tab_Myo_PH3_Rev, aes(x = Diet, y = PH3_positive_cell))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 3) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = -10, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(data = tab_stat_rev_MyoPH3, aes(xmin = 1, xmax = 2, annotations = formatC(paste("p=",Pvalue), digits = 2), y_position = 135), textsize = 2.5, vjust = -0.2, manual = TRUE)+
facet_grid(. ~ Male_Line)+
scale_fill_manual(limits=c("HS","HY"),
values=c("#FFB4B4","#C3E6FC"))+
scale_x_discrete("",
limits=Limits,
labels=c("HS","HY"))+
scale_y_continuous(expression(paste("pH3" ^ "+", " cells")),
limits=c(-15,225),
breaks=seq(0,130,by=20))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black", margin = margin(t = 0, r = 0, b = 0, l = 0) ),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = xSmallfont, colour = "black", angle=0, face = "italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = xSmallfont, colour = "black", angle=0, face = "italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_Myo_PH3_Rev, aes(x = Diet, y = PH3_positive_cell)): objet 'tab_Myo_PH3_Rev' introuvable
Plot_Fig5E
Error in eval(expr, envir, enclos): objet 'Plot_Fig5E' introuvable
General translation is lower on HS than HY, shown by puromycin incorporation assay. Images show lower incorporation on HS (F, F’, top row) than HY (G, G’, bottom row) in region 4 of the midgut.Complete graphical annotation can be found in manuscript figures
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5F.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5F
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5F)
Error in grid.draw(gob_imageFig5F): objet 'gob_imageFig5F' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5F'.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5F2
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5F2)
Error in grid.draw(gob_imageFig5F2): objet 'gob_imageFig5F2' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5G.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5G
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5G)
Error in grid.draw(gob_imageFig5G): objet 'gob_imageFig5G' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5G'.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5G2
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5G2)
Error in grid.draw(gob_imageFig5G2): objet 'gob_imageFig5G2' introuvable
Quantification of mean pixel intensity of puromycin stain.
=
Length_Puromycin "5H"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(Puromycin_int=Mean) dplyr
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
Length_Puromycingroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'Length_Puromycin' introuvable
###Stats
= fitme(log(Puromycin_int) ~ Diet + (1 | Repeat),data = Length_Puromycin) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Length_Puromycin' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Puromycin_int) ~ Diet + (1 / Repeat),data = Length_Puromycin)
Error in is.data.frame(data): objet 'Length_Puromycin' introuvable
= fitme(log(Puromycin_int) ~ 1 + (1 | Repeat),data = Length_Puromycin) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Length_Puromycin' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS vs HY")),
tab_stat Rep = nlevels(Length_Puromycin$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Length_Puromycin' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Puromycin intensity) ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
### Plot
=
Plot_Fig5Hggplot(Length_Puromycin, aes(x = Diet, y = Puromycin_int))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 1) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 1, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(annotation = formatC(paste("p=",tab_stat$Pvalue), digits = 2), textsize = 3, y_position = 47, xmin = 1, xmax = 2, tip_length = c(0.02, 0.02), vjust = -0.2)+
scale_fill_manual(limits=c("HS","HY"),
values=c("#FFB4B4","#C3E6FC"))+
scale_x_discrete("",
limits=c("HS","HY"),
labels=c("HS","HY"))+
scale_y_continuous("Mean pixel intensity
puromycin (a.u.)",
limits=c(0,50),
breaks=seq(0,40,by=10))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text = element_text(size =Smallfont-2, colour = "black",face="italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(Length_Puromycin, aes(x = Diet, y = Puromycin_int)): objet 'Length_Puromycin' introuvable
Plot_Fig5H
Error in eval(expr, envir, enclos): objet 'Plot_Fig5H' introuvable
p-eIF2α stain is elevated on HS (I, I’, top row) compared to HY (J, J’, bottom row). Complete graphical annotation can be found in manuscript figures
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5I.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5I
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5I)
Error in grid.draw(gob_imageFig5I): objet 'gob_imageFig5I' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5I'.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5I2
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5I2)
Error in grid.draw(gob_imageFig5I2): objet 'gob_imageFig5I2' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5J.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5J
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5J)
Error in grid.draw(gob_imageFig5J): objet 'gob_imageFig5J' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5J'.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5J2
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5J2)
Error in grid.draw(gob_imageFig5J2): objet 'gob_imageFig5J2' introuvable
Quantification of mean pixel intensity of p-eIF2α stain.
=
Length_EIF2 "5K"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(EIF2_int=Mean) dplyr
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
Length_EIF2group_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'Length_EIF2' introuvable
###Stats
= fitme(log(EIF2_int) ~ Diet + (1 | Repeat),data = Length_EIF2) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Length_EIF2' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(EIF2_int) ~ Diet + (1 / Repeat),data = Length_EIF2)
Error in is.data.frame(data): objet 'Length_EIF2' introuvable
= fitme(log(EIF2_int) ~ 1 + (1 | Repeat),data = Length_EIF2) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'Length_EIF2' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS vs HY")),
tab_stat Rep = nlevels(Length_EIF2$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'Length_EIF2' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(EIF2 intensity) ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
### Plot
=
Plot_Fig5Kggplot(Length_EIF2, aes(x = Diet, y = EIF2_int))+
geom_boxplot(aes(fill = Diet), colour = "black", size = 0.2,outlier.shape = NA) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 3) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 3, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(annotation = formatC(paste("p=",tab_stat$Pvalue), digits = 2), textsize = 3, y_position = 135, xmin = 1, xmax = 2, tip_length = c(0.02, 0.02), vjust = -0.2)+
scale_fill_manual(limits=c("HS","HY"),
values=c("#FFB4B4","#C3E6FC"))+
scale_x_discrete("",
limits=c("HS","HY"),
labels=c("HS","HY"))+
scale_y_continuous(expression(paste("Mean pixel intensity p-eIF2",alpha," (a.u.)",sep="")),
limits=c(0,140),
breaks=seq(0,125,by=25))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text = element_text(size =Smallfont-2, colour = "black",face="italic"),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(Length_EIF2, aes(x = Diet, y = EIF2_int)): objet 'Length_EIF2' introuvable
Plot_Fig5K
Error in eval(expr, envir, enclos): objet 'Plot_Fig5K' introuvable
Re-enabling translation can restore mitosis in midguts shrinking after being shifted from HY to HS diet for 7 days. Blocking translational inhibition with ActTS>Gcn2-IR or ActTS>LK6-IR is sufficient to increase pH3+ cells in midguts of flies on HS diet. However, ActTS>PEK-IR and ActTS>AMPKα-IR had no effect on the number of pH3+ cells. Statistical comparisons are vs control. Full statistical annotation on chart in pubblication
=
tab_PH3_Translation "5L"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
::rename(PH3_positive_cell=Total.PH3,
dplyrDay_of_treatment=Day)%>%
mutate(Male.Line=fct_relevel(Male.Line,c("Control","Ampk-IR","PEK-IR", "Gcn2-IR", "Lk6-IR")))
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_PH3_Translationgroup_by(Male.Line)%>%
summarise(Sample_size=n())
Error in group_by(., Male.Line): objet 'tab_PH3_Translation' introuvable
###Stats
#Gcn2-IR
= subset(tab_PH3_Translation,!is.na(PH3_positive_cell) & Male.Line%in%c("Control","Gcn2-IR")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_Translation' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male.Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male.Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Male.Line = as.character(paste("Gcn2-IR")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_GCN
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#PEK-IR
= subset(tab_PH3_Translation,!is.na(PH3_positive_cell) & Male.Line%in%c("Control","PEK-IR")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_Translation' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male.Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male.Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Male.Line = as.character(paste("PEK-IR")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=1,scientific=F)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_PEK
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Lk6-IR
= subset(tab_PH3_Translation,!is.na(PH3_positive_cell) & Male.Line%in%c("Control","Lk6-IR")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_Translation' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male.Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male.Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Male.Line = as.character(paste("Lk6-IR")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=5)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_Lk6
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Ampk-IR
= subset(tab_PH3_Translation,!is.na(PH3_positive_cell) & Male.Line%in%c("Control","Ampk-IR")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_Translation' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male.Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male.Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Male.Line = as.character(paste("Ampk-IR")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2,scientific=F)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_Ampk
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
=rbind(tab_stat_PEK,tab_stat_Ampk,tab_stat_Lk6,tab_stat_GCN) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_PEK' introuvable
$padj = as.numeric(format(p.adjust(tab_stat$Pvalue, method = "BH"),digits=2,scientific =T)) tab_stat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'format' : objet 'tab_stat' introuvable
$sig = ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*",
tab_statifelse(tab_stat$padj < 0.01 & tab_stat$padj > 0.001, "**",
ifelse(tab_stat$padj < 0.001, "***", "")))
Error in ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*", ifelse(tab_stat$padj < : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Difference in Diet", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","p-value adjusted","Signif."),row.names = FALSE) %>%
add_header_above(c("log(PH3_positive_cell+1) ~ Genotype + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Difference in Diet", "Replicates", "Chi2", : objet 'tab_stat' introuvable
= aggregate(data=tab_PH3_Translation,PH3_positive_cell ~ Male.Line, max) letter_position
Error in eval(m$data, parent.frame()): objet 'tab_PH3_Translation' introuvable
=left_join(tab_stat,letter_position) tab_stat
Error in left_join(tab_stat, letter_position): objet 'tab_stat' introuvable
= tab_stat tab_stat5L
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
### Plot
$Female.Line = factor(tab_PH3_Translation$Female.Line, labels = c(expression(italic(paste("Ac",t^{TS},">",sep=""))))) tab_PH3_Translation
Error in factor(tab_PH3_Translation$Female.Line, labels = c(expression(italic(paste("Ac", : objet 'tab_PH3_Translation' introuvable
=max(tab_PH3_Translation$PH3_positive_cell, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_PH3_Translation' introuvable
=
Plot_Fig5Lggplot(tab_PH3_Translation, aes(x = Male.Line, y = PH3_positive_cell))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/40) +
geom_text(data = Sample_size, mapping = aes(x = Male.Line, y = -3, label = paste("(",Sample_size,")",sep="")),size=3)+
facet_grid(.~Female.Line, labeller = label_parsed)+
scale_fill_manual(values="#FFB4B4")+
scale_x_discrete("",
limits=c("Control","Ampk-IR","PEK-IR","Gcn2-IR","Lk6-IR"),
labels=c(expression(italic("Control"), italic(paste("AMPK", alpha, "-IR")), italic("PEK-IR"),italic("Gcn2-IR"),italic("Lk6-IR"))))+
scale_y_continuous(expression(paste("pH3" ^ "+", " cells")),
limits=c(-3,64),
breaks=seq(0,62,by=20))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1, face = "italic"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_PH3_Translation, aes(x = Male.Line, y = PH3_positive_cell)): objet 'tab_PH3_Translation' introuvable
Plot_Fig5L
Error in eval(expr, envir, enclos): objet 'Plot_Fig5L' introuvable
Despite increased mitotic activity following repression of translational inhibition in ActTS>Gcn2-IR or ActTS>LK6-IR, midgut size was still reduced on flies kept on HS diet. The statistical comparison is comparing interaction between diet and fly lines. Full statistical annotation on chart in pubblication
=
tab_length_Translation "5M"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
mutate(Total_Length_mm=Total.L/1000)%>%
::rename(Day_of_treatment=Day,
dplyrFemale_Line=Female.Line,
Male_Line=Male.Line)%>%
as.data.frame()%>%
mutate(Male_Line=fct_relevel(Male_Line,c("Control","Gcn2-IR","Lk6-IR")))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_length_Translationgroup_by(Diet,Male_Line)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Male_Line): objet 'tab_length_Translation' introuvable
###Stats
#Gcn2-IR
= subset(tab_length_Translation,!is.na(Total_Length_mm) & Male_Line%in%c("Control","Gcn2-IR")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_length_Translation' introuvable
= fitme(log(Total_Length_mm) ~ Male_Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Male_Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Male_Line = as.character(paste("Gcn2-IR")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_GCN
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#lk6-IR
= subset(tab_length_Translation,!is.na(Total_Length_mm) & Male_Line%in%c("Control","Lk6-IR")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_length_Translation' introuvable
= fitme(log(Total_Length_mm) ~ Male_Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Male_Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Male_Line = as.character(paste("Lk6-IR")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_Lk6
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
=rbind(tab_stat_Lk6,tab_stat_GCN) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_Lk6' introuvable
$padj = format(p.adjust(tab_stat$Pvalue, method = "BH"),digits=2,scientific =F) tab_stat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'format' : objet 'tab_stat' introuvable
$sig = ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*",
tab_statifelse(tab_stat$padj < 0.01 & tab_stat$padj > 0.001, "**",
ifelse(tab_stat$padj < 0.001, "***", "")))
Error in ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*", ifelse(tab_stat$padj < : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Difference in Diet", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","p-value adjusted","Signif."),row.names = FALSE) %>%
add_header_above(c("log(Total_Length_mm) ~ Genotype + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Difference in Diet", "Replicates", "Chi2", : objet 'tab_stat' introuvable
= aggregate(data=tab_length_Translation,Total_Length_mm ~ Male_Line, max) letter_position
Error in eval(m$data, parent.frame()): objet 'tab_length_Translation' introuvable
=left_join(tab_stat,letter_position) tab_stat
Error in left_join(tab_stat, letter_position): objet 'tab_stat' introuvable
= tab_stat tab_stat5M
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
### Plot
$Female_Line = factor(tab_length_Translation$Female_Line, labels = c(expression(italic(paste("Ac",t^{TS},">",sep=""))))) tab_length_Translation
Error in factor(tab_length_Translation$Female_Line, labels = c(expression(italic(paste("Ac", : objet 'tab_length_Translation' introuvable
=max(tab_length_Translation$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_length_Translation' introuvable
=
Plot_Fig5Mggplot(tab_length_Translation, aes(x = Male_Line, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/50) +
geom_text(data = Sample_size, mapping = aes(x = Male_Line, y = 2.6, label = paste("(",Sample_size,")",sep="")),size=3)+
facet_grid(.~ Female_Line,labeller=label_parsed )+
scale_fill_manual(values=c("#FFB4B4"))+
scale_x_discrete("",
limits=c("Control","Gcn2-IR", "Lk6-IR"),
labels=c("Control","Gcn2-IR", "Lk6-IR"))+
scale_y_continuous("Midgut length (mm)",
limits=c(2.5,6.1),
breaks=seq(3,6,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1, face = "italic"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_length_Translation, aes(x = Male_Line, y = Total_Length_mm)): objet 'tab_length_Translation' introuvable
Plot_Fig5M
Error in eval(expr, envir, enclos): objet 'Plot_Fig5M' introuvable
##Export Figure 5
Survival assay shows lower survival on HS vs HY. Additional information on the statistics can be found in R markdown. Triangles represent the day when survival was recorded.
=
tab_survival subset(d[["5 - S1A"]],Treatment%in%c("HS","HY"))%>%
mutate(TimeToDeath=as.numeric(TimeToDeath),
Censor=as.numeric(Censor),
Sex="Male")%>%
mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction '%in%' : objet 'Treatment' introuvable
# analysis
= coxme(Surv(TimeToDeath,Censor) ~ Treatment + (1|Repeat) , data= tab_survival) model_Surv
Error in is.data.frame(data): objet 'tab_survival' introuvable
= coxme(Surv(TimeToDeath,Censor) ~ 1 + (1|Repeat) , data= tab_survival) model_Surv1
Error in is.data.frame(data): objet 'tab_survival' introuvable
= anova(model_Surv1,model_Surv) test
Error in anova(model_Surv1, model_Surv): objet 'model_Surv1' introuvable
2,4] = pchisq(test$Chisq[2],df=1,lower.tail = F) test[
Error in test$Chisq: objet de type 'closure' non indiçable
= data.frame(Variable=c("Full model","(-) Diet"),
tab_test logLik=as.numeric(test[,1]),
Chisq=as.numeric(test[,2]),
df=as.numeric(test[,3]),
Pvalue=as.numeric(test[,4]))
Error in test[, 1]: objet de type 'closure' non indiçable
%>%
tab_testkable(col.names = c("Variable","logLik" ,"Chi2","df" ,"p-value"),row.names=FALSE) %>%
add_header_above(c("coxme(Surv(Time To Death,Censor) ~ Treatment + (1|Repeat))" = 5)) %>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Variable", "logLik", "Chi2", "df", "p-value"), : objet 'tab_test' introuvable
## plot
<- survfit(Surv(TimeToDeath,Censor)~Treatment, data=tab_survival) survdata
Error in is.data.frame(data): objet 'tab_survival' introuvable
<- ggplotprep2(survdata, times=c(seq(0,75,by=3))) toplot
Error in data.frame(condition = rep(names(x$strata), x$strata), time = x$time, : objet 'survdata' introuvable
=c("HS","HY")
Limits="Diet"
Name= survdata$n[1] n1
Error in eval(expr, envir, enclos): objet 'survdata' introuvable
= survdata$n[2] n2
Error in eval(expr, envir, enclos): objet 'survdata' introuvable
= c(paste("HS (n=",n1,")",sep=""),
Labels paste("HY (n=",n2,")",sep=""))
Error in eval(quote(list(...)), env): objet 'n1' introuvable
=
Plot_Fig5S1Aggplot(toplot, aes(x=Time,y=Survival))+
geom_line(aes(linetype=Condition,colour=Condition),size=0.6)+
geom_point(aes(shape=Condition,fill=Condition,colour=Condition),size = 2) +
geom_text(data = subset(tab_test, Variable=="(-) Diet"), mapping = aes(x = 10, y = 0.5, label = paste("p=",format(Pvalue,digits=2))),size=3)+
geom_errorbar(data=subset(toplot,Time==27),aes(ymin=lower, ymax=upper,colour=Condition), width=.1, alpha=01, size=1, show.legend=FALSE)+
scale_colour_manual(Name,
limits=Limits,
values=c("#ff9595", "#abefff"),
labels=Labels)+
scale_linetype_manual(Name,
limits=Limits,
values=c("solid","solid"),
labels=Labels)+
scale_fill_manual(Name,
limits=Limits,
values=c(c("#ff9595", "#abefff")),
labels=Labels)+
scale_shape_manual(Name,
limits=Limits,
values=c(24,25),
labels=Labels)+
scale_x_continuous("Days post-eclosion",
limits=c(0, 75),
breaks=c(seq(0,75,by=10)))+
scale_y_continuous("Proportion of survivors",
limits=c(0, 1),breaks=c(0,0.2,0.4,0.6,0.8,1))+
theme(aspect.ratio = 1,
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = c(0.25,0.2),
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=Smallfont-2),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size =Smallfont, colour = "black",face="italic"),
strip.text.y = element_text(size =Smallfont, colour = "black",face="italic"),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(toplot, aes(x = Time, y = Survival)): objet 'toplot' introuvable
Plot_Fig5S1A
Error in eval(expr, envir, enclos): objet 'Plot_Fig5S1A' introuvable
##Export Figure 5S1
p-eIF2α stain is elevated in all cells of the epithelium on HS (A, A’, first row) diet compared to HY (B,B’, second row) diet, and less strongly in visceral muscle (C-D’, third row HS, fourth row HY). In red anti p-eIF2α stain together with EsgTS>UAS-GFP in green (progenitor cells marker) in A, B, or alone in A’, B’. A to B’ are maximum intensity projection of z-stack. In red anti p-eIF2α stain together with HowTS>UAS-GFP in green (Visceral muscle marker) in C, D, or alone in C’, D’ (Single z-stack). Complete graphical annotation can be found in manuscript figures
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2A.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5S2A
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5S2A)
Error in grid.draw(gob_imageFig5S2A): objet 'gob_imageFig5S2A' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2A'.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5S2A1
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5S2A1)
Error in grid.draw(gob_imageFig5S2A1): objet 'gob_imageFig5S2A1' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2B.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5S2B
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5S2B)
Error in grid.draw(gob_imageFig5S2B): objet 'gob_imageFig5S2B' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2B'.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5S2B1
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5S2B1)
Error in grid.draw(gob_imageFig5S2B1): objet 'gob_imageFig5S2B1' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2C.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5S2C
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5S2C)
Error in grid.draw(gob_imageFig5S2C): objet 'gob_imageFig5S2C' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2C'.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5S2C1
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5S2C1)
Error in grid.draw(gob_imageFig5S2C1): objet 'gob_imageFig5S2C1' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2D.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5S2D
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5S2D)
Error in grid.draw(gob_imageFig5S2D): objet 'gob_imageFig5S2D' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/5 - S2D'.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig5S2D1
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig5S2D1)
Error in grid.draw(gob_imageFig5S2D1): objet 'gob_imageFig5S2D1' introuvable
Blocking translational inhibition with ActTS>Gcn2-IR or ActTS>LK6-IR is sufficient to increase pH3+ cells in midguts of flies shifted from HY to HS diet. However, ActTS>PEK-IR and ActTS>AMPKα-IR had no effect on the number of pH3+ cells. Statistical comparisons are vs control.
=
tab_PH3_Translation "5 - S2E"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
::rename(PH3_positive_cell=Total.PH3,
dplyrDay_of_treatment=Day)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_PH3_Translationgroup_by(Male.Line)%>%
summarise(Sample_size=n())
Error in group_by(., Male.Line): objet 'tab_PH3_Translation' introuvable
###Stats
#Gcn2-IR
= subset(tab_PH3_Translation,!is.na(PH3_positive_cell) & Male.Line%in%c("Control","Gcn2-IR")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_Translation' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male.Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male.Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Male.Line = as.character(paste("Control vs Gcn2-IR")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_GCN
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#PEK-IR
= subset(tab_PH3_Translation,!is.na(PH3_positive_cell) & Male.Line%in%c("Control","PEK-IR")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_Translation' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male.Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male.Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Male.Line = as.character(paste("Control vs PEK-IR")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=1,scientific=F)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_PEK
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Lk6-IR
= subset(tab_PH3_Translation,!is.na(PH3_positive_cell) & Male.Line%in%c("Control","Lk6-IR")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_Translation' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male.Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male.Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Male.Line = as.character(paste("Control vs Lk6-IR")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_Lk6
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Ampk-IR
= subset(tab_PH3_Translation,!is.na(PH3_positive_cell) & Male.Line%in%c("Control","Ampk-IR")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_Translation' introuvable
$Male.Line = factor(tmp$Male.Line,levels = c("Control","Ampk-IR")) tmp
Error in factor(tmp$Male.Line, levels = c("Control", "Ampk-IR")): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male.Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male.Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Male.Line = as.character(paste("Control vs Ampk-IR")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=1,scientific=F)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_Ampk
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
=rbind(tab_stat_PEK,tab_stat_Ampk,tab_stat_Lk6,tab_stat_GCN) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_PEK' introuvable
= aggregate(data=tab_PH3_Translation,PH3_positive_cell ~ Male.Line, max) letter_position
Error in eval(m$data, parent.frame()): objet 'tab_PH3_Translation' introuvable
=left_join(tab_stat,letter_position) tab_stat
Error in left_join(tab_stat, letter_position): objet 'tab_stat' introuvable
$padj = as.numeric(format(p.adjust(tab_stat$Pvalue, method = "BH"),digits=2,scientific =T)) tab_stat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'format' : objet 'tab_stat' introuvable
$sig = ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*",
tab_statifelse(tab_stat$padj < 0.01 & tab_stat$padj > 0.001, "**",
ifelse(tab_stat$padj < 0.001, "***", "")))
Error in ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*", ifelse(tab_stat$padj < : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","letter position","p-value adjusted","Signif."),row.names = FALSE) %>%
add_header_above(c("log(PH3_positive_cell+1) ~ Genotype + (1 | Repeat)" = 10))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
= tab_stat tab_stat5S2E
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
### Plot
$Female.Line = factor(tab_PH3_Translation$Female.Line, labels = c(expression(italic(paste("Ac",t^{TS},">",sep=""))))) tab_PH3_Translation
Error in factor(tab_PH3_Translation$Female.Line, labels = c(expression(italic(paste("Ac", : objet 'tab_PH3_Translation' introuvable
=max(tab_PH3_Translation$PH3_positive_cell, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_PH3_Translation' introuvable
=
Plot_Fig5S2Eggplot(tab_PH3_Translation, aes(x = Male.Line, y = PH3_positive_cell))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/40) +
geom_text(data = Sample_size, mapping = aes(x = Male.Line, y = -3, label = paste("(",Sample_size,")",sep="")),size=3)+
facet_grid(.~Female.Line, labeller = label_parsed)+
scale_fill_manual(values="#FFE5E5")+
scale_x_discrete("",
limits=c("Control", "Ampk-IR", "PEK-IR", "Gcn2-IR","Lk6-IR"),
labels=c(expression(italic("Control"), italic(paste("AMPK", alpha, "-IR")), italic("PEK-IR"), italic("Gcn2-IR"), italic("Lk6-IR"))))+
scale_y_continuous(expression(paste("pH3" ^ "+", " cells")),
limits=c(-3,64),
breaks=seq(0,62,by=20))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black", face = "italic"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_PH3_Translation, aes(x = Male.Line, y = PH3_positive_cell)): objet 'tab_PH3_Translation' introuvable
Plot_Fig5S2E
Error in eval(expr, envir, enclos): objet 'Plot_Fig5S2E' introuvable
Despite increased mitotic activity following repression of translational inhibition in ActTS>Gcn2-IR or ActTS>LK6-IR, midgut size was still shrinking on flies shifted from HY to HS diet for 7 days. The statistical comparison is comparing interaction between diet and fly lines. Complete statistical annotation on image can be found in the manuscript’s figure.
=
tab_length_Translation "5 - S2F"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
mutate(Total_Length_mm=Total.L/1000)%>%
::rename(Day_of_treatment=Day,
dplyrFemale_Line=Female.Line,
Male_Line=Male.Line)%>%
as.data.frame()%>%
mutate(Male_Line=fct_relevel(Male_Line,c("Control","Gcn2-IR","Lk6-IR")))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_length_Translationgroup_by(Diet,Male_Line)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Male_Line): objet 'tab_length_Translation' introuvable
###Stats
#Gcn2-IR
= subset(tab_length_Translation, Male_Line%in%c("Control","Gcn2-IR")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_length_Translation' introuvable
= fitme(log(Total_Length_mm) ~ Diet * Male_Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + Male_Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ Diet + Male_Line + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Male_Line = as.character(paste("Control interaction vs Gcn2-IR interaction")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=1,scientific=F)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_Gcn2
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Lk6-IR
= subset(tab_length_Translation, Male_Line%in%c("Control","Lk6-IR")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_length_Translation' introuvable
= fitme(log(Total_Length_mm) ~ Diet * Male_Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + Male_Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(Total_Length_mm) ~ Diet + Male_Line + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Male_Line = as.character(paste("Control interaction vs Lk6-IR interaction")),
tab_stat Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=1,scientific=F)))
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_Lk6
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
=rbind(tab_stat_Lk6,tab_stat_Gcn2) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_Lk6' introuvable
$padj = as.numeric(format(p.adjust(tab_stat$Pvalue, method = "BH"),digits=2,scientific =F)) tab_stat
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'format' : objet 'tab_stat' introuvable
$sig = ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*",
tab_statifelse(tab_stat$padj < 0.01 & tab_stat$padj > 0.001, "**",
ifelse(tab_stat$padj < 0.001, "***", "")))
Error in ifelse(tab_stat$padj < 0.05 & tab_stat$padj > 0.01, "*", ifelse(tab_stat$padj < : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Copparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","p-value adjusted","Signif."),row.names = FALSE) %>%
add_header_above(c("log(Total_Length_mm) ~ Diet + Genotype + Diet : Genotype + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Copparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
= tab_stat tab_stat5S2F
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
### Plot
$Female_Line = factor(tab_length_Translation$Female_Line, labels = c(expression(italic(paste("Ac",t^{TS},">",sep=""))))) tab_length_Translation
Error in factor(tab_length_Translation$Female_Line, labels = c(expression(italic(paste("Ac", : objet 'tab_length_Translation' introuvable
=
Plot_Fig5S2Fggplot(tab_length_Translation, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 0.15) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 2.5, label = paste("(",Sample_size,")",sep="")),size=3)+
facet_grid(.~ Male_Line)+
scale_fill_manual(values=c("#C3E6FC", "#FFE5E5"))+
scale_x_discrete("",
limits=c("HY D0","HYtoHS D7"),
labels=c("HY","HY to HS"))+
scale_y_continuous("Midgut length (mm)",
limits=c(2,9),
breaks=seq(2,8,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
stat_summary(fun = mean, colour = "black", geom = "line", aes(group = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0),face = "italic"),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0), face = "italic"),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_length_Translation, aes(x = Diet, y = Total_Length_mm)): objet 'tab_length_Translation' introuvable
Plot_Fig5S2F
Error in eval(expr, envir, enclos): objet 'Plot_Fig5S2F' introuvable
Knockdown of Gcn2 in ECs (MyoTS>Gcn2-IR), but not in progenitor cells (EsgTS>Gcn2-IR), is sufficient to increase pH3+ cells in midguts of flies shifted after 12 days from eclosion on HY to HS diet for additional 7 days. Statistical comparisons are vs respective controls.
=
tab_PH3_Translation1 "5 - S2G"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
::rename(PH3_positive_cell=Total.PH3,
dplyrDay_of_treatment=Day)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_PH3_Translation1group_by(Female.Line, Male.Line)%>%
summarise(Sample_size=n())
Error in group_by(., Female.Line, Male.Line): objet 'tab_PH3_Translation1' introuvable
###Stats
#Esg
= subset(tab_PH3_Translation1,!is.na(PH3_positive_cell) & Female.Line%in%c("Esg")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_Translation1' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male.Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male.Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("Control vs Gcn2-IR EsgTS")),
tab_stat Male.Line = as.character(paste("EsgTS x Gcn2-IR")),
Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)),
Female.Line = "Esg",
Male.line ="Gcn2-IR")
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_esg
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Myo
= subset(tab_PH3_Translation1,!is.na(PH3_positive_cell) & Female.Line%in%c("Myo")) tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_Translation1' introuvable
= fitme(log(PH3_positive_cell+1) ~ Male.Line + (1 | Repeat),data = tmp) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(PH3_positive_cell+1) ~ Male.Line + (1 / Repeat),data = tmp)
Error in is.data.frame(data): objet 'tmp' introuvable
= fitme(log(PH3_positive_cell+1) ~ 1 + (1 | Repeat),data = tmp) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tmp' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("Control vs Gcn2-IR EsgTS")),
tab_stat Male.Line = as.character(paste("MyoTS x Gcn2-IR")),
Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)),
Female.Line = "Myo",
Male.line ="Gcn2-IR")
Error in levels(x): objet 'tmp' introuvable
=tab_stat tab_stat_myo
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
#Table making
=rbind(tab_stat_esg,tab_stat_myo) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_esg' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Variable", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Female.Line","Male.Line","Signif."),row.names = FALSE) %>%
add_header_above(c("log(PH3_positive_cell+1) ~ Genotype + (1 | Repeat)" = 11))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Variable", "Replicates", : objet 'tab_stat' introuvable
= tab_stat tab_stat5S2G
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
### Plot
$Female.Line = factor(tab_PH3_Translation1$Female.Line, labels = c(expression(italic(paste("Es",g^{TS},">",sep=""))), expression(italic(paste("My",o^{TS},">",sep=""))))) tab_PH3_Translation1
Error in factor(tab_PH3_Translation1$Female.Line, labels = c(expression(italic(paste("Es", : objet 'tab_PH3_Translation1' introuvable
$Female.Line = tab_stat$Female.Line = factor(tab_stat$Female.Line, labels = c(expression(italic(paste("Es",g^{TS},">",sep=""))), expression(italic(paste("My",o^{TS},">",sep=""))))) tab_stat
Error in factor(tab_stat$Female.Line, labels = c(expression(italic(paste("Es", : objet 'tab_stat' introuvable
$Female.Line = Sample_size$Female.Line = factor(Sample_size$Female.Line, labels = c(expression(italic(paste("Es",g^{TS},">",sep=""))), expression(italic(paste("My",o^{TS},">",sep=""))))) Sample_size
Error in factor(Sample_size$Female.Line, labels = c(expression(italic(paste("Es", : objet 'Sample_size' introuvable
=max(tab_PH3_Translation1$PH3_positive_cell, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_PH3_Translation1' introuvable
=
Plot_Fig5S2Gggplot(tab_PH3_Translation1, aes(x = Male.Line, y = PH3_positive_cell))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/40) +
geom_text(data = Sample_size, mapping = aes(x = Male.Line, y = -4, label = paste("(",Sample_size,")",sep="")),size=3)+
facet_grid(.~Female.Line, labeller = label_parsed)+
scale_fill_manual(values="#FFE5E5")+
scale_x_discrete("",
limits=c("Control","Gcn2-IR"),
labels=c(expression(italic("Control"),italic("Gcn2-IR"))))+
scale_y_continuous(expression(paste("pH3" ^ "+", " cells")),
limits=c(-5,90),
breaks=seq(0,80,by=20))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black", face = "italic"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_PH3_Translation1, aes(x = Male.Line, y = PH3_positive_cell)): objet 'tab_PH3_Translation1' introuvable
Plot_Fig5S2G
Error in eval(expr, envir, enclos): objet 'Plot_Fig5S2G' introuvable
##Export Figure 5S2
Mitotic index does not correlate with midgut length. Quantification of pH3+ cells across a selected panel of high and low responder DGRP lines shows that midgut length does not correlate with cell proliferation.
= d[["DGRP_wolbachia_DFD"]]
wolb colnames(wolb) = c("dgrp.id", "wolbachia")
Error in `colnames<-`(`*tmp*`, value = c("dgrp.id", "wolbachia")): tentative de modification de 'colnames' sur un objet ayant moins de deux dimensions
$dgrp.id = gsub("line_", "", wolb$dgrp.id)
wolb
= subset(d[["6A - 7A"]]) tab_corr_length_cell_DGRP
Error in subset.default(d[["6A - 7A"]]): l'argument "subset" est manquant, avec aucune valeur par défaut
= merge(tab_corr_length_cell_DGRP, wolb, by.x="DGRP.number", by.y="dgrp.id", all.x=T, all.y=F) tab_corr_length_cell_DGRP
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'merge' : objet 'tab_corr_length_cell_DGRP' introuvable
colnames(tab_corr_length_cell_DGRP) = tolower(colnames(tab_corr_length_cell_DGRP))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'tolower' : erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'colnames' : objet 'tab_corr_length_cell_DGRP' introuvable
colnames(tab_corr_length_cell_DGRP)[3] = "repl"
Error in colnames(tab_corr_length_cell_DGRP)[3] = "repl": objet 'tab_corr_length_cell_DGRP' introuvable
$dgrp.number <- as.factor(tab_corr_length_cell_DGRP$dgrp.number) tab_corr_length_cell_DGRP
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.factor' : objet 'tab_corr_length_cell_DGRP' introuvable
=
tab_corr_length_cell_DGRP%>%
tab_corr_length_cell_DGRP::rename(ral=dgrp.number,
dplyrlen=total.l,
ph3=total.ph3,
ec.area=area)%>%
mutate(ral=paste("Ral",ral,sep="_"))%>%
mutate_if(is.character,as.factor)
Error in dplyr::rename(., ral = dgrp.number, len = total.l, ph3 = total.ph3, : objet 'tab_corr_length_cell_DGRP' introuvable
=
gut_mean%>%
tab_corr_length_cell_DGRP group_by(ral, diet,cross,gutnumber)%>%
summarize(mean_gut_len=mean(len,na.rm=T),
mean_cell_size=mean(ec.area,na.rm=T),
se_cell_size=sd(ec.area)/ sqrt(length(ec.area[!is.na(ec.area)])),
mean_PH3=mean(ph3,na.rm=T)) %>%
mutate(Group=paste(cross,gutnumber,sep="_"))
Error in group_by(., ral, diet, cross, gutnumber): objet 'tab_corr_length_cell_DGRP' introuvable
levels(gut_mean$ral) <- c("Ral 356", "Ral 362", "Ral 370", "Ral 502", "Ral 765", "Ral 853", "Ral 911")
Error in levels(gut_mean$ral) <- c("Ral 356", "Ral 362", "Ral 370", "Ral 502", : objet 'gut_mean' introuvable
$ral <- factor(gut_mean$ral, levels = c("Ral 356", "Ral 502", "Ral 765", "Ral 853", "Ral 911", "Ral 362", "Ral 370")) gut_mean
Error in factor(gut_mean$ral, levels = c("Ral 356", "Ral 502", "Ral 765", : objet 'gut_mean' introuvable
# stat over all
= fitme(log10(I(mean_gut_len/1000)) ~ mean_PH3 + (1 | ral),data = gut_mean) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'gut_mean' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log10(I(mean_gut_len/1000)) ~ mean_PH3 + (1 / ral),data = gut_mean)
Error in is.data.frame(data): objet 'gut_mean' introuvable
= fitme(log10(I(mean_gut_len/1000)) ~ 1 + (1 | ral),data =gut_mean) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'gut_mean' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("PH3 cell")),
tab_stat Number_genotypes = nlevels(gut_mean$ral),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'gut_mean' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Variable", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log10(I(mean_gut_len/1000)) ~ mean_PH3 + (1 | Genotype)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Variable", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
#stat per line
=NULL
Cor_PH3for(i in unique(gut_mean$ral)){
#print(i)
=
cor_PH3_HSwith(subset(gut_mean,ral==i& diet=="HS"),
cor.test(log(mean_gut_len,10),mean_PH3))
=
cor_PH3_HYwith(subset(gut_mean,ral==i& diet=="HY"),
cor.test(log(mean_gut_len,10),mean_PH3))
= data.frame(ral = as.character(i),
Cor_PH3_tmp diet=c("HS","HY"),
Cor = c(format(as.numeric(cor_PH3_HS$estimate), digits = 2),format(as.numeric(cor_PH3_HY$estimate), digits = 2)),
Pvalue = c(format(as.numeric(cor_PH3_HS$p.value), digits = 2),format(as.numeric(cor_PH3_HY$p.value), digits = 2)))
= rbind(Cor_PH3,Cor_PH3_tmp)
Cor_PH3 }
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'unique' : objet 'gut_mean' introuvable
$padj=p.adjust(Cor_PH3$Pvalue,method = "BH")
Cor_PH3$sig= ifelse(Cor_PH3$padj < 0.05 & Cor_PH3$padj > 0.01, "*",
Cor_PH3ifelse(Cor_PH3$padj < 0.01 & Cor_PH3$padj > 0.001, "**",
ifelse(Cor_PH3$padj < 0.001, "***", "ns")))
=subset(gut_mean,diet=="HS") tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'gut_mean' introuvable
= aggregate(data=tmp,mean_gut_len/1000 ~ ral, max) stat_position_HS
Error in eval(m$data, parent.frame()): objet 'tmp' introuvable
$diet="HS" stat_position_HS
Error in stat_position_HS$diet = "HS": objet 'stat_position_HS' introuvable
=subset(gut_mean,diet=="HY") tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'gut_mean' introuvable
= aggregate(data=tmp,mean_gut_len/1000 ~ ral, max) stat_position_HY
Error in eval(m$data, parent.frame()): objet 'tmp' introuvable
$diet="HY" stat_position_HY
Error in stat_position_HY$diet = "HY": objet 'stat_position_HY' introuvable
=rbind(stat_position_HS,stat_position_HY) stat_position
Error in eval(quote(list(...)), env): objet 'stat_position_HS' introuvable
colnames(stat_position)[2]="Stat_position"
Error in colnames(stat_position)[2] = "Stat_position": objet 'stat_position' introuvable
= left_join(Cor_PH3,stat_position) Cor_PH3
Error in UseMethod("left_join"): pas de méthode pour 'left_join' applicable pour un objet de classe "list"
$ral <- factor(gut_mean$ral, levels = c("Ral 356", "Ral 502", "Ral 765", "Ral 853", "Ral 911", "Ral 362", "Ral 370")) gut_mean
Error in factor(gut_mean$ral, levels = c("Ral 356", "Ral 502", "Ral 765", : objet 'gut_mean' introuvable
$ral <- factor(Cor_PH3$ral, levels = c("Ral 356", "Ral 502", "Ral 765", "Ral 853", "Ral 911", "Ral 362", "Ral 370"))
Cor_PH3
=
Sample_size%>%
gut_meangroup_by(diet, ral)%>%
summarise(Sample_size=n())%>%
as.data.frame()%>%
mutate(ral=fct_relevel(ral,"Ral 356", "Ral 502", "Ral 765", "Ral 853", "Ral 911", "Ral 362", "Ral 370"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'gut_mean' introuvable
=
cor_gut_PH3ggplot(gut_mean,aes(x=mean_PH3, y=mean_gut_len/1000,group=ral))+
geom_point(aes(color=diet,fill=diet),shape=21,size=0.9)+
geom_text(data = Sample_size, mapping = aes(x = 35, y = 2.5, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_text(data = Cor_PH3, mapping = aes( x=60,y=7,label = sig),size=3)+
facet_grid(ral~diet)+
scale_y_continuous("Midgut length (mm)")+
scale_x_continuous(expression(paste("pH3" ^ "+", " cells")))+
scale_color_manual("",
limits=c("HS","HY"),
values=palette_diet_2)+
scale_fill_manual("",
limits=c("HS","HY"),
values=palette_diet_2)+
geom_smooth(method="lm",color="black",size=0.5)+
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
axis.title.x = element_text(size=Mediumfont,colour="black"),
axis.title.y = element_text(size=Mediumfont),
axis.line.x = element_line(colour="black"),
axis.line.y = element_line(colour="black"),
axis.ticks.x = element_line(),
axis.ticks.y = element_line(),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
panel.grid = element_blank(),
plot.margin = unit(c(0,0,0,0), "cm"),
legend.direction = "vertical",
legend.box = "vertical",
legend.position = "none",
legend.key.height = unit(0.3, "cm"),
legend.key.width= unit(0.3, "cm"),
strip.text.x = element_text(size =Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size =Smallfont, colour = "black",face="italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(color="black",fill=NA),
strip.placement="outside",
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=Smallfont),
legend.background = element_rect(fill=NA),
panel.background = element_rect(fill="transparent"))+
guides(shape=guide_legend(ncol=1),
fill=guide_legend(ncol=1),
col=guide_legend(ncol=1))
Error in ggplot(gut_mean, aes(x = mean_PH3, y = mean_gut_len/1000, group = ral)): objet 'gut_mean' introuvable
cor_gut_PH3
Error in eval(expr, envir, enclos): objet 'cor_gut_PH3' introuvable
Blocking EGF signaling with UAS-Egfr-IR in progenitor cells (B, right) results in progenitor cells being almost wiped out compared to control (C, left).Complete graphical annotation can be found in manuscript figures
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/6B.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig6B
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig6B)
Error in grid.draw(gob_imageFig6B): objet 'gob_imageFig6B' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/6C.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig6C
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig6C)
Error in grid.draw(gob_imageFig6C): objet 'gob_imageFig6C' introuvable
pH3+ counts for EsgTS>Control vs EsgTS> EGFR-IR
=
tab_PH3_esg "6D"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
::rename(PH3_positive_cell=Total.PH3,
dplyrDay_of_treatment=Day)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_PH3_esggroup_by(Male.Line)%>%
summarise(Sample_size=n())
Error in group_by(., Male.Line): objet 'tab_PH3_esg' introuvable
###Stats
= fitme(PH3_positive_cell ~ Male.Line + (1 | Repeat),data = subset(tab_PH3_esg,!is.na(PH3_positive_cell))) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_esg' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(PH3_positive_cell ~ Male.Line + (1 / Repeat),data = subset(tab_PH3_esg,!is.na(PH3_positive_cell)))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_esg' introuvable
= fitme(PH3_positive_cell ~ 1 + (1 | Repeat),data = subset(tab_PH3_esg,!is.na(PH3_positive_cell))) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_esg' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("Control vs Egfr-IR")),
tab_stat Rep = nlevels(tab_PH3_esg$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_PH3_esg' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("PH3_positive_cell ~ Genotype + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
### Plot
$Female.Line = factor(tab_PH3_esg$Female.Line, labels = c(expression(italic(paste("Es",g^{TS},">",sep=""))))) tab_PH3_esg
Error in factor(tab_PH3_esg$Female.Line, labels = c(expression(italic(paste("Es", : objet 'tab_PH3_esg' introuvable
=
Plot_Fig6Dggplot(tab_PH3_esg, aes(x = Male.Line, y = PH3_positive_cell))+
geom_boxplot(aes(fill = Diet), colour = "black", size = 0.2,outlier.shape = NA) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 0.2) +
geom_text(data = Sample_size, mapping = aes(x = Male.Line, y = -0.8, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(data = tab_stat,aes(xmin = 1, xmax = 2, annotations = formatC(paste("p=",Pvalue), digits = 2), y_position = 8.5), textsize = 3, vjust = -0.2, manual = TRUE, tip_length = c(0.01, 0.01))+
facet_grid(.~Female.Line, labeller = label_parsed)+
scale_fill_manual(values="#E5E5FF")+
scale_x_discrete("",
limits=c("Cs","Egfr-IR"),
labels=c("Control","Egfr-IR"))+
scale_y_continuous(expression(paste("pH3" ^ "+", " cells")),
limits=c(-1,9),
breaks=seq(0,8,by=2))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1, face = "italic"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", face = "italic", margin = margin(t = 1, r = 0, b = 1, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", face = "italic", margin = margin(t = 1, r = 0, b = 1, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_PH3_esg, aes(x = Male.Line, y = PH3_positive_cell)): objet 'tab_PH3_esg' introuvable
Plot_Fig6D
Error in eval(expr, envir, enclos): objet 'Plot_Fig6D' introuvable
EsgTS>UAS-Egfr-IR midguts are still able to reach a similar length to controls.
=
tab_length_esg "6E"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
mutate(Total_Length_mm=Total.L/1000)%>%
::rename(Day_of_treatment=Day,
dplyrFemale_Line=Female.Line,
Male_Line=Male.Line)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_length_esggroup_by(Diet,Male_Line)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Male_Line): objet 'tab_length_esg' introuvable
###Stats
= fitme(log(Total_Length_mm) ~ Diet * Male_Line + (1 | Repeat),data = tab_length_esg) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_length_esg' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + Male_Line + (1 / Repeat),data = tab_length_esg)
Error in is.data.frame(data): objet 'tab_length_esg' introuvable
= fitme(log(Total_Length_mm) ~ Diet + Male_Line + (1 | Repeat),data = tab_length_esg) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_length_esg' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("Control vs Egfr-IR")),
tab_stat Rep = nlevels(tab_length_esg$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_length_esg' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Total_Length_mm) ~ Diet + Genotype + Diet : Genotype + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
=tab_stat tab_stat_6E
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Male_Line="Egfr-IR" tab_stat_6E
Error in tab_stat_6E$Male_Line = "Egfr-IR": objet 'tab_stat_6E' introuvable
### Plot
$Female_Line = factor(tab_length_esg$Female_Line, labels = c(expression(italic(paste("Es",g^{TS},">",sep=""))))) tab_length_esg
Error in factor(tab_length_esg$Female_Line, labels = c(expression(italic(paste("Es", : objet 'tab_length_esg' introuvable
=
Plot_Fig6Eggplot(tab_length_esg, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 0.15) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 2.4, label = paste("(",Sample_size,")",sep="")),size=3)+
stat_summary(fun = mean, geom = "point", size = 2, shape = 18,aes(group=Repeat, colour = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
stat_summary(fun = mean, colour = "black", geom = "line", aes(group = Repeat)) +
scale_color_manual(values = palette_mean) +
facet_grid(.~ Male_Line)+
scale_fill_manual(values=cbbHS_HStoHY)+
scale_x_discrete("",
limits=c("HS D0","HStoHY D7"),
labels=c("HS","HS to HY"))+
scale_y_continuous("Midgut length (mm)",
limits=c(2,9),
breaks=seq(2,8,by=1))+
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", face = "italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", face = "italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_length_esg, aes(x = Diet, y = Total_Length_mm)): objet 'tab_length_esg' introuvable
Plot_Fig6E
Error in eval(expr, envir, enclos): objet 'Plot_Fig6E' introuvable
Insulin signaling with a dominant negative construct in progenitor cells results in less proliferation
=
tab_PH3_InR "6F"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
::rename(PH3_positive_cell=Total.PH3,
dplyrDay_of_treatment=Day)%>%
as.data.frame()%>%
mutate(Male.Line=fct_relevel(Male.Line,c("wdah","InR-DN")))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_PH3_InRgroup_by(Male.Line)%>%
summarise(Sample_size=n())
Error in group_by(., Male.Line): objet 'tab_PH3_InR' introuvable
###Stats
= fitme(PH3_positive_cell ~ Male.Line + (1 | Repeat),data = subset(tab_PH3_InR,!is.na(PH3_positive_cell))) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_InR' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(PH3_positive_cell ~ Male.Line + (1 / Repeat),data = subset(tab_PH3_InR,!is.na(PH3_positive_cell)))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_InR' introuvable
= fitme(PH3_positive_cell ~ 1 + (1 | Repeat),data = subset(tab_PH3_InR,!is.na(PH3_positive_cell))) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_PH3_InR' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("Control vs InR-DN")),
tab_stat Rep = nlevels(tab_PH3_InR$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_PH3_InR' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("PH3_positive_cell ~ Genotype + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
### Plot
$Female.Line = factor(tab_PH3_InR$Female.Line, labels = c(expression(italic(paste("Es",g^{TS},">",sep=""))))) tab_PH3_InR
Error in factor(tab_PH3_InR$Female.Line, labels = c(expression(italic(paste("Es", : objet 'tab_PH3_InR' introuvable
=
Plot_Fig6Fggplot(tab_PH3_InR, aes(x = Male.Line, y = PH3_positive_cell))+
geom_boxplot(aes(fill = Diet), colour = "black", size = 0.2,outlier.shape = NA) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 0.6) +
geom_text(data = Sample_size, mapping = aes(x = Male.Line, y = -1.2, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(data = tab_stat,aes(xmin = 1, xmax = 2, annotations = formatC(paste("p=",Pvalue), digits = 2), y_position = 16), textsize = 3, vjust = -0.2, manual = TRUE, tip_length = c(0.01, 0.01))+
facet_grid(.~Female.Line, labeller = label_parsed)+
scale_fill_manual(values="#E5E5FF")+
scale_x_discrete("",
limits=c("wdah","InR-DN"),
labels=c("Control","InR-DN"))+
scale_y_continuous(expression(paste("pH3" ^ "+", " cells")),
limits=c(-1.4,21),
breaks=seq(0,20,by=4))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black", margin = margin(t = 0, r = -0.15, b = 0, l = 0, unit = "cm")),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1, face= "italic"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", face = "italic", margin = margin(t = 1, r = 0, b = 1, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", face = "italic", margin = margin(t = 1, r = 0, b = 1, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_PH3_InR, aes(x = Male.Line, y = PH3_positive_cell)): objet 'tab_PH3_InR' introuvable
Plot_Fig6F
Error in eval(expr, envir, enclos): objet 'Plot_Fig6F' introuvable
EsgTS>UAS-InR-DN resulting in the same midgut length growth as the control. Statistical comparison for G is for the interaction between diet and genotype.
=
tab_length_InDN subset(d[["6G"]],Diet%in%c("HS D0","HStoHY D7"))%>%
mutate_at(vars(!starts_with("Total")),as.factor)%>%
mutate(Total_Length_mm=Total.L/1000)%>%
::rename(Day_of_treatment=Day,
dplyrFemale_Line=Female.Line,
Male_Line=Male.Line)%>%
as.data.frame()%>%
mutate(Male_Line=fct_relevel(Male_Line,c("Control","InR-DN")))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction '%in%' : objet 'Diet' introuvable
=
Sample_size%>%
tab_length_InDNgroup_by(Diet,Male_Line)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Male_Line): objet 'tab_length_InDN' introuvable
###Stats
= fitme(log(Total_Length_mm) ~ Diet * Male_Line + (1 | PhaseRep),data = tab_length_InDN) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_length_InDN' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + Male_Line + (1 / PhaseRep),data = tab_length_InDN)
Error in is.data.frame(data): objet 'tab_length_InDN' introuvable
= fitme(log(Total_Length_mm) ~ Diet + Male_Line + (1 | PhaseRep),data = tab_length_InDN) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_length_InDN' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("Control vs InR-DN")),
tab_stat Rep = nlevels(tab_PH3_esg$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_PH3_esg' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Total_length_mm) ~ Diet + Genotype + Diet : Genotype + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
$Male_Line="InR-DN" tab_stat
Error in tab_stat$Male_Line = "InR-DN": objet 'tab_stat' introuvable
= tab_stat tab_stat6G
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
### Plot
$Male_Line = factor(tab_length_InDN$Male_Line, labels = c("Control","InR-DN")) tab_length_InDN
Error in factor(tab_length_InDN$Male_Line, labels = c("Control", "InR-DN")): objet 'tab_length_InDN' introuvable
$Male_Line = factor(Sample_size$Male_Line, labels = c("Control","InR-DN")) Sample_size
Error in factor(Sample_size$Male_Line, labels = c("Control", "InR-DN")): objet 'Sample_size' introuvable
=
Plot_Fig6Gggplot(tab_length_InDN, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 0.15) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 2.5, label = paste("(",Sample_size,")",sep="")),size=3)+
facet_grid(.~Male_Line)+
scale_fill_manual(values=cbbHS_HStoHY)+
scale_x_discrete("",
limits=c("HS D0","HStoHY D7"),
labels=c("HS","HS to HY"))+
scale_y_continuous("Midgut length (mm)",
limits=c(2,9),
breaks=seq(2,8,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
stat_summary(fun = mean, colour = "black", geom = "line", aes(group = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", face="italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_length_InDN, aes(x = Diet, y = Total_Length_mm)): objet 'tab_length_InDN' introuvable
Plot_Fig6G
Error in eval(expr, envir, enclos): objet 'Plot_Fig6G' introuvable
Increase in midgut length despite proliferation blockage is accompanied with compensatory area increase of EC. Representative pictures of midguts stained with membrane marker Mesh (white), shifted from HS to HY for 7 days show bigger cells on EsgTS>UAS-Egfr-IR (I, right) compared to control (H, left). Complete graphical annotation can be found in manuscript figures
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/6H.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig6H
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig6H)
Error in grid.draw(gob_imageFig6H): objet 'gob_imageFig6H' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/6I.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig6I
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig6I)
Error in grid.draw(gob_imageFig6I): objet 'gob_imageFig6I' introuvable
Quantification of EC cell size shows compensatory effect in ECs of EsgTS>Egfr-IR.Statistical comparison is for the interaction between diet and genotype.
=
tab_area_esg subset(d[["6J"]],Area<=1300)%>%
mutate_at(vars(!starts_with("Area")),as.factor)%>%
::rename(Day_of_treatment=Day,
dplyrFemale_Line=Female.Line,
Male_Line=Male.Line)%>%
as.data.frame()%>%
mutate(Diet=fct_relevel(Diet,c("HS", "HStoHY")))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'Area' introuvable
=
Sample_size%>%
tab_area_esggroup_by(Diet,Male_Line)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Male_Line): objet 'tab_area_esg' introuvable
###Stats
# D7
= fitme(log(Area) ~ Diet * Male_Line + (1 | Repeat) ,data = tab_area_esg) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_area_esg' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Area) ~ Diet * Male_Line+ (1 / Repeat) ,data = tab_area_esg)
Error in is.data.frame(data): objet 'tab_area_esg' introuvable
= fitme(log(Area) ~ Diet + Male_Line + (1 | Repeat),data = tab_area_esg) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_area_esg' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("Response Control vs Egfr")),
tab_stat Rep = nlevels(tab_area_esg$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[4],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_area_esg' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Variable", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Cell area) ~ Diet + Genotype + Diet : Genotype + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Variable", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
=tab_stat tab_stat_6J
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Male_Line="Egfr-IR" tab_stat_6J
Error in tab_stat_6J$Male_Line = "Egfr-IR": objet 'tab_stat_6J' introuvable
$Diet=c("HStoHY") tab_stat_6J
Error in tab_stat_6J$Diet = c("HStoHY"): objet 'tab_stat_6J' introuvable
$yposition = c(0.6) tab_stat_6J
Error in tab_stat_6J$yposition = c(0.6): objet 'tab_stat_6J' introuvable
$xposition = c(1.5) tab_stat_6J
Error in tab_stat_6J$xposition = c(1.5): objet 'tab_stat_6J' introuvable
### Plot
= max(tab_area_esg$Area/1000, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_area_esg' introuvable
=
Plot_Fig6Jggplot(tab_area_esg, aes(x = Diet, y = Area/1000))+
geom_violin(aes(fill = C.G), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 2) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/120) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = -0.1, label = paste("(",Sample_size,")",sep="")),size=3)+
facet_grid(.~Male_Line)+
scale_fill_manual(values=cbbHS_HStoHY)+
scale_x_discrete("",
limits=c("HS","HStoHY"),
labels=c("HS","HS to HY"))+
scale_y_continuous(expression(paste("EC area (10"^3, "mm"^2,")",sep="")),
limits=c(-0.1,1.1),
breaks=seq(0,1.1,by=0.4))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
stat_summary(fun = mean, colour = "black", geom = "line", aes(group = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(margin(0, 0, 0, 0, unit = "cm")),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text = element_text(size =Smallfont, colour = "black",face="italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_area_esg, aes(x = Diet, y = Area/1000)): objet 'tab_area_esg' introuvable
Plot_Fig6J
Error in eval(expr, envir, enclos): objet 'Plot_Fig6J' introuvable
##Export Figure 6
Changes in the number of pH3+ cells between HS and HY (ratio HY/HS of mean pH3+ cells) does not correlate with changes in midgut size between HS and HY (ratio HY/HS of mean midgut length) across selected DGRP lines.
=
tab_corr_length_cell_DGRP_mean_ph3 %>%
tab_corr_length_cell_DGRPgroup_by(ral,diet)%>%
summarise(mean_ph3=mean(ph3,na.rm=T))%>%
spread(diet,mean_ph3)%>%
::rename(Mean_ph3_HS=HS,
dplyrMean_ph3_HY=HY)%>%
mutate(Ratio_ph3 = Mean_ph3_HY/Mean_ph3_HS)
Error in group_by(., ral, diet): objet 'tab_corr_length_cell_DGRP' introuvable
=
tab_corr_length_cell_DGRP_mean_length %>%
tab_corr_length_cell_DGRPgroup_by(ral,diet)%>%
summarise(mean_length=mean(len,na.rm=T))%>%
spread(diet,mean_length)%>%
::rename(mean_length_HS=HS,
dplyrmean_length_HY=HY)%>%
mutate(Ratio_length = mean_length_HY/mean_length_HS)
Error in group_by(., ral, diet): objet 'tab_corr_length_cell_DGRP' introuvable
= left_join(tab_corr_length_cell_DGRP_mean_length,tab_corr_length_cell_DGRP_mean_ph3) tab_corr_length_cell_DGRP_mean
Error in left_join(tab_corr_length_cell_DGRP_mean_length, tab_corr_length_cell_DGRP_mean_ph3): objet 'tab_corr_length_cell_DGRP_mean_length' introuvable
=as.data.frame(tab_corr_length_cell_DGRP_mean) tab_corr_length_cell_DGRP_mean
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tab_corr_length_cell_DGRP_mean' introuvable
=
test with(tab_corr_length_cell_DGRP_mean,
cor.test(Ratio_ph3,Ratio_length,method="pearson"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'data' lors de la s�lection d'une m�thode pour la fonction 'with' : objet 'tab_corr_length_cell_DGRP_mean' introuvable
= data.frame(Statistic = test$statistic,
tab_stat cor = test$estimate,
Pvalue = test$p.value)
Error in test$statistic: objet de type 'closure' non indiçable
levels(tab_corr_length_cell_DGRP_mean$ral) <- c("Ral 356", "Ral 362", "Ral 370", "Ral 502", "Ral 765", "Ral 853", "Ral 911" )
Error in levels(tab_corr_length_cell_DGRP_mean$ral) <- c("Ral 356", "Ral 362", : objet 'tab_corr_length_cell_DGRP_mean' introuvable
=
Plot_Fig6S1A ggplot(tab_corr_length_cell_DGRP_mean,aes(x=Ratio_ph3,y=Ratio_length,label=ral))+
geom_point()+
scale_x_continuous(expression(paste("Ratio HY/HS (mean pH3" ^ "+", " cells)")),
limits=c(0.8,1.8),
breaks=c(seq(0.8,2.8,by=0.1)))+
scale_y_continuous("Ratio HY/HS (mean midgut length)",
limits=c(0.8,1.8),
breaks=c(seq(0.8,2.8,by=0.2)))+
geom_text_repel(data=tab_corr_length_cell_DGRP_mean,size=3)+
geom_smooth(method="lm")+
geom_text(data = tab_stat, mapping = aes(x = 1.6, y = 1.7, label = paste("cor=", format(cor, digits=2), "p=",format(Pvalue,digits=2))),size=3)+ theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
panel.border = element_blank()),
(axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_blank(),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "horizontal",
legend.box = "horizontal",
legend.position = c(0.25,0.98),
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.4, "cm"),
legend.title = element_blank(),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=Smallfont),
legend.background = element_rect(fill=NA))+
guides(color=guide_legend(ncol=3))
Error in ggplot(tab_corr_length_cell_DGRP_mean, aes(x = Ratio_ph3, y = Ratio_length, : objet 'tab_corr_length_cell_DGRP_mean' introuvable
Plot_Fig6S1A
Error in eval(expr, envir, enclos): objet 'Plot_Fig6S1A' introuvable
Overexpression of reaper in progenitor cells (marked in red) via EsgTS>rpr-OE results in loss of marked progenitor cells (C) compared to control (B) in region 4 of midguts, after 12 days post eclosion on HS diet (7 days at 29°C with TARGET system active). Shifting the flies on HY for additional 7 days results in a change in morphology on midguts overexpressing reaper, reminiscent of EsgTS>UAS-Egfr-IR midguts .Complete graphical annotation can be found in manuscript figures
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/6 - S1B.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig6S1B
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig6S1B)
Error in grid.draw(gob_imageFig6S1B): objet 'gob_imageFig6S1B' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/6 - S1C.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig6S1C
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig6S1C)
Error in grid.draw(gob_imageFig6S1C): objet 'gob_imageFig6S1C' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/6 - S1D.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig6S1D
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig6S1D)
Error in grid.draw(gob_imageFig6S1D): objet 'gob_imageFig6S1D' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/6 - S1E.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig6S1E
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig6S1E)
Error in grid.draw(gob_imageFig6S1E): objet 'gob_imageFig6S1E' introuvable
EsgTS> rpr-OE midguts are still able to reach a similar length to controls .Complete graphical annotation can be found in manuscript figures
=
tab_length_rpr "6 - S1F"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
mutate(Total_Length_mm=Total.L/1000)%>%
::rename(Day_of_treatment=Day,
dplyrFemale_Line=Female.Line,
Male_Line=Male.Line)%>%
as.data.frame()%>%
mutate(Male_Line=fct_relevel(Male_Line, "Control", "rpr-OE"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_length_rprgroup_by(Diet, Male_Line)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Male_Line): objet 'tab_length_rpr' introuvable
###Stats
= fitme(log(Total_Length_mm) ~ Diet * Male_Line + (1 | Repeat),data = tab_length_rpr) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_length_rpr' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + Male_Line + (1 / Repeat),data = tab_length_rpr)
Error in is.data.frame(data): objet 'tab_length_rpr' introuvable
= fitme(log(Total_Length_mm) ~ Diet + Male_Line + (1 | Repeat),data = tab_length_rpr) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_length_rpr' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
test
function (pkg = ".", filter = NULL, stop_on_failure = FALSE,
export_all = TRUE, ...)
{
save_all()
pkg <- as.package(pkg)
if (!uses_testthat(pkg) && interactive()) {
cli::cli_alert_danger("No testing infrastructure found. Create it?")
if (utils::menu(c("Yes", "No")) == 1) {
usethis_use_testthat(pkg)
}
return(invisible())
}
load_all(pkg$path)
cli::cli_alert_info("Testing {.pkg {pkg$package}}")
withr::local_envvar(r_env_vars())
testthat::test_local(pkg$path, filter = filter, stop_on_failure = stop_on_failure,
...)
}
<bytecode: 0x000000009e53be20>
<environment: namespace:devtools>
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("Interaction Control vs Interaction Rpr-OE")),
tab_stat Male_Line = as.character(paste("rpr-OE")),
Rep = nlevels(tmp$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=1,scientific=F)))
Error in levels(x): objet 'tmp' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
=tab_stat tab_stat_rpr
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
%>%
tab_stat_rprkable(col.names = c("Comparison", "Variable", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>%
add_header_above(c("log(Total_Length_mm) ~ Diet + Genotype + Diet : Genotype + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Variable", "Replicates", : objet 'tab_stat_rpr' introuvable
### Plot
= max(tab_length_rpr$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_length_rpr' introuvable
=
Plot_Fig6S1Fggplot(tab_length_rpr, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/40) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 2.5, label = paste("(",Sample_size,")",sep="")),size=3)+
facet_grid(.~Male_Line )+
scale_fill_manual(values=cbbHS_HStoHY)+
scale_x_discrete("",
limits=c("HS","HStoHY"),
labels=c("HS","HS to HY"))+
scale_y_continuous("Midgut length (mm)",
limits=c(2,9),
breaks=seq(2,8,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
stat_summary(fun = mean, colour = "black", geom = "line", aes(group = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = xSmallfont, colour = "black", angle=0, face = "italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = xSmallfont, colour = "black", angle=0, face = "italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_length_rpr, aes(x = Diet, y = Total_Length_mm)): objet 'tab_length_rpr' introuvable
Plot_Fig6S1F
Error in eval(expr, envir, enclos): objet 'Plot_Fig6S1F' introuvable
##Export Figure 6 - supplementary 1
Enterocyte size mostly correlates with midgut length. Quantification of EC area across a selected panel of DGRP lines comprising high and low responder shows that midgut length mostly correlates with EC cell area. Lines on plot show smoothed splines.
= d[["DGRP_wolbachia_DFD"]]
wolb colnames(wolb) = c("dgrp.id", "wolbachia")
Error in `colnames<-`(`*tmp*`, value = c("dgrp.id", "wolbachia")): tentative de modification de 'colnames' sur un objet ayant moins de deux dimensions
$dgrp.id = gsub("line_", "", wolb$dgrp.id)
wolb
= subset(d[["6A - 7A"]]) tab_corr_length_cell_DGRP
Error in subset.default(d[["6A - 7A"]]): l'argument "subset" est manquant, avec aucune valeur par défaut
= merge(tab_corr_length_cell_DGRP, wolb, by.x="DGRP.number", by.y="dgrp.id", all.x=T, all.y=F) tab_corr_length_cell_DGRP
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'merge' : objet 'tab_corr_length_cell_DGRP' introuvable
colnames(tab_corr_length_cell_DGRP) = tolower(colnames(tab_corr_length_cell_DGRP))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'tolower' : erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'colnames' : objet 'tab_corr_length_cell_DGRP' introuvable
colnames(tab_corr_length_cell_DGRP)[3] = "repl"
Error in colnames(tab_corr_length_cell_DGRP)[3] = "repl": objet 'tab_corr_length_cell_DGRP' introuvable
=
tab_corr_length_cell_DGRP%>%
tab_corr_length_cell_DGRP::rename(ral=dgrp.number,
dplyrlen=total.l,
ph3=total.ph3,
ec.area=area)%>%
mutate(ral=paste("Ral",ral,sep="_"))%>%
mutate_if(is.character,as.factor)
Error in dplyr::rename(., ral = dgrp.number, len = total.l, ph3 = total.ph3, : objet 'tab_corr_length_cell_DGRP' introuvable
=
gut_mean%>%
tab_corr_length_cell_DGRP group_by(ral, diet,cross,gutnumber)%>%
summarize(mean_gut_len=mean(len,na.rm=T),
mean_cell_size=mean(ec.area,na.rm=T),
se_cell_size=sd(ec.area,na.rm=T)/ sqrt(length(ec.area[!is.na(ec.area)])),
mean_PH3=mean(ph3,na.rm=T)) %>%
mutate(Group=paste(cross,gutnumber,sep="_"))
Error in group_by(., ral, diet, cross, gutnumber): objet 'tab_corr_length_cell_DGRP' introuvable
levels(gut_mean$ral) <- c("Ral 356", "Ral 362", "Ral 370", "Ral 502", "Ral 765", "Ral 853", "Ral 911" )
Error in levels(gut_mean$ral) <- c("Ral 356", "Ral 362", "Ral 370", "Ral 502", : objet 'gut_mean' introuvable
$ral <- factor(gut_mean$ral, levels = c("Ral 356", "Ral 502", "Ral 765", "Ral 853", "Ral 911", "Ral 362", "Ral 370")) gut_mean
Error in factor(gut_mean$ral, levels = c("Ral 356", "Ral 502", "Ral 765", : objet 'gut_mean' introuvable
=
Sample_size%>%
gut_meangroup_by(diet, ral)%>%
summarise(Sample_size=n())%>%
as.data.frame()%>%
mutate(ral=fct_relevel(ral,"Ral 356", "Ral 502", "Ral 765", "Ral 853", "Ral 911", "Ral 362", "Ral 370"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'gut_mean' introuvable
# stat over all
= fitme(log10(I(mean_gut_len/1000)) ~ mean_cell_size + (1 | ral),data = gut_mean) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'gut_mean' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log10(I(mean_gut_len/1000)) ~ mean_cell_size + (1 / ral),data = gut_mean)
Error in is.data.frame(data): objet 'gut_mean' introuvable
= fitme(log10(I(mean_gut_len/1000)) ~ 1 + (1 | ral),data =gut_mean) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'gut_mean' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("Cell area")),
tab_stat Number_genotypes = nlevels(gut_mean$ral),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'gut_mean' introuvable
#stat per line
=NULL
Cor_areafor(i in unique(gut_mean$ral)){
# print(i)
=
Cor_area_HSwith(subset(gut_mean,ral==i& diet=="HS"),
cor.test(log(mean_gut_len,2),mean_cell_size))
=
Cor_area_HYwith(subset(gut_mean,ral==i& diet=="HY"),
cor.test(log(mean_gut_len,2),mean_cell_size))
= data.frame(ral = as.character(i),
Cor_area_tmp diet=c("HS","HY"),
Cor = c(format(as.numeric(Cor_area_HS$estimate), digits = 2),format(as.numeric(Cor_area_HY$estimate), digits = 2)),
Pvalue = c(format(as.numeric(Cor_area_HS$p.value), digits = 2),format(as.numeric(Cor_area_HY$p.value), digits = 2)))
= rbind(Cor_area,Cor_area_tmp)
Cor_area }
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'unique' : objet 'gut_mean' introuvable
$padj=p.adjust(Cor_area$Pvalue,method = "BH")
Cor_area$sig= ifelse(Cor_area$padj < 0.05 & Cor_area$padj > 0.01, "*",
Cor_areaifelse(Cor_area$padj < 0.01 & Cor_area$padj > 0.001, "**",
ifelse(Cor_area$padj < 0.001, "***", "ns")))
=subset(gut_mean,diet=="HS") tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'gut_mean' introuvable
= aggregate(data=tmp,mean_gut_len/1000 ~ ral, max) stat_position_HS
Error in eval(m$data, parent.frame()): objet 'tmp' introuvable
$diet="HS" stat_position_HS
Error in stat_position_HS$diet = "HS": objet 'stat_position_HS' introuvable
=subset(gut_mean,diet=="HY") tmp
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'gut_mean' introuvable
= aggregate(data=tmp,mean_gut_len/1000 ~ ral, max) stat_position_HY
Error in eval(m$data, parent.frame()): objet 'tmp' introuvable
$diet="HY" stat_position_HY
Error in stat_position_HY$diet = "HY": objet 'stat_position_HY' introuvable
=rbind(stat_position_HS,stat_position_HY) stat_position
Error in eval(quote(list(...)), env): objet 'stat_position_HS' introuvable
colnames(stat_position)[2]="Stat_position"
Error in colnames(stat_position)[2] = "Stat_position": objet 'stat_position' introuvable
= left_join(Cor_area,stat_position) Cor_area
Error in UseMethod("left_join"): pas de méthode pour 'left_join' applicable pour un objet de classe "list"
$ral <- factor(gut_mean$ral, levels = c("Ral 356", "Ral 502", "Ral 765", "Ral 853", "Ral 911", "Ral 362", "Ral 370")) gut_mean
Error in factor(gut_mean$ral, levels = c("Ral 356", "Ral 502", "Ral 765", : objet 'gut_mean' introuvable
$ral <- factor(Cor_area$ral, levels = c("Ral 356", "Ral 502", "Ral 765", "Ral 853", "Ral 911", "Ral 362", "Ral 370"))
Cor_area
=
Plot_Fig7Aggplot(gut_mean,aes(x=log2(mean_cell_size), y=mean_gut_len/1000,group=ral))+
geom_point( aes(color=diet,fill=diet),shape=21,size=0.9)+
geom_text(data = Sample_size, mapping = aes(x = 8, y = 2.5, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_text(data = Cor_area, mapping = aes( x=7,y=7,label = sig),size=3)+
facet_grid(ral~diet)+
scale_y_continuous("Midgut length (mm)")+
scale_x_continuous(expression(paste("Cell size (", log[2],"(mean\u00B1se))")))+
scale_color_manual("",
limits=c("HS","HY"),
values=palette_diet_2)+
scale_fill_manual("",
limits=c("HS","HY"),
values=palette_diet_2)+
geom_smooth(method="lm",color="black",size=0.5)+
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", face = "italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(gut_mean, aes(x = log2(mean_cell_size), y = mean_gut_len/1000, : objet 'gut_mean' introuvable
Plot_Fig7A
Error in eval(expr, envir, enclos): objet 'Plot_Fig7A' introuvable
Representative pictures of single cell clones (hsFlp; Act>STOP>Gal4, UAS-GFP) suggest that compared to GFP- cells, TOR downregulation (UAS-Tor-IR, GFP+) results in smaller cells, while TOR hyperactivity (UAS-Rheb-OE, C) increases cell size. Quantification of clone size in D. Single cell clones are marked with GFP (green). Complete graphical annotation can be found in manuscript figures
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/7B.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig7B
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig7B)
Error in grid.draw(gob_imageFig7B): objet 'gob_imageFig7B' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/7C.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig7C
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig7C)
Error in grid.draw(gob_imageFig7C): objet 'gob_imageFig7C' introuvable
=
tab_ECclone_quant "7D"]]%>%
d[[mutate_at(vars(!starts_with("Area")),as.factor)%>%
::rename(Male_Line=Male.Line)%>%
dplyras.data.frame()%>%
mutate(Male_Line=fct_relevel(Male_Line,"Tor-IR","Rheb-OE"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_ECclone_quantgroup_by(Male_Line, GFP)%>%
summarise(Sample_size=n())%>%
as.data.frame()%>%
mutate(Male_Line=fct_relevel(Male_Line,"Tor-IR","Rheb-OE"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tab_ECclone_quant' introuvable
###Stats
#Tor-IR stats
= fitme(log(Area) ~ GFP,data = subset(tab_ECclone_quant, Male_Line=="Tor-IR")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_ECclone_quant' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Area) ~ GFP ,data = subset(tab_ECclone_quant, Male_Line=="Tor-IR"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_ECclone_quant' introuvable
= fitme(log(Area) ~ 1 ,data = subset(tab_ECclone_quant, Male_Line=="Tor-IR")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_ECclone_quant' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("GFP Negative vs Positive (Tor-IR)")),
tab_stat chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in test$basicLRT: objet de type 'closure' non indiçable
= tab_stat tab_stat_TorEC
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
= fitme(log(Area) ~ GFP,data = subset(tab_ECclone_quant, Male_Line=="Rheb-OE")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_ECclone_quant' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Area) ~ GFP ,data = subset(tab_ECclone_quant, Male_Line=="Rheb-OE"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_ECclone_quant' introuvable
= fitme(log(Area) ~ 1 ,data = subset(tab_ECclone_quant, Male_Line=="Rheb-OE")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_ECclone_quant' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("GFP Negative vs Positive (Rheb-OE)")),
tab_stat chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in test$basicLRT: objet de type 'closure' non indiçable
= tab_stat tab_stat_RhebOEEC
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
=rbind(tab_stat_TorEC,tab_stat_RhebOEEC) tab_stat
Error in eval(quote(list(...)), env): objet 'tab_stat_TorEC' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
$Male_Line = as.factor(c("Tor-IR","Rheb-OE")) tab_stat
Error in tab_stat$Male_Line = as.factor(c("Tor-IR", "Rheb-OE")): objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Chi2", "Intercept","Estimate","df" ,"p-value", "Signif.", "RNAi line"),row.names = FALSE) %>% add_header_above(c("log(Cell area) ~ GFP" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Chi2", "Intercept", "Estimate", : objet 'tab_stat' introuvable
### Plot
=
Plot_Fig7Dggplot(tab_ECclone_quant, aes(x = GFP, y = Area/1000))+
geom_violin(aes(fill = GFP), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 0.04) +
geom_text(data = Sample_size, mapping = aes(x = GFP, y = -0.2, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(data = tab_stat,aes(xmin = 1, xmax = 2, annotations = formatC(paste("p=",Pvalue), digits = 2), y_position = 2), textsize = 3, vjust = -0.2, manual = TRUE, tip_length = c(0.01, 0.01))+
facet_grid(.~Male_Line)+
scale_fill_manual(limits=c("No","Yes"),
values=c("#e4e4e4","#8ee53f"))+
scale_x_discrete("GFP",
limits=c("No","Yes"),
labels=c("-","+"))+
scale_y_continuous(expression(paste("EC area (10"^3, "mm"^2,")",sep="")),
limits=c(-0.3,2.3),
breaks=seq(0,2,by=0.4))+
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, colour = "yellow") +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black", vjust = 6),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", face="italic", margin = margin(t = 1, r = 0, b = 1, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", face="italic", margin = margin(t = 1, r = 0, b = 1, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_ECclone_quant, aes(x = GFP, y = Area/1000)): objet 'tab_ECclone_quant' introuvable
Plot_Fig7D
Error in eval(expr, envir, enclos): objet 'Plot_Fig7D' introuvable
Knockdown of TOR with MyoTS, an EC-specific driver, leads to the increased number of small ECs (F, right) compared to control (E, left); EC-specific GFP is indeed visible in small cells.Complete graphical annotation can be found in manuscript figures
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/7E.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig7E
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig7E)
Error in grid.draw(gob_imageFig7E): objet 'gob_imageFig7E' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/7F.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig7F
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig7F)
Error in grid.draw(gob_imageFig7F): objet 'gob_imageFig7F' introuvable
Quantification of EC area. Statistic annotation on panel present in manuscript’s figure.
=
tab_area_Tor_IR "7G"]]%>%
d[[mutate_at(vars(!starts_with("Area")),as.factor)%>%
::rename(Day_of_treatment=Day,
dplyrFemale_Line=Female.Line,
Male_Line=Male.Line)%>%
as.data.frame()%>%
mutate(Diet=fct_relevel(Diet,c("HS", "HStoHY")),
Male_Line=fct_relevel(Male_Line,c("Control","Tor-IR")))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_area_Tor_IRgroup_by(Diet,Male_Line)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Male_Line): objet 'tab_area_Tor_IR' introuvable
###Stats Tor
# D7
= fitme(log(Area) ~ Diet * Male_Line + (1 | Repeat ) ,data = tab_area_Tor_IR) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_area_Tor_IR' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Area) ~ Diet * Male_Line + (1 / Repeat ) ,data = tab_area_Tor_IR)
Error in is.data.frame(data): objet 'tab_area_Tor_IR' introuvable
= fitme(log(Area) ~ Diet + Male_Line + (1 | Repeat ),data = tab_area_Tor_IR) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_area_Tor_IR' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character("Control vs Tor-IR"),
tab_stat Rep = nlevels(tab_area_Tor_IR$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[4],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_area_Tor_IR' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Response to diet", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Cell area) ~ Diet + Genotype + Diet : Genotype + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Response to diet", "Replicates", "Chi2", : objet 'tab_stat' introuvable
=tab_stat tab_stat_7E
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Male_Line=factor("Tor-IR", labels = c(expression(italic("Tor-IR")))) tab_stat_7E
Error in tab_stat_7E$Male_Line = factor("Tor-IR", labels = c(expression(italic("Tor-IR")))): objet 'tab_stat_7E' introuvable
$Diet=c("HStoHY") tab_stat_7E
Error in tab_stat_7E$Diet = c("HStoHY"): objet 'tab_stat_7E' introuvable
$yposition = c(0.7) tab_stat_7E
Error in tab_stat_7E$yposition = c(0.7): objet 'tab_stat_7E' introuvable
$xposition = c(1.5) tab_stat_7E
Error in tab_stat_7E$xposition = c(1.5): objet 'tab_stat_7E' introuvable
### Plot
$Female_Line = factor(tab_area_Tor_IR$Female_Line, labels = c(expression(italic(paste("My",o^{TS},">",sep=""))))) tab_area_Tor_IR
Error in factor(tab_area_Tor_IR$Female_Line, labels = c(expression(italic(paste("My", : objet 'tab_area_Tor_IR' introuvable
$Male_Line = factor(tab_area_Tor_IR$Male_Line, labels = c(expression(italic("Control"),italic("Tor-IR")))) tab_area_Tor_IR
Error in factor(tab_area_Tor_IR$Male_Line, labels = c(expression(italic("Control"), : objet 'tab_area_Tor_IR' introuvable
$Male_Line = factor(Sample_size$Male_Line, labels = c(expression(italic("Control"),italic("Tor-IR")))) Sample_size
Error in factor(Sample_size$Male_Line, labels = c(expression(italic("Control"), : objet 'Sample_size' introuvable
=
Plot_Fig7Gggplot(tab_area_Tor_IR, aes(x = Diet, y = Area/1000))+
geom_violin(aes(fill = C.G), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 5) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 0.008) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = -0.1, label = paste("(",Sample_size,")",sep="")),size=3)+
facet_grid(.~Male_Line,labeller=label_parsed )+
scale_fill_manual(values=c("#FFB4B4", "#CCCCFF"))+
scale_x_discrete("",
limits=c("HS","HStoHY"),
labels=c("HS","HS to HY"))+
scale_y_continuous(expression(paste("EC area (10"^3, "mm"^2,")",sep="")),
limits=c(-0.12,1),
breaks=seq(0,0.8,by=0.2))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
stat_summary(fun = mean, colour = "black", geom = "line", aes(group = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text = element_text(size =Smallfont, colour = "black",face="italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_area_Tor_IR, aes(x = Diet, y = Area/1000)): objet 'tab_area_Tor_IR' introuvable
Plot_Fig7G
Error in eval(expr, envir, enclos): objet 'Plot_Fig7G' introuvable
Blocking TOR pathway components in ECs (MyoTS) inhibits diet induced midgut growth. Control showed in chart is representative of multiple experiments. Statistical analyses were performed only on appropriate repeat/experiment and comparing interaction between diet and fly line.
=
tab_length_Tor "7H"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
mutate(Total_Length_mm=Total.L/1000)%>%
::rename(Day_of_treatment=Day,
dplyrFemale_Line=Female.Line,
Male_Line=Male.Line)%>%
as.data.frame()%>%
mutate(Male_Line=fct_relevel(Male_Line, "Control", "Tor-IR","dMyc-IR","S6k-IR", "SREBP-IR", "raptor-IR"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_length_Torgroup_by(Diet,Male_Line)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Male_Line): objet 'tab_length_Tor' introuvable
###Stats
= c("Tor-IR","dMyc-IR","S6k-IR", "SREBP-IR", "raptor-IR")
list_genotype=NULL
tab_stat_Tor
for (i in list_genotype){
=
list_controlsubset(tab_length_Tor,Male_Line%in%c(i)) %>%
mutate(PhaseRep=factor(PhaseRep))%>%
summarise(levels(PhaseRep))
= as.list(list_control$`levels(PhaseRep)`)
list_control
= subset(tab_length_Tor, Male_Line%in%c(i, "Control") & PhaseRep%in%list_control)%>%
tmpmutate(Male_Line=factor(Male_Line),
PhaseRep=factor(PhaseRep))
= fitme(log10(Total_Length_mm) ~ Diet * Male_Line + (1 | PhaseRep),data = tmp)
mod.gen shapiro.test(residuals(mod.gen))
bptest(log10(Total_Length_mm) ~ Diet + Male_Line + (1 / PhaseRep),data = tmp)
= fitme(log10(Total_Length_mm) ~ Diet + Male_Line + (1 | PhaseRep),data = tmp)
mod.gen1 = anova(mod.gen, mod.gen1)
test
test
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]])
Chi2_LRT_growth
= data.frame(Male_Line = as.character(i),
tab_stat Rep = nlevels(tmp$PhaseRep),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[4],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
= rbind(tab_stat_Tor,tab_stat)
tab_stat_Tor }
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_length_Tor' introuvable
$padj=p.adjust(tab_stat_Tor$Pvalue,method = "BH")
tab_stat_Tor$sig= ifelse(tab_stat_Tor$padj < 0.05 & tab_stat_Tor$padj > 0.01, "*",
tab_stat_Torifelse(tab_stat_Tor$padj < 0.01 & tab_stat_Tor$padj > 0.001, "**",
ifelse(tab_stat_Tor$padj < 0.001, "***", "ns")))
%>%
tab_stat_Torkable(col.names = c("Response to diet", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","p-value adjusted","Signif."),row.names = FALSE) %>% add_header_above(c("log10(Total_Length_mm) ~ Diet + Genotype + Diet : Genotype + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in dimnames(x) <- dn: la longueur de 'dimnames' [2] n'est pas égale à l'étendue du tableau
=
tab_stat_Tor%>%
tab_stat_Toras.data.frame()%>%
mutate(Male_Line=fct_relevel(Male_Line, "Tor-IR","dMyc-IR","S6k-IR", "SREBP-IR", "raptor-IR"))
Error: Problem with `mutate()` column `Male_Line`.
i `Male_Line = fct_relevel(...)`.
x objet 'Male_Line' introuvable
### Plot
$Female_Line = factor(tab_length_Tor$Female_Line, labels = c(expression(italic(paste("My",o^{TS},">",sep=""))))) tab_length_Tor
Error in factor(tab_length_Tor$Female_Line, labels = c(expression(italic(paste("My", : objet 'tab_length_Tor' introuvable
= max(tab_length_Tor$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_length_Tor' introuvable
=
Plot_Fig7Hggplot(tab_length_Tor, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/80) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 2.4, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_text(data = tab_stat_Tor, mapping = aes(x = 1.5, y = 8.3, label = paste("p=",format(Pvalue,digits=2))),size=3)+
facet_grid(.~Male_Line )+
scale_fill_manual(values=cbbHS_HStoHY)+
scale_x_discrete("",
limits=c("HS","HStoHY"),
labels=c("HS","HS to HY"))+
scale_y_continuous("Midgut length (mm)",
limits=c(2,8.3),
breaks=seq(2,8,by=1))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = PhaseRep)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = PhaseRep, colour = PhaseRep)) +
stat_summary(fun = mean, colour = "black", geom = "line", aes(group = PhaseRep)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = xSmallfont, colour = "black", angle=0, face = "italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = xSmallfont, colour = "black", angle=0, face = "italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_length_Tor, aes(x = Diet, y = Total_Length_mm)): objet 'tab_length_Tor' introuvable
Plot_Fig7H
Error in eval(expr, envir, enclos): objet 'Plot_Fig7H' introuvable
:::
Representative picture utilizing single cell clonal system suggests that blocking Atg2 (hsFlp; Act>STOP>Gal4, UAS-GFP >UAS-Atg2-IR, GFP+ cells) results in bigger ECs compared to control GFP- cells, quantified in J Complete graphical annotation can be found in manuscript figures
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/7I.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig7I
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig7I)
Error in grid.draw(gob_imageFig7I): objet 'gob_imageFig7I' introuvable
:::
=
tab_ECclone_quant1 "7J"]]%>%
d[[mutate_at(vars(!starts_with("Area")),as.factor)%>%
::rename(Male_Line=Male.Line)%>%
dplyras.data.frame()
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_ECclone_quant1group_by(GFP)%>%
summarise(Sample_size=n())%>%
as.data.frame()
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tab_ECclone_quant1' introuvable
###Stats
= fitme(log(Area) ~ GFP,data = subset(tab_ECclone_quant1, Male_Line=="Atg2-IR")) mod.gen
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_ECclone_quant1' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Area) ~ GFP ,data = subset(tab_ECclone_quant1, Male_Line=="Atg2-IR"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_ECclone_quant1' introuvable
= fitme(log(Area) ~ 1 ,data = subset(tab_ECclone_quant1, Male_Line=="Atg2-IR")) mod.gen1
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'subset' : objet 'tab_ECclone_quant1' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("GFP Negative vs Positive (Atg2-IR)")),
tab_stat chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in test$basicLRT: objet de type 'closure' non indiçable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
$Male_Line = as.factor(c("Atg2-IR")) tab_stat
Error in tab_stat$Male_Line = as.factor(c("Atg2-IR")): objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Chi2", "Intercept","Estimate","df" ,"p-value","Signif.", "RNAi line"),row.names = FALSE) %>% add_header_above(c("log(Cell area) ~ GFP" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Chi2", "Intercept", "Estimate", : objet 'tab_stat' introuvable
### Plot
=
Plot_Fig7Jggplot(tab_ECclone_quant1, aes(x = GFP, y = Area/1000))+
geom_violin(aes(fill = GFP), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 0.03) +
geom_text(data = Sample_size, mapping = aes(x = GFP, y = -0.08, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(data = tab_stat,aes(xmin = 1, xmax = 2, annotations = formatC(paste("p=",Pvalue), digits = 2), y_position = 0.9), textsize = 3, vjust = -0.2, manual = TRUE, tip_length = c(0.01, 0.01))+
facet_grid(.~Male_Line)+
scale_fill_manual(limits=c("No","Yes"),
values=c("#e4e4e4","#8ee53f"))+
scale_x_discrete("GFP",
limits=c("No","Yes"),
labels=c("-","+"))+
scale_y_continuous(expression(paste("EC area (10"^3, "mm"^2,")",sep="")),
limits=c(-0.1,1),
breaks=seq(0,2,by=0.4))+
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, colour = "yellow") +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", face="italic", margin = margin(t = 1, r = 0, b = 1, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", face="italic", margin = margin(t = 1, r = 0, b = 1, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_ECclone_quant1, aes(x = GFP, y = Area/1000)): objet 'tab_ECclone_quant1' introuvable
Plot_Fig7J
Error in eval(expr, envir, enclos): objet 'Plot_Fig7J' introuvable
Blocking autophagy reduces midgut resizing upon shrinkage (HY to HS for 7 days). Blocking Atg8a expression with RNAi in ECs (MyoTS> UAS-Atg8a-IR) results in less length shrinkage compared to control midguts.
=
tab_length_Atg8a "7K"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
mutate(Total_Length_mm=Total.L/1000)%>%
::rename(Day_of_treatment=Day,
dplyrFemale_Line=Female.Line,
Male_Line=Male.Line)%>%
as.data.frame()%>%
mutate(Male_Line=fct_relevel(Male_Line,"Control","Atg8a-IR"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_length_Atg8agroup_by(Diet,Male_Line)%>%
summarise(Sample_size=n())%>%
as.data.frame()%>%
mutate(Male_Line=fct_relevel(Male_Line,"Control","Atg8a-IR"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tab_length_Atg8a' introuvable
###Stats
= fitme(log10(Total_Length_mm) ~ Diet * Male_Line + (1 | PhaseRep),data = tab_length_Atg8a) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_length_Atg8a' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log10(Total_Length_mm) ~ Diet + Male_Line + (1 / PhaseRep),data = tab_length_Atg8a)
Error in is.data.frame(data): objet 'tab_length_Atg8a' introuvable
= fitme(log10(Total_Length_mm) ~ Diet + Male_Line + (1 | PhaseRep),data = tab_length_Atg8a) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_length_Atg8a' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("Interaction control vs interaction Atg8a-IR")),
tab_stat Male_Line = as.character("Atg8a-IR"),
Rep = nlevels(tab_length_Atg8a$PhaseRep),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[4],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))%>%
mutate(Male_Line=fct_relevel(Male_Line,"Atg8a-IR"))
Error in levels(x): objet 'tab_length_Atg8a' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison","Variable", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log10(Total_Length_mm) ~ Diet + Genotype + Diet : Genotype + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Variable", "Replicates", : objet 'tab_stat' introuvable
= tab_stat tab_stat7K
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
### Plot
$Female_Line = factor(tab_length_Atg8a$Female_Line, labels = c(expression(italic(paste("My",o^{TS},">",sep=""))))) tab_length_Atg8a
Error in factor(tab_length_Atg8a$Female_Line, labels = c(expression(italic(paste("My", : objet 'tab_length_Atg8a' introuvable
= max(tab_length_Atg8a$Total_Length_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_length_Atg8a' introuvable
=
Plot_Fig7Kggplot(tab_length_Atg8a, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/60) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 2.3, label = paste("(",Sample_size,")",sep="")),size=3)+
facet_grid(.~Male_Line)+
scale_fill_manual(values=cbbHY_HYtoHS)+
scale_x_discrete("",
limits=c("HY","HYtoHS"),
labels=c("HY","HY to HS"))+
scale_y_continuous("Midgut length (mm)",
limits=c(2,7.5),
breaks=seq(2,7,by=1))+
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
stat_summary(fun = mean, colour = "black", geom = "line", aes(group = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", face="italic", margin = margin(t = 1, r = 0, b = 1, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", face="italic", margin = margin(t = 1, r = 0, b = 1, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_length_Atg8a, aes(x = Diet, y = Total_Length_mm)): objet 'tab_length_Atg8a' introuvable
Plot_Fig7K
Error in eval(expr, envir, enclos): objet 'Plot_Fig7K' introuvable
Blocking Atg2 expression with RNAi in ECs (MyoTS> UAS-Atg2-IR) results in less width shrinkage compared to control midguts. Complete statistical annotation in manuscript’s figure.
=
tab_length_Atg2 "7L"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
mutate(Total_Width_mm=Total.W/1000)%>%
::rename(Day_of_treatment=Day,
dplyrFemale_Line=Female.Line,
Male_Line=Male.Line)%>%
as.data.frame()%>%
mutate(Male_Line=fct_relevel(Male_Line,"Control","Atg2-IR"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_length_Atg2group_by(Diet,Male_Line)%>%
summarise(Sample_size=n())%>%
as.data.frame()%>%
mutate(Male_Line=fct_relevel(Male_Line,"Control","Atg2-IR"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tab_length_Atg2' introuvable
###Stats
= fitme(log10(Total_Width_mm) ~ Diet * Male_Line + (1 | PhaseRep),data = tab_length_Atg2) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_length_Atg2' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log10(Total_Width_mm) ~ Diet + Male_Line + (1 / PhaseRep),data = tab_length_Atg2)
Error in is.data.frame(data): objet 'tab_length_Atg2' introuvable
= fitme(log10(Total_Width_mm) ~ Diet + Male_Line + (1 | PhaseRep),data = tab_length_Atg2) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_length_Atg2' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("Interaction control vs interaction Atg2-IR")),Male_Line = as.character("Atg2-IR"),
tab_stat Rep = nlevels(tab_length_Atg2$PhaseRep),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[4],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))%>%
mutate(Male_Line=fct_relevel(Male_Line,"Atg2-IR"))
Error in levels(x): objet 'tab_length_Atg2' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Variable", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log10(Total_width_mm) ~ Diet + Genotype + Diet : Genotype + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Variable", "Replicates", : objet 'tab_stat' introuvable
= tab_stat tab_stat7L
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
### Plot
$Female_Line = factor(tab_length_Atg2$Female_Line, labels = c(expression(italic(paste("My",o^{TS},">",sep=""))))) tab_length_Atg2
Error in factor(tab_length_Atg2$Female_Line, labels = c(expression(italic(paste("My", : objet 'tab_length_Atg2' introuvable
= max(tab_length_Atg2$Total_Width_mm, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_length_Atg2' introuvable
=
Plot_Fig7Lggplot(tab_length_Atg2, aes(x = Diet, y = Total_Width_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/60) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 0.24, label = paste("(",Sample_size,")",sep="")),size=3)+
# geom_text(data = tab_stat, mapping = aes(x = 1.5, y =0.88, label = paste("p=",Pvalue)),size=3)+
facet_grid(.~Male_Line)+
scale_fill_manual(values=cbbHY_HYtoHS)+
scale_x_discrete("",
limits=c("HY","HYtoHS"),
labels=c("HY","HY to HS"))+
scale_y_continuous("Midgut width (mm)",
limits=c(0.2,0.9),
breaks=seq(0.2,1,by=0.1))+
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
stat_summary(fun = mean, colour = "black", geom = "line", aes(group = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", face="italic", margin = margin(t = 1, r = 0, b = 1, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", face="italic", margin = margin(t = 1, r = 0, b = 1, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_length_Atg2, aes(x = Diet, y = Total_Width_mm)): objet 'tab_length_Atg2' introuvable
Plot_Fig7L
Error in eval(expr, envir, enclos): objet 'Plot_Fig7L' introuvable
##Export Figure 7
The midgut plastically resizes through changes in EC cell size. Quantification of EC area shows that, in addition to total length, the midgut is also able to plastically resize (Figure 4A) its own ECs. ECs scored are derived from midguts measured for length in figure 4A. Letters above violin plots represent grouping by statistical differences (Post hoc Tukey on GLMM).
=
tab_area_plasticity "7 - S1A"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_area_plasticitygroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'tab_area_plasticity' introuvable
###Stats
= fitme(log10(Area) ~ Diet + (1 | Repeat), data = tab_area_plasticity) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_area_plasticity' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log10(Area) ~ Diet + (1 / Repeat), data = tab_area_plasticity)
Error in is.data.frame(data): objet 'tab_area_plasticity' introuvable
= fitme(log10(Area) ~ 1 + (1 | Repeat), data = tab_area_plasticity) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_area_plasticity' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("Anova between diets")),
tab_stat Rep = nlevels(tab_area_plasticity$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=2),
estimate = format(format(mod.gen$fixef[2],digits=3),digits=2),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2,scientific=T)))
Error in levels(x): objet 'tab_area_plasticity' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Variable", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log10(Cell area) ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Variable", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
= lmer(log10(Area) ~ Diet + (1 | Repeat), data = tab_area_plasticity) mod.gen
Error: bad 'data': objet 'tab_area_plasticity' introuvable
= glht(mod.gen, linfct=mcp(Diet="Tukey")) multcomp
Error in model.matrix(model) : objet 'mod.gen' introuvable
Error in factor_contrasts(model): no 'model.matrix' method for 'model' found!
= cld(multcomp) tmp
Error in cld(multcomp): objet 'multcomp' introuvable
= aggregate(data=tab_area_plasticity,I(Area/1000) ~ Diet, max) letter_position
Error in eval(m$data, parent.frame()): objet 'tab_area_plasticity' introuvable
= as.data.frame(tmp$mcletters$Letters) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tmp' introuvable
$Diet=rownames(tab_letter) tab_letter
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'rownames' : objet 'tab_letter' introuvable
colnames(tab_letter)[1] = "Letter"
Error in colnames(tab_letter)[1] = "Letter": objet 'tab_letter' introuvable
= left_join(tab_letter,letter_position) tab_letter
Error in left_join(tab_letter, letter_position): objet 'tab_letter' introuvable
colnames(tab_letter)[3] = "Area"
Error in colnames(tab_letter)[3] = "Area": objet 'tab_letter' introuvable
### Plot
= max(tab_area_plasticity$Area/1000, na.rm = TRUE) z
Error in eval(expr, envir, enclos): objet 'tab_area_plasticity' introuvable
=
Plot_Fig7S1Aggplot(tab_area_plasticity, aes(x = Diet, y = Area/1000))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = z/300) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = -0.01, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_text(data = tab_stat, mapping = aes(x = 1, y =1.15, label = paste("p< ",format(.Machine$double.xmin,digits=2))),size=3)+
geom_text(data = tab_letter, mapping = aes(x = Diet, y = Area+0.05, label = Letter),size=3)+
scale_fill_manual(limits=c("Eclosion", "HY", "HYtoHS", "HYtoHStoHY"),
values= cbbPalette_4 )+
scale_x_discrete("",
limits=c("Eclosion", "HY", "HYtoHS", "HYtoHStoHY"),
labels=c("Eclosion", "HY", "HY to HS", "HY to HS to HY"))+
scale_y_continuous(expression(paste("EC area (10"^3, "mm"^2,")",sep="")),
limits=c(-0.01,1.22),
breaks=seq(0,1.2,by=0.1))+
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(
panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=15,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA))
Error in ggplot(tab_area_plasticity, aes(x = Diet, y = Area/1000)): objet 'tab_area_plasticity' introuvable
Plot_Fig7S1A
Error in eval(expr, envir, enclos): objet 'Plot_Fig7S1A' introuvable
Changes in EC area between HS and HY (ratio HY/HS of mean EC area) significantly correlate with changes in midgut size between HS and HY (ratio HY/HS of mean midgut length) across selected DGRP lines.
=
tab_corr_length_cell_DGRP_mean_area %>%
tab_corr_length_cell_DGRPgroup_by(ral,diet)%>%
summarise(mean_area=mean(ec.area,na.rm=T))%>%
spread(diet,mean_area)%>%
::rename(mean_area_HS=HS,
dplyrmean_area_HY=HY)%>%
mutate(Ratio_area = mean_area_HY/mean_area_HS)
Error in group_by(., ral, diet): objet 'tab_corr_length_cell_DGRP' introuvable
=
tab_corr_length_cell_DGRP_mean_length %>%
tab_corr_length_cell_DGRPgroup_by(ral,diet)%>%
summarise(mean_length=mean(len,na.rm=T))%>%
spread(diet,mean_length)%>%
::rename(mean_length_HS=HS,
dplyrmean_length_HY=HY)%>%
mutate(Ratio_length = mean_length_HY/mean_length_HS)
Error in group_by(., ral, diet): objet 'tab_corr_length_cell_DGRP' introuvable
= left_join(tab_corr_length_cell_DGRP_mean_length,tab_corr_length_cell_DGRP_mean_area) tab_corr_length_cell_DGRP_mean
Error in left_join(tab_corr_length_cell_DGRP_mean_length, tab_corr_length_cell_DGRP_mean_area): objet 'tab_corr_length_cell_DGRP_mean_length' introuvable
=as.data.frame(tab_corr_length_cell_DGRP_mean) tab_corr_length_cell_DGRP_mean
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.data.frame' : objet 'tab_corr_length_cell_DGRP_mean' introuvable
levels(tab_corr_length_cell_DGRP_mean$ral) <- c("Ral 356", "Ral 362", "Ral 370", "Ral 502", "Ral 765", "Ral 853", "Ral 911" )
Error in levels(tab_corr_length_cell_DGRP_mean$ral) <- c("Ral 356", "Ral 362", : objet 'tab_corr_length_cell_DGRP_mean' introuvable
=
test with(tab_corr_length_cell_DGRP_mean,
cor.test(Ratio_area,Ratio_length,method="pearson"))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'data' lors de la s�lection d'une m�thode pour la fonction 'with' : objet 'tab_corr_length_cell_DGRP_mean' introuvable
= data.frame(Statistic = test$statistic,
tab_stat cor = test$estimate,
Pvalue = test$p.value)
Error in test$statistic: objet de type 'closure' non indiçable
#levels(tab_corr_length_cell_DGRP_mean$ral) <- c("Ral 356", "Ral 362", "Ral 370", "Ral 502", "Ral 765", "Ral 853", "Ral 911" )
=
Plot_Fig7S1B ggplot(tab_corr_length_cell_DGRP_mean,aes(x=Ratio_area,y=Ratio_length,label=ral))+
geom_point()+
scale_x_continuous(expression(paste("Ratio HY/HS (mean EC area)")),
limits=c(0.8,2.6),
breaks=c(seq(0.8,2.8,by=0.2)))+
scale_y_continuous("Ratio HY/HS (mean midgut length)",
limits=c(0.8,2.6),
breaks=c(seq(0.8,2.8,by=0.2)))+
geom_text_repel(data=tab_corr_length_cell_DGRP_mean,size=3)+
geom_smooth(method="lm")+
geom_text(data = tab_stat, mapping = aes(x = 1.7, y = 1.7, label = paste("cor=", format(cor, digits=2), "p=",format(Pvalue,digits=2))),size=3)+
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
panel.border = element_blank()),
(axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_blank(),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "horizontal",
legend.box = "horizontal",
legend.position = c(0.25,0.98),
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.4, "cm"),
legend.title = element_blank(),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=Smallfont),
legend.background = element_rect(fill=NA))+
guides(color=guide_legend(ncol=3))
Error in ggplot(tab_corr_length_cell_DGRP_mean, aes(x = Ratio_area, y = Ratio_length, : objet 'tab_corr_length_cell_DGRP_mean' introuvable
Plot_Fig7S1B
Error in eval(expr, envir, enclos): objet 'Plot_Fig7S1B' introuvable
##Export Figure 7S1
A reporter line for Foxo pathway activity, thor-lacZ, has increased intensity on HS (A, A’) compared to HY (B, B’). Quantification of mean pixel intensity of thor-lacZ stain (C). Complete graphical annotation can be found in manuscript figures
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/7- S2A.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig7S2A
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig7S2A)
Error in grid.draw(gob_imageFig7S2A): objet 'gob_imageFig7S2A' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/7- S2A1.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig7S2A1
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig7S2A1)
Error in grid.draw(gob_imageFig7S2A1): objet 'gob_imageFig7S2A1' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/7- S2B.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig7S2B
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig7S2B)
Error in grid.draw(gob_imageFig7S2B): objet 'gob_imageFig7S2B' introuvable
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/7- S2B1.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig7S2B1
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig7S2B1)
Error in grid.draw(gob_imageFig7S2B1): objet 'gob_imageFig7S2B1' introuvable
Quantification thor-lacZ
=
tab_ThorlacZ_rev "7 - S2C"]]%>%
d[[mutate_if(is.character,as.factor)%>%
mutate_if(is.integer,as.factor)%>%
::rename(ThorlacZ_int=Mean) dplyr
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_ThorlacZ_revgroup_by(Diet)%>%
summarise(Sample_size=n())
Error in group_by(., Diet): objet 'tab_ThorlacZ_rev' introuvable
###Stats
= fitme(log(ThorlacZ_int) ~ Diet + (1 | Repeat),data = tab_ThorlacZ_rev) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_ThorlacZ_rev' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(ThorlacZ_int) ~ Diet + (1 / Repeat),data = tab_ThorlacZ_rev)
Error in is.data.frame(data): objet 'tab_ThorlacZ_rev' introuvable
= fitme(log(ThorlacZ_int) ~ 1 + (1 | Repeat),data = tab_ThorlacZ_rev) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_ThorlacZ_rev' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("HS vs HY")),
tab_stat Rep = nlevels(tab_ThorlacZ_rev$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_ThorlacZ_rev' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Thor-lacZ intensity) ~ Diet + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
### Plot
=
Plot_Fig7S2Cggplot(tab_ThorlacZ_rev, aes(x = Diet, y = ThorlacZ_int))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 0.8) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = -3, label = paste("(",Sample_size,")",sep="")),size=3)+
geom_signif(annotation = formatC(paste("p=",tab_stat$Pvalue), digits = 2), textsize = 3, y_position = 32, xmin = 1, xmax = 2, tip_length = c(0.02, 0.02), vjust = -0.2)+
scale_fill_manual(limits=c("HS","HY"),
values=c("#FFB4B4","#C3E6FC"))+
scale_x_discrete("",
limits=c("HS","HY"),
labels=c("HS","HY"))+
scale_y_continuous(bquote(atop("Mean pixel intensity" ,~ italic (Thor-lacZ) ~ "(a.u.)")),
limits=c(-5,35),
breaks=seq(0,30,by=10))+
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
scale_color_manual(values = palette_mean) +
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black"),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text = element_text(size =Smallfont-2, colour = "black",face="italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_ThorlacZ_rev, aes(x = Diet, y = ThorlacZ_int)): objet 'tab_ThorlacZ_rev' introuvable
Plot_Fig7S2C
Error in eval(expr, envir, enclos): objet 'Plot_Fig7S2C' introuvable
Blocking TOR in ECs (5966GS> UAS-Tor-IR) inhibits diet induced midgut growth. For control we used flies of the same genotype but not exposed to RU486. Statistical analyses were performed by comparing interaction between diet and fly line.
=
tab_5966TOR_rev "7 - S2D"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
mutate(Total_Length_mm=Total.L/1000)%>%
::rename(Day_of_treatment=Day,
dplyrFemale_Line=Female.Line,
Male_Line=Male.Line)%>%
mutate(Treatment=fct_relevel(Treatment,"Ethanol","RU486"))
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_5966TOR_revgroup_by(Diet,Treatment)%>%
summarise(Sample_size=n())
Error in group_by(., Diet, Treatment): objet 'tab_5966TOR_rev' introuvable
###Stats
= fitme(log(Total_Length_mm) ~ Diet * Treatment + (1 | Repeat),data =tab_5966TOR_rev) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_5966TOR_rev' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log(Total_Length_mm) ~ Diet + Treatment + (1 / Repeat),data =tab_5966TOR_rev)
Error in is.data.frame(data): objet 'tab_5966TOR_rev' introuvable
= fitme(log(Total_Length_mm) ~ Diet + Treatment + (1 | Repeat),data =tab_5966TOR_rev) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_5966TOR_rev' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Variable = as.character(paste("Interaction ethanol vs interaction RU486")),
tab_stat Rep = nlevels(tab_5966TOR_rev$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=2)))
Error in levels(x): objet 'tab_5966TOR_rev' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison", "Replicates", "Chi2","Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>% add_header_above(c("log(Total_Length_mm) ~ Diet + Treatment + Diet : Treatment + (1 | Repeat)" = 8))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Replicates", "Chi2", "Intercept", : objet 'tab_stat' introuvable
=tab_stat tab_stat_rev_RU486
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Treatment="RU486" tab_stat_rev_RU486
Error in tab_stat_rev_RU486$Treatment = "RU486": objet 'tab_stat_rev_RU486' introuvable
$Treatment=as.factor(tab_stat_rev_RU486$Treatment) tab_stat_rev_RU486
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.factor' : objet 'tab_stat_rev_RU486' introuvable
### Plot
=
Plot_Fig7S2D ggplot(tab_5966TOR_rev, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 0.11) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 2.2, label = paste("(",Sample_size,")",sep="")),size=3)+
stat_summary(fun = mean, geom = "point", size = 2, shape = 18,aes(group=Repeat, colour = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
stat_summary(fun = mean, colour = "black", geom = "line", aes(group = Repeat)) +
scale_color_manual(values = palette_mean) +
facet_grid(.~ Treatment)+
scale_fill_manual(values=cbbHS_HStoHY)+
scale_x_discrete("",
limits=c("HS D0","HStoHY D7"),
labels=c("HS","HS to HY"))+
scale_y_continuous("Midgut length (mm)",
limits=c(2,7),
breaks=seq(2,7,by=1))+
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", face = "italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", face = "italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_5966TOR_rev, aes(x = Diet, y = Total_Length_mm)): objet 'tab_5966TOR_rev' introuvable
Plot_Fig7S2D
Error in eval(expr, envir, enclos): objet 'Plot_Fig7S2D' introuvable
Blocking autophagy in ECs reduces midgut resizing upon shrinkage (HY to HS for 7 days) using 5966GS> UAS-Atg8a-IR. For control we used flies of the same genotype but not exposed to RU486. Statistical analyses were performed by comparing interaction between diet and fly line. Complete statistical annotation can be found in manuscript’s figure.
=
tab_5966atg8a_rev "7 - S2E"]]%>%
d[[mutate_at(vars(!starts_with("Total")),as.factor)%>%
mutate(Total_Length_mm=Total.L/1000)%>%
::rename(Day_of_treatment=Day,
dplyrFemale_Line=Female.Line,
Male_Line=Male.Line)%>%
mutate(Treatment=fct_relevel(Treatment,"Ethanol","RU486"))
Error in UseMethod("tbl_vars"): pas de méthode pour 'tbl_vars' applicable pour un objet de classe "NULL"
=
Sample_size%>%
tab_5966atg8a_revgroup_by(Male_Line,Diet,Treatment)%>%
summarise(Sample_size=n())
Error in group_by(., Male_Line, Diet, Treatment): objet 'tab_5966atg8a_rev' introuvable
###Stats
= fitme(log10(Total_Length_mm) ~ Diet * Treatment + (1 | Repeat),data = tab_5966atg8a_rev) mod.gen
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_5966atg8a_rev' introuvable
shapiro.test(residuals(mod.gen))
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'object' lors de la s�lection d'une m�thode pour la fonction 'residuals' : objet 'mod.gen' introuvable
bptest(log10(Total_Length_mm) ~ Diet * Treatment + (1 / Repeat),data = tab_5966atg8a_rev)
Error in is.data.frame(data): objet 'tab_5966atg8a_rev' introuvable
= fitme(log10(Total_Length_mm) ~ Diet + Treatment + (1 | Repeat),data = tab_5966atg8a_rev) mod.gen1
Error in (function (control.HLfit, ranFix = NULL, HLmethod, predictor, : objet 'tab_5966atg8a_rev' introuvable
= anova(mod.gen, mod.gen1) test
Error in anova(mod.gen, mod.gen1): objet 'mod.gen' introuvable
test
function (pkg = ".", filter = NULL, stop_on_failure = FALSE,
export_all = TRUE, ...)
{
save_all()
pkg <- as.package(pkg)
if (!uses_testthat(pkg) && interactive()) {
cli::cli_alert_danger("No testing infrastructure found. Create it?")
if (utils::menu(c("Yes", "No")) == 1) {
usethis_use_testthat(pkg)
}
return(invisible())
}
load_all(pkg$path)
cli::cli_alert_info("Testing {.pkg {pkg$package}}")
withr::local_envvar(r_env_vars())
testthat::test_local(pkg$path, filter = filter, stop_on_failure = stop_on_failure,
...)
}
<bytecode: 0x000000009e53be20>
<environment: namespace:devtools>
= 2*(mod.gen$APHLs[["p_v"]]-mod.gen1$APHLs[["p_v"]]) Chi2_LRT_growth
Error in eval(expr, envir, enclos): objet 'mod.gen' introuvable
= data.frame(Comparison = as.character(paste("Interaction ethanol vs interaction RU486")),
tab_stat Male_Line = as.character(paste("Atg8a-IR")),
Rep = nlevels(tab_5966atg8a_rev$Repeat),
chi2_LR = round(as.numeric(test$basicLRT$chi2_LR), digits = 2),
intercept = format(mod.gen$fixef[1],digits=3),
estimate = format(mod.gen$fixef[2],digits=3),
df = as.numeric(test$basicLRT$df),
Pvalue = as.numeric(format(pchisq(Chi2_LRT_growth,df=1,lower.tail = F),digits=1,scientific=F)))
Error in levels(x): objet 'tab_5966atg8a_rev' introuvable
$sig = ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*",
tab_statifelse(tab_stat$Pvalue < 0.01 & tab_stat$Pvalue > 0.001, "**",
ifelse(tab_stat$Pvalue < 0.001, "***", "")))
Error in ifelse(tab_stat$Pvalue < 0.05 & tab_stat$Pvalue > 0.01, "*", : objet 'tab_stat' introuvable
%>%
tab_statkable(col.names = c("Comparison","Variable", "Replicates", "Chi2", "Intercept","Estimate","df" ,"p-value","Signif."),row.names = FALSE) %>%
add_header_above(c("log(Total_Length_mm) ~ Diet + Treatment + Diet : Treatment + (1 | Repeat)" = 9))%>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"), full_width = F)
Error in kable(., col.names = c("Comparison", "Variable", "Replicates", : objet 'tab_stat' introuvable
=tab_stat tab_stat_5966atg8a_rev
Error in eval(expr, envir, enclos): objet 'tab_stat' introuvable
$Treatment="RU486" tab_stat_5966atg8a_rev
Error in tab_stat_5966atg8a_rev$Treatment = "RU486": objet 'tab_stat_5966atg8a_rev' introuvable
$Treatment=as.factor(tab_stat_rev_RU486$Treatment) tab_stat_5966atg8a_rev
Error in h(simpleError(msg, call)): erreur d'�valuation de l'argument 'x' lors de la s�lection d'une m�thode pour la fonction 'as.factor' : objet 'tab_stat_rev_RU486' introuvable
### Plot
=
Plot_Fig7S2E ggplot(tab_5966atg8a_rev, aes(x = Diet, y = Total_Length_mm))+
geom_violin(aes(fill = Diet), draw_quantiles = c(0.25, 0.5, 0.75), colour = "black", size = 0.2,adjust = 0.8) +
geom_dotplot( colour = "black", fill = "white", binaxis = "y", stackdir = "center", binwidth = 0.11) +
geom_text(data = Sample_size, mapping = aes(x = Diet, y = 2.2, label = paste("(",Sample_size,")",sep="")),size=3)+
stat_summary(fun = mean, geom = "point", size = 2, shape = 18,aes(group=Repeat, colour = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 3, shape = 18, colour = "black", aes(group = Repeat)) +
stat_summary(fun = mean, geom = "point", size = 2, shape = 18, aes(group = Repeat, colour = Repeat)) +
stat_summary(fun = mean, colour = "black", geom = "line", aes(group = Repeat)) +
scale_color_manual(values = palette_mean) +
facet_grid(~ Treatment)+
scale_fill_manual(values=cbbHY_HYtoHS)+
scale_x_discrete("",
limits=c("HY","HYtoHS"),
labels=c("HY","HY to HS"))+
scale_y_continuous("Midgut length (mm)",
limits=c(2,8),
breaks=seq(2,8,by=1))+
theme(panel.grid.major.y = element_line(colour = grey(0.45), linetype = "dashed", size = 0.2),
panel.background = element_blank(),
axis.title.x = element_text(size=Smallfont,colour="black"),
axis.title.y = element_text(size=Smallfont,colour="black"),
axis.line.x = element_line(colour="black",size=0.75),
axis.line.y = element_line(colour="black",size=0.75),
axis.ticks.x = element_line(size = 0.75),
axis.ticks.y = element_line(size = 0.75),
axis.text.x = element_text(size=Smallfont,colour="black",angle=30,hjust=1),
axis.text.y = element_text(size=Smallfont,colour="black"),
plot.margin = unit(Margin, "cm"),
legend.direction = "vertical",
legend.box = "horizontal",
legend.position = "none",
legend.key.height = unit(0.4, "cm"),
legend.key.width= unit(0.6, "cm"),
legend.title = element_text(face="italic",size=Smallfont),
legend.key = element_rect(colour = 'white', fill = "white", linetype='dashed'),
legend.text = element_text(size=SuperSmallfont),
legend.background = element_rect(fill=NA),
strip.text.x = element_text(size = Smallfont, colour = "black", face = "italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.text.y = element_text(size = Smallfont, colour = "black", face = "italic", margin = margin(t = 2, r = 0, b = 2, l = 0)),
strip.background = element_rect(fill=NA, colour="black"),
strip.placement="outside")
Error in ggplot(tab_5966atg8a_rev, aes(x = Diet, y = Total_Length_mm)): objet 'tab_5966atg8a_rev' introuvable
Plot_Fig7S2E
Error in eval(expr, envir, enclos): objet 'Plot_Fig7S2E' introuvable
##Export Figure 7S2
Scheme depicting the regulation of midgut size in response to dietary changes. EC size, together with the balance between cell gain and cell loss, determine midgut size. Diet can influence these three parameters, thus influencing midgut size. Yeast promotes midgut growth, and sugar antagonizes it. Sugar inhibits translation and uncouples ISC proliferation from expression of stress-derived pro-mitotic signals, thus resulting in smaller guts.
= readImage("F:/Dropbox/Github/Bonfini_eLife_2021/data/7 - S3A.jpg") img
Error in transpose(y): object is NULL
= rasterGrob(img) gob_imageFig7S3A
Error in UseMethod("as.raster"): pas de méthode pour 'as.raster' applicable pour un objet de classe "list"
grid.draw(gob_imageFig7S3A)
Error in grid.draw(gob_imageFig7S3A): objet 'gob_imageFig7S3A' introuvable
##Export Figure 7S3
sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19043)
Matrix products: default
locale:
[1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252
[3] LC_MONETARY=French_France.1252 LC_NUMERIC=C
[5] LC_TIME=French_France.1252
attached base packages:
[1] parallel stats4 grid stats graphics grDevices utils
[8] datasets methods base
other attached packages:
[1] ggsignif_0.6.2 plotfunctions_1.4
[3] kableExtra_1.3.4 knitr_1.33
[5] ggplotify_0.1.0 coxme_2.2-16
[7] bdsmatrix_1.3-4 DESeq2_1.32.0
[9] SummarizedExperiment_1.22.0 Biobase_2.52.0
[11] MatrixGenerics_1.4.3 matrixStats_0.60.1
[13] GenomicRanges_1.44.0 GenomeInfoDb_1.28.0
[15] IRanges_2.26.0 S4Vectors_0.30.0
[17] BiocGenerics_0.38.0 ggh4x_0.2.0
[19] forcats_0.5.1 metR_0.11.0
[21] ggrepel_0.9.1 multcomp_1.4-17
[23] TH.data_1.0-10 mvtnorm_1.1-2
[25] gridGraphics_0.5-1 RColorBrewer_1.1-2
[27] gplots_3.1.1 EBImage_4.34.0
[29] fields_12.5 viridis_0.6.1
[31] viridisLite_0.4.0 spam_2.7-0
[33] dotCall64_1.0-1 lme4_1.1-27.1
[35] Matrix_1.3-3 spaMM_3.8.0
[37] data.table_1.14.0 phia_0.2-1
[39] tidyr_1.1.3 scales_1.1.1
[41] stringr_1.4.0 dplyr_1.0.7
[43] xlsx_0.6.5 xlsxjars_0.6.1
[45] rJava_1.0-5 doBy_4.6.10
[47] psych_2.1.6 nparLD_2.1
[49] agricolae_1.3-5 gridExtra_2.3
[51] plotrix_3.8-1 survival_3.2-11
[53] ggplot2_3.3.5 lmtest_0.9-38
[55] zoo_1.8-9 car_3.0-10
[57] carData_3.0-4 MASS_7.3-54
[59] lattice_0.20-44 reshape2_1.4.4
[61] devtools_2.4.2 usethis_2.0.1
[63] workflowr_1.6.2
loaded via a namespace (and not attached):
[1] bit64_4.0.5 DelayedArray_0.18.0 KEGGREST_1.32.0
[4] RCurl_1.98-1.3 generics_0.1.0 callr_3.7.0
[7] RSQLite_2.2.7 combinat_0.0-8 proxy_0.4-26
[10] bit_4.0.4 webshot_0.5.2 xml2_1.3.2
[13] lubridate_1.7.10 httpuv_1.6.1 assertthat_0.2.1
[16] xfun_0.24 hms_1.1.0 jquerylib_0.1.4
[19] evaluate_0.14 promises_1.2.0.1 fansi_0.5.0
[22] caTools_1.18.2 readxl_1.3.1 DBI_1.1.1
[25] geneplotter_1.70.0 tmvnsim_1.0-2 htmlwidgets_1.5.3
[28] purrr_0.3.4 ellipsis_0.3.2 backports_1.2.1
[31] annotate_1.70.0 ROI_1.0-0 vctrs_0.3.8
[34] remotes_2.4.1 abind_1.4-5 cachem_1.0.5
[37] withr_2.4.2 checkmate_2.0.0 prettyunits_1.1.1
[40] mnormt_2.0.2 svglite_2.0.0 cluster_2.1.2
[43] crayon_1.4.1 genefilter_1.74.0 pkgconfig_2.0.3
[46] slam_0.1-48 nlme_3.1-152 pkgload_1.2.2
[49] rlang_0.4.11 questionr_0.7.4 lifecycle_1.0.0
[52] miniUI_0.1.1.1 sandwich_3.0-1 registry_0.5-1
[55] cellranger_1.1.0 rprojroot_2.0.2 tiff_0.1-8
[58] boot_1.3-28 whisker_0.4 processx_3.5.2
[61] png_0.1-7 bitops_1.0-7 KernSmooth_2.23-20
[64] Biostrings_2.60.1 blob_1.2.1 jpeg_0.1-8.1
[67] klaR_0.6-15 memoise_2.0.0 magrittr_2.0.1
[70] plyr_1.8.6 zlibbioc_1.38.0 compiler_4.1.0
[73] cli_3.0.1 XVector_0.32.0 pbapply_1.4-3
[76] ps_1.6.0 tidyselect_1.1.1 stringi_1.6.2
[79] highr_0.9 yaml_2.2.1 locfit_1.5-9.4
[82] sass_0.4.0 tools_4.1.0 rio_0.5.27
[85] rstudioapi_0.13 foreign_0.8-81 git2r_0.28.0
[88] digest_0.6.27 shiny_1.6.0 Rcpp_1.0.7
[91] microbenchmark_1.4-7 broom_0.7.8 later_1.2.0
[94] httr_1.4.2 AnnotationDbi_1.54.1 Deriv_4.1.3
[97] colorspace_2.0-2 rvest_1.0.0 XML_3.99-0.6
[100] fs_1.5.0 splines_4.1.0 yulab.utils_0.0.2
[103] sessioninfo_1.1.1 systemfonts_1.0.2 xtable_1.8-4
[106] jsonlite_1.7.2 nloptr_1.2.2.2 AlgDesign_1.2.0
[109] testthat_3.1.0 R6_2.5.0 pillar_1.6.1
[112] htmltools_0.5.1.1 mime_0.11 glue_1.4.2
[115] fastmap_1.1.0 minqa_1.2.4 BiocParallel_1.26.2
[118] fftwtools_0.9-11 codetools_0.2-18 maps_3.3.0
[121] pkgbuild_1.2.0 utf8_1.2.1 bslib_0.2.5.1
[124] tibble_3.1.2 numDeriv_2016.8-1.1 curl_4.3.2
[127] gtools_3.9.2 zip_2.2.0 openxlsx_4.2.4
[130] rmarkdown_2.9 desc_1.4.0 curry_0.1.1
[133] munsell_0.5.0 GenomeInfoDbData_1.2.6 labelled_2.8.0
[136] haven_2.4.1 gtable_0.3.0