-
Notifications
You must be signed in to change notification settings - Fork 12
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/add doc string #282
Fix/add doc string #282
Conversation
Codecov Report
@@ Coverage Diff @@
## master #282 +/- ##
==========================================
- Coverage 88.86% 88.84% -0.02%
==========================================
Files 79 79
Lines 6772 6778 +6
Branches 475 475
==========================================
+ Hits 6018 6022 +4
- Misses 279 281 +2
Partials 475 475
|
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.
Thank you for adding the docstrings, @niyarin!
Adding documentation across the entire library must be a tough task. 🙏
Overall, I find it good, but I thought there's room for improvement in a few areas.
I believe it's a great opportunity to reduce the psychological barriers to using the library for new users 🉐
- Enclose symbols like arguments in backticks ` `.
- In cases like the following, provide more detailed information on return values:
- When the implementation is not immediately clear.
- When it's not intuitive from the namespace and function names.
- When it might require referring to tests.
- Address some grammatical issues, including
- punctuation
- capitalization
- third-person singular '-s'
- missing 'a' or 'the'
db66605
to
b762806
Compare
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.
LGTM 👍 Thanks!
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.
LGTM except the minor typos. After fixing that, could you squash the commits and rebase to master?
src/cljam/io/bam_index/common.clj
Outdated
(def ^:const linear-index-shift 14) | ||
(def ^:const linear-index-depth 5) | ||
(def ^:const linear-index-shift | ||
"Minimum shift size for searching binnning." |
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.
"Minimum shift size for searching binnning." | |
"Minimum shift size for searching binning." |
src/cljam/io/fasta/writer.clj
Outdated
(defn writer [f {:keys [cols create-index?] | ||
:or {cols 80 create-index? true}}] | ||
(defn writer | ||
"Returns an open `cljam.io.fasta.writer.FATAWriter` of `f`. |
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.
"Returns an open `cljam.io.fasta.writer.FATAWriter` of `f`. | |
"Returns an open `cljam.io.fasta.writer.FASTAWriter` of `f`. |
src/cljam/io/sam/util/quality.clj
Outdated
|
||
(defn phred-bytes->fastq | ||
"Convertsphred bytes to fastq quality string." |
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.
"Convertsphred bytes to fastq quality string." | |
"Converts phred bytes to fastq quality string." |
src/cljam/io/vcf/reader.clj
Outdated
@@ -119,6 +120,7 @@ | |||
v)])) | |||
|
|||
(defn load-meta-info | |||
"Reads from rdr and parases them as meta-info." |
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.
"Reads from rdr and parases them as meta-info." | |
"Reads from `rdr` and parses them as meta-info." |
src/cljam/io/vcf/reader.clj
Outdated
[line] | ||
(cstr/split (subs line 1) #"\t")) | ||
|
||
(defn load-header | ||
"Reads from `rdr` and parases them as header." |
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.
"Reads from `rdr` and parases them as header." | |
"Reads from `rdr` and parses them as header." |
src/cljam/util/chromosome.clj
Outdated
@@ -4,6 +4,8 @@ | |||
[proton.core :as proton])) | |||
|
|||
(defn normalize-name | |||
"Converts characters ',' or '.' in chromesome name to '_' |
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.
"Converts characters ',' or '.' in chromesome name to '_' | |
"Converts characters ',' or '.' in chromosome name to '_' |
b762806
to
38b08c3
Compare
38b08c3
to
b0c47bc
Compare
Thank you for reviewing. |
No description provided.