I am writing a program for data analysis as a part of a bigger bioinformatics pipeline. Source code of the program is my own and I licensed it under Apache 2.0 license. However, I need to include two GPL 2.0 licensed files: source codes for methods in R language: this one and this one. These are two mathematical methods which I use in my tool.
Can I set Apache 2.0 for my whole project? It seems most reasonable for me that my bioinformatics method is licensed as I want it and, if that would be necessary, I can add a copy of GPL 2.0 into the directory alongside the two files I use.
Actually, the matter is a little more complicated: the
optim.c file is very slightly modified by me to suit my computations. Do I have to take any more actions besides adding a statments in the source code: "this file has been modified by me, for the original version see..."?