Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why not use Nucmer 4? #93

Closed
Yutang-ETH opened this issue Dec 31, 2021 · 8 comments
Closed

Why not use Nucmer 4? #93

Yutang-ETH opened this issue Dec 31, 2021 · 8 comments

Comments

@Yutang-ETH
Copy link

Hi Malonge,

Happy new year. I just installed RagTag via conda and I found the version of installed Nucmer is 3 not 4. Version 4 provides multi-thread mode, would you consider version 4 in future release? Or is there a specific reason that you use version 3?

Best wishes,
Yutang

@malonge
Copy link
Owner

malonge commented Dec 31, 2021

Hi Yutang,

I haven't tried this before, but I think it should work if you just install Nucmer 4 yourself and then point to the executable with --aligner. And then you can pass whatever parameters you want (except for -p) via --nucmer-params.

Let me know if that works.

@Yutang-ETH
Copy link
Author

Hi Malonge,

Thank you very much for your reply. Yes, exactly, that's what I would like to try. I will try minimap2 first and then try Nucmer 4 later. If I make any progress, I will let you know here.

Best wishes,
Yutang

@Yutang-ETH
Copy link
Author

Hi Malonge,

Just to let you know, I installed mummer 4 in the ragtag conda environment and then added --nucmer-params '--maxmatch -t 30 -l 100 -c 500', it worked.

Thank you very much,
Yutang

@malonge malonge pinned this issue Jan 9, 2022
@Yutang-ETH
Copy link
Author

Hi Malonge,

Just to let you know, when I removed --maxmatch from --nucmer-params, it didn't work anymore.

(ragtag) bash-4.2$ ./RAGTAG_h2.sh
usage: ragtag.py patch <target.fa> <query.fa>
ragtag_patch.py: error: argument --nucmer-params: expected one argument

Here's my command line:
ragtag.py patch target.fa query.fa -o ragtag_flye_h2_miop10 -u --aligner nucmer --nucmer-params '-t 30 -l 100 -c 500'

What could be wrong?

Best wishes,
Yutang

@malonge
Copy link
Owner

malonge commented Jan 13, 2022

Do you get the same error using Nucmer 3? If so, please open up a separate issue.

@Yutang-ETH
Copy link
Author

Thank you very much for your reply. No problem for Nucmer 3.

@malonge
Copy link
Owner

malonge commented Jan 13, 2022

idk iit seems like a problem with the argument parsing Maybe try --nucmer-params="-t 30 -l 100 -c 500". Or variations on that.

@Yutang-ETH
Copy link
Author

Some updates:

I used external Nucmer 4 (in a different conda environment) with multi-thread option to do alignment first and then copy the delta file to the folder where I am doing RagTag to run RagTag command. The delta file must have this name: ragtag.scaffold.asm.delta
Nucmer 4 command I used is following:
nucmer --maxmatch -t 50 -l 100 -c 500 --delta=ragtag.scaffold.asm.delta reference.fasta asm.fasta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants