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

Allow loading GFA files with mixed Segment/Link lines #40

Closed
AndreaGuarracino opened this issue Jun 2, 2022 · 2 comments
Closed

Allow loading GFA files with mixed Segment/Link lines #40

AndreaGuarracino opened this issue Jun 2, 2022 · 2 comments
Milestone

Comments

@AndreaGuarracino
Copy link

Hi,

I have multiple GFA files where the S/L lines are mixed. For example:

H	VN:Z:1.0
S	1	GCGGTTCAGCAATTTCAGG
L	1	+	2	+	0M
L	1	+	3	+	0M
S	2	G
L	2	+	4	+	0M
S	3	C
L	3	+	4	+	0M
...

In order to open them with the new power-upped Bandage, I have to put all S lines first, then L lines, and then P lines. Else, I get this kind of error:

image

Is it possible to avoid such a constraint? The old Bandage can read S/L-mixed GFA files.

@AndreaGuarracino AndreaGuarracino changed the title Allow loading GFA files with GFA file with mixed Segment/Link lines Allow loading GFA files with mixed Segment/Link lines Jun 2, 2022
@asl
Copy link
Owner

asl commented Jun 2, 2022

This will be clarified in the next GFA spec. Essentially here you're referring to the entity (segment) that was not defined yet. We will provide some kind of workaround for these issues. For now you'd just sort the file using the record type as a key, so all S would come before L

@asl asl added this to the 0.9.5.1 milestone Jun 2, 2022
@asl asl closed this as completed in 24e8571 Jun 2, 2022
@asl
Copy link
Owner

asl commented Jun 2, 2022

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