-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Rope bwt chr index #282
Rope bwt chr index #282
Conversation
…ull chromosome indexer.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #282 +/- ##
==========================================
+ Coverage 80.46% 80.63% +0.17%
==========================================
Files 101 102 +1
Lines 7514 7592 +78
Branches 1230 1233 +3
==========================================
+ Hits 6046 6122 +76
- Misses 992 995 +3
+ Partials 476 475 -1 ☔ View full report in Codecov by Sentry. |
else { | ||
Pair("-n", "phgv2-ropebwt-conda") | ||
} | ||
//time ../ropebwt3/ropebwt3 build -t24 -i phg_ASMs_input.fmr -bo phg_ASMs.fmr /workdir/zrm22/phgv2/ropeBWT/fullASMTests/ASMs/A188 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if you want your file paths in here
*/ | ||
fun runBuildStep(inputFasta:String, indexFilePrefix:String, numThreads: Int, condaEnvPrefix:String) { | ||
//"conda","run","-p","phgv2-conda" | ||
val prefixArg = if(condaEnvPrefix.isNotBlank()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be refactored? It looks like you are repeating this if/else block several times throughout the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example:
// example helper function
fun getPrefixArg(condaEnvPrefix: String): Pair<String, String> {
if (condaEnvPrefix.isNotBlank()) {
Pair("-p", condaEnvPrefix)
} else {
Pair("-n", "phgv2-ropebwt-conda")
}
}
// deploy into other functions
val prefixArg = getPrefixArg(condaEnvPrefix)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep makes sense, I updated.
val condaEnvPrefix by option (help = "Prefix for the conda environment to use. If provided, this should be the full path to the conda environment.") | ||
.default("") | ||
|
||
override fun run() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to call the parameter logging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I thought I had put that in there but missed it. It's in there now.
Description
Full Chromosome BWT3 indexing
Type of change
What type of changes does your code introduce? Put an
x
in boxes that apply.CHANGE
(fix or feature that would cause existing functionality to not work as expected)FEATURE
(non-breaking change which adds functionality)BUGFIX
(non-breaking change which fixes an issue)ENHANCEMENT
(non-breaking change which improves existing functionality)NONE
(if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)Checklist:
Changelog entry
Please add a one-line changelog entry below. This will be copied to the changelog file during the release process.