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 access read group info from Record? #422

Open
Crispy13 opened this issue Feb 23, 2024 · 2 comments
Open

How to access read group info from Record? #422

Crispy13 opened this issue Feb 23, 2024 · 2 comments

Comments

@Crispy13
Copy link

In java, I can access that info like rec.getReadGroup().getFlowOrder().

How could I do that in rust-htslib?

@ghuls
Copy link
Contributor

ghuls commented Mar 3, 2024

if let Ok(Aux::String(rg)) = record.aux(b"RG") {
    println!("{}", &rg);
}

@Crispy13
Copy link
Author

Crispy13 commented Mar 7, 2024

But FlowOrder, FO is in the header. Can I access it from Record?

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