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

feat: Generic record #442

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

feat: Generic record #442

wants to merge 4 commits into from

Conversation

lskatz
Copy link

@lskatz lskatz commented Jul 12, 2021

Per issue #440 this is a generic record. It has a way to read/write fasta/fastq. I also think it could be expanded.

@lskatz
Copy link
Author

lskatz commented Jul 14, 2021

I ran cargo fmt which I guess fixes this error?

@dcroote
Copy link
Contributor

dcroote commented Jul 14, 2021

Yes cargo fmt enables the formatting check to pass. See the Contributing section of the README for how pre-commit can be used to format locally and avoid the CI failure.

The other failing test appears to be complaining about the PR title. Perhaps "feat: Generic record" ?

@lskatz lskatz changed the title Generic record feat: Generic record Jul 14, 2021
@lskatz
Copy link
Author

lskatz commented Jul 14, 2021

Ok thanks! I ran pre-commit but it doesn't seem to have made any other changes. I also edited the PR to have feat: . Should I do anything else?

@lskatz
Copy link
Author

lskatz commented Jul 15, 2021

The last failing test cargo tarpaulin is also a failure with origin/master when I run it locally, and so I'm not really sure what to do about that. Any advice?

@lskatz
Copy link
Author

lskatz commented Jul 19, 2021

Hi @dcroote I'm not really clear on the error

@natir
Copy link
Contributor

natir commented Jul 20, 2021

@lskatz I can't reproduce CI failed maybe it's just a bug in compilation process I rerun the test.

@lskatz
Copy link
Author

lskatz commented Jul 20, 2021

Thank you for looking at it!

@lskatz
Copy link
Author

lskatz commented Jul 21, 2021

Looks like it passed?

@tedil
Copy link
Member

tedil commented Jul 22, 2021

There's also #433 about unifying FASTA/FASTQ to FASTX, which triggered a lot of discussion on how best to implement it to avoid overhead and ultimately tried different approaches (have both records implement a common Record trait, have a wrapping enum EitherRecord. Perhaps that would already cover your use-cases?

@lskatz
Copy link
Author

lskatz commented Jul 22, 2021

@tedil amazing! Yes. I think there is a lot more thought though into fastx than what I did.

@lskatz
Copy link
Author

lskatz commented Jul 22, 2021

But I guess it's not implemented yet? And this might be an easier patch in the meantime?

@anuradhawick
Copy link

Hi, are there any updates on this?

I was also wondering if Record could be a trait so id() and seq() could be called on any record (fasta, fastq). 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

Successfully merging this pull request may close these issues.

None yet

5 participants