This piece of code replaces all inputs of labs with your own:
data.raw.lab["lab"].inputs ={
"science-pack-1",
"science-pack-2",
"science-pack-3",
"military-science-pack",
"production-science-pack",
"high-tech-science-pack",
"space-science-pack",
"more-science-pack-1",}
But if another mod wants to add its own science pack your mod overwrites it.
It also doesn't support labs from other mods.
You should change it to this:
for i,p in pairs(data.raw.lab) do
table.insert(p.inputs, "more-science-pack-1")
end