Hi, I would like to update the `medaka` module to ...
# modules
l
Hi, I would like to update the
medaka
module to the latest version, is anyone against it?
m
Please refrain from using
@channel
in a channel with more than 8000 people
😢 1
💯 2
Thanks
And no worries, it happens
l
Sorry
🙏 1
I was not sure who else is using the tool
What would be the proper way to ask actually?
m
I usually go with
@here
that only ping the people that are online
thanks 1
s
I think you just update any tool that isn't at its latest version
👍 1
this 1
l
Aha
Then I will go for it. Thanks!
m
but for me, I'd go and update the tool without asking
👍 1
you open a PR, and then if people are not happy, they don't do
nf-core modules update medaka
on their pipelines
🙌 2
l
Understood
m
Thanks
😊 1
p
I usually go with
@here
that only ping the people that are online
Generally no need to ping like this at all for big channels. Folks will see that there is a new message without that.
this 3
n
Depending on what you do with it, note that medaka@2.0.1 is much slower for consensus than <2.0
l
@Niklas Schandry Thank you. It’s good to know. Yes i will use
medaka_consensus
n
I did some poor-mans parallelization for 2.0.1 and it still takes >2x longer than the version i used previously did without any optimization
l
Ok. Then sounds like there is no need to update to the latest version🤔
n
this is what I am doing in case you dont want to figure out how to migrate to >=2.0 on your own https://github.com/nschan/genomeassembler/blob/assembler/modules/local/medaka/medaka_consensus/main.nf
❤️ 2
l
@Niklas Schandry I am having different issues with
medaka
versions earlier than 2.0 and those later than 2.0. Error message with medaka versions < 2.0:
Copy code
samtools view: error reading file "-"
samtools view: error closing "-": -5
Alignment pipeline failed.
Failed to run alignment of reads to draft.
Error message with medaka versions > 2.0:
Copy code
mktemp: No such file or directory
Failed to run alignment of reads to draft.
I can run
medala_consensus
versions > 2.0 locally, but I am unable to run versions < 2.0 locally. Do you have any suggestions?
n
Not really, but maybe @Chris can help?
c
Again, those don’t look like errors with medaka itself. In the context of a nextflow pipeline, you don’t really want to be running
medaka_consensus
but rather the contents of it possibly as separate processes. e.g. run alignment of reads to draft in one process, and then do a map-reduce of the inference part (
medaka inference
) in a seaprate process. This will give you a better debugging experience. the bash script was only ever meant as an example, not intended to routine use. For small genomes, parallelizing
medaka inference
shouldn’t be worthwhile. both medaka v1 and v2 process a 50Mbase contiguous region in around 10-12 minutes on my development machine (fragmented references might take longer)
l
Some updates. I am using the local
medaka
module from @Niklas Schandry and it works perfectly. Thank you both @Niklas Schandry @Chris 😄
The error message i mentioned above regarding
mktemp
was resolved by simply adding these two lines to the code:
Copy code
mkdir -p tmp
    export TMPDIR=./tmp
n
Thats nice. Chris mentioned to me that the slow-down compared to <2.0 seems to have been related to something specific with my data, so maybe for you this is actually faster than the old module.
l
Since my data is not very large, it doesn’t take much time to process. I tried a version earlier than 2.0, but I always encountered an error related to samtools