https://github.com/LoyolaChicagoCode/hiv-biojava-scala
Raw File
Tip revision: 5c7fa69ea07dc3dc0f7aae4e87ea138b51e10eeb authored by George K. Thiruvathukal on 05 October 2015, 20:40:32 UTC
re-add wget for pseudomonas data
Tip revision: 5c7fa69
TryBioExample.sc
/**
 * Created by gkt on 1/19/14.
 */

import java.io.File

/* Get current directory (just to see how IntelliJ sets it. */

val current = new java.io.File( "." ).getCanonicalPath()
println("Working directory is " + current)
/* List contents of the data directory. */
val directory = new File("./data").listFiles()

/* Select only the Genbank files */
val selectedFiles = directory.filter(_.getName().endsWith(".gb"))

/* Get as Array[String], needed by our current main() */
val selectedFileNames = selectedFiles.map( a => a.getCanonicalPath())

/* Use the first 5 files as input. (Drop take(5) if you want to process entire data set. */
edu.luc.bioi.hiv.TryBio.main(selectedFileNames.take(5))

back to top