-1

So I have a gui that I'm working on (http://pastebin.com/0fPLHyHw) that I want to manipulate a program in Python that I don't quite understand (http://pastebin.com/uruxJXLx). But basically what I want to have the GUI choose the input file (e.g. a .fasta or .fa file, generally what comes out as a sequenced genome), then choose which of the DNA motifs that I want it to run the program through that file on(from the indexes of the Python program), and then run the program through that file searching for that motif and display the output that would be shown through running the Python program normally.

The thing is, I don't know an ounce of Python, so I really have NO idea how to integrate this Python program into java.

But basically I have no idea how to integrate the other files into this Java program..

Any help?

  • Have you considered doing this with [Biojava RestrictionEnzyme](http://www.biojava.org/docs/api1.8/org/biojava/bio/molbio/RestrictionEnzyme.html)? – Paulo Almeida Jul 30 '13 at 21:29

1 Answers1

2

Can you not execute your python program like you were executing it via command-line (with the parameters chosen via the GUI) from your Java program? It doesn't sound like you need any runtime interaction between the programs.

Robadob
  • 5,159
  • 2
  • 20
  • 31