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

Providing a precomputed PAF file for scaffolding #86

Closed
mrvollger opened this issue Nov 2, 2021 · 2 comments
Closed

Providing a precomputed PAF file for scaffolding #86

mrvollger opened this issue Nov 2, 2021 · 2 comments

Comments

@mrvollger
Copy link

Hi,

Is it possible to provide a precomputed PAF (or sam/bam if PAF doesn't work) file for scaffolding? Sorry if I missed this in the docs somewhere.

Thanks!
Mitchell

@malonge
Copy link
Owner

malonge commented Nov 2, 2021

Thanks for asking - yes that is possible! Though it’s a bit of a hack.

Make the output directory in advance (“ragtag_output” or whatever you set -o to). Then, copy or link the PAF file to the output directory. Just make sure that it is named ragtag.scaffold.asm.paf. Ragtag will see that the file is already there in the output directory and it will proceed with those alignments.

One can also use a delta file instead of a PAF file (ragtag.scaffold.asm.delta). If you provide a delta file, just add --aligner nucmer to the command so that ragtag knows to look for a delta file. Here's an example:

mkdir ragtag_output
cd ragtag_output
ln -s /path/to/alns.paf ragtag.scaffold.asm.paf
cd ..
ragtag.py scaffold ref.fa query.fa

Let me know if I can clarify anything.

Thanks
Mike

@mrvollger
Copy link
Author

This is perfect! Thanks.

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