-
Notifications
You must be signed in to change notification settings - Fork 83
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
fix: fixed fn to_hashmap so it can avoid an error when @CO tag appeared #363
Conversation
It could also be convenient to add a |
Added the documentations and |
Also I think the
The function body is only a few lines. Do you want to have a go? |
Thank you for revising it! |
Isn't the header is already split on newlines in the |
Unfortunately, no. When I generated a |
You are correct. Only pushed records are appended to the |
So you need to run rustfmt and apparently the PR title needs to be formatted for the release tool. The clippy warnings appear to be for other code. |
Pull Request Test Coverage Report for Build 2910319725
💛 - Coveralls |
I added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Not sure if the tbx::mod
change is within the scope of this PR, but it does please clippy.
Now to find someone who can actually merge it 😄 @rust-bio/mergers ?
This is a breaking change because existing users of |
You never got comments in the hashmap. It used to panic when a comment was present. |
Ah right, the regex requires the colon. Cool. |
When a header contains
@CO
line(s), it may issue an error at the line 88 of 4d99455 (let cap = TAG_RE.captures(part).unwrap();
) because@CO
line may not have values of "([A-Za-z][A-Za-z0-9]):([ -~]+)".E.g.
ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/data_collections/illumina_platinum_pedigree/data/CEU/NA12878/alignment/NA12878.alt_bwamem_GRCh38DH.20150706.CEU.illumina_platinum_ped.cram
Header lines:
Error: