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

How to join multiple vg files #2515

Open
RenzoTale88 opened this issue Oct 22, 2019 · 3 comments
Open

How to join multiple vg files #2515

RenzoTale88 opened this issue Oct 22, 2019 · 3 comments

Comments

@RenzoTale88
Copy link

Hello,
I've got a very simple question. I've got multiple vg files generated from single chromosome cactus alignments. I would like to combine them in a single vg archive so to process it separately.

Is it ok if I proceed as follow:

for n in {1..N}; do
    vg ids -s GRAPH/chr${n}.tmp.vg > GRAPH/chr${n}.final.vg
done

vg ids -j  $(for i in $(seq 1 n); do echo chr${i}.final.vg; done)

vg join $(for i in $(seq 1 n); do echo chr${i}.final.vg; done) > all.vg

Is it correct?

Thank you again for your help,
Andrea

@ekg
Copy link
Member

ekg commented Oct 22, 2019 via email

@RenzoTale88
Copy link
Author

Oh wow, that's even easier!
Thank you for the quick reply and support,

Andrea

@glennhickey
Copy link
Contributor

glennhickey commented Oct 22, 2019 via email

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

3 participants