From aef43a0060e14286dfa9bd573adee30661702009 Mon Sep 17 00:00:00 2001 From: NishiPhalke Date: Tue, 2 Nov 2021 14:20:16 -0400 Subject: [PATCH] added geo input file type --- build.gradle.kts | 2 +- src/main/kotlin/krews/file/GeoInputFile.kt | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/main/kotlin/krews/file/GeoInputFile.kt diff --git a/build.gradle.kts b/build.gradle.kts index 1610aa7..f3874e5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { } group = "io.krews" -version = "0.12.0" +version = "0.12.1" repositories { maven { setUrl("http://dl.bintray.com/kotlin/kotlin-eap") } diff --git a/src/main/kotlin/krews/file/GeoInputFile.kt b/src/main/kotlin/krews/file/GeoInputFile.kt new file mode 100644 index 0000000..cec63f8 --- /dev/null +++ b/src/main/kotlin/krews/file/GeoInputFile.kt @@ -0,0 +1,7 @@ +package krews.file + +data class GeoInputFile(val sraaccession: String, override val path: String, val dockerimage: String? = "ncbi/sra-tools") : InputFile() { + override fun downloadFileImage() = "$dockerimage" + override fun downloadFileCommand(containerBaseDir: String) = "fasterq-dump --outfile $containerBaseDir/$path -e 8 -p $sraaccession" + +} \ No newline at end of file