bioclipse.scripting

DNAfromPlainSequence.groovy

Source code

The source code may use or refer to content in a local workspace. This Bioclipse workspace used can be found on GitHub.

Bioclipse 2.6

dna = biojava.DNAfromPlainSequence("GCAT")
println dna
dna = biojava.DNAfromPlainSequence(
  "GCAT", "dummy sequence"
)
println dna

Bacting

To run this code, you first need to install Bacting (Groovy) or pyBacting (Python).

@Grab(group='io.github.egonw.bacting', module='managers-biojava', version='0.1.2')

workspaceRoot = "../ws"
biojava = new net.bioclipse.managers.BiojavaManager(workspaceRoot);

dna = biojava.DNAfromPlainSequence("GCAT")
println dna
dna = biojava.DNAfromPlainSequence(
  "GCAT", "dummy sequence"
)
println dna

Output

DNA seq1666425062102: 'gcat'
DNA dummy sequence: 'gcat'