From 82a42503b46137c84c20f61565496a6056e5244d Mon Sep 17 00:00:00 2001 From: Blaise Li <blaise.li__git@nsup.org> Date: Thu, 30 Jul 2020 19:36:46 +0200 Subject: [PATCH] Transmit __doc__. --- libriboseq/libriboseq.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libriboseq/libriboseq.pyx b/libriboseq/libriboseq.pyx index db405d6..9b94ab2 100755 --- a/libriboseq/libriboseq.pyx +++ b/libriboseq/libriboseq.pyx @@ -216,9 +216,11 @@ def make_fq_filter(str rpf_type, object isgood): """Reads of length 29 are called RPF29.""" (_, seq, _) = fq_triplet return cread_is_29nt(len(seq)) + setattr(fq_filter, "__doc__", RPF2IS_FUN[rpf_type].__doc__) else: is_fun = RPF2IS_FUN[rpf_type] def fq_filter(fq_triplet): (_, seq, _) = fq_triplet return is_fun(isgood, seq, len(seq)) + setattr(fq_filter, "__doc__", is_fun.__doc__) return fq_filter -- GitLab