-
Notifications
You must be signed in to change notification settings - Fork 290
Add VariantRecordSample
documentation
#1358
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
base: master
Are you sure you want to change the base?
Add VariantRecordSample
documentation
#1358
Conversation
Any ideas why FreeBSD is now failing? Nothing should be changed except docstrings and the |
Thanks for writing up some documentation. For no particular reason, the FreeBSD CI workflow installs both build and test prerequisites up front, while others install test prerequisites later between the build and test steps. This means in the FreeBSD CI environment the build occurs with HTSlib The FreeBSD-built So the bug here is that (at least on FreeBSD) building the Cython modules has preferred the HTSlib system headers rather than the ones within the pysam build tree. Which is annoying and hopefully easy enough to fix. Also something I didn't realise could be an issue here, so this is a useful heads-up… |
c86f9b5
to
235524d
Compare
Yeah, that'd explain it… This is fixed on master now, so if you rebase your documentation commits on that you can drop your FreeBSD CI patches from this PR. FYI no need to use conventional commit message annotations in this repository. We'll remove them and put brief meaningful commit message prose instead on merging, so you'd be saving the maintainers work by not using them. |
235524d
to
d1c7d90
Compare
VariantRecordSample
documentation
Great, thanks for the quick fix! Rebased, should be ready to merge. Regarding conventional commit messages, would you prefer I avoid them just in PR names, or all commits? |
pysam/libcbcf.pyx
Outdated
@@ -3460,7 +3485,7 @@ cdef class VariantRecordSample(object): | |||
|
|||
@property | |||
def allele_indices(self): | |||
"""allele indices for called genotype, if present. Otherwise None""" | |||
"""Allele indices (e.g. `(0, 1)`) for the called genotype (if present), otherwise `None`.""" |
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.
This (and similarly elsewhere) needs to be `` … `` to get <code> rather than a default role which is just italicised. And None appears a lot so just use plain text for that.
"""Allele indices (e.g. `(0, 1)`) for the called genotype (if present), otherwise `None`.""" | |
"""Allele indices (e.g. ``(0, 1)``) for the called genotype (if present), otherwise None.""" |
I've pushed the trivial parts of your api.rst changes (so that the Re conventional commit styling on messages: ideally on neither PR titles (we don't use the GitHub setting that (ab)uses PR titles and first comments to override the author's commit messages on merge, so it's just noise in the PRs web page) nor commit messages (we don't find them useful in the commit history). |
d1c7d90
to
dc5ca68
Compare
dc5ca68
to
b401f11
Compare
I've rebased and made the requested modifications. I'll let you know once I've updated my next two PRs to follow your suggestions. |
This is a documentation-only PR to introduce documentation for the
VariantRecordSample
class.