Ari H. answered 03/15/19
Ready to tutor almost anything - San Diego, south bay, & Rosarito.
I.e. is an abbreviation for the latin phrase "id est," which means "that is." Use i.e. when you mean "that is" or "in other words."
E.g. is an abbreviation for the latin phrase "exempli gratia," which means "for example." Use e.g. when you mean "for example."
You could write something like "Nano-boxes are used in medical science, e.g. cancer treatment, where the nano-boxes are used to inject drugs into cells, e.g. cancer cells."
In my rewrite, "e.g. cancer treatment" and "e.g. cancer cells" are separate, independent parenthetical expressions, which don't affect the flow of the sentence.
One could read it as "Nano-boxes are used in medical science, for example cancer treatment, where the nano-boxes are used to inject drugs into cells, for example cancer cells."
The understanding is that "cancer treatment" is an example of the medical science, and "cancer cells" is an example of cells.
If a reader doesn't care about the examples, it would be fair to read my rewrite as "Nano-boxes are used in medical science where the nano-boxes are used to inject drugs into cells."
Or, you could completely change the structure e.g. "Medical science uses nano-boxes to inject drugs into cells. For example, some cancer treatments use nano-boxes to inject drugs into cancer cells."