Skip to content

Commit d703396

Browse files
authored
Update README.md
1 parent 103a90c commit d703396

File tree

1 file changed

+55
-47
lines changed

1 file changed

+55
-47
lines changed

README.md

Lines changed: 55 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -91,101 +91,109 @@ these genomic elements (contig, start position, end position, strand).
9191

9292
## Genes
9393

94-
`genes(contig=None, strand=None)`
95-
: returns list of Gene objects, optionally restricted to a particular contig
96-
or strand.
94+
<dl>
95+
<dt>genes(contig=None, strand=None)</dt>
96+
<dd>Returns a list of Gene objects, optionally restricted to a particular contig
97+
or strand.</dd>
9798

98-
`genes_at_locus(contig, position, end=None, strand=None)`
99-
: returns list of Gene objects overlapping a particular position on a contig,
100-
optionally extend into a range with the `end` parameter and restrict to
101-
forward or backward strand by passing `strand='+'` or `strand='-'`.
99+
<dt>genes_at_locus(contig, position, end=None, strand=None)</dt>
100+
<dd>Returns a list of Gene objects overlapping a particular position on a contig,
101+
optionally extend into a range with the end parameter and restrict to
102+
forward or backward strand by passing strand='+' or strand='-'.</dd>
102103

103-
`gene_by_id(gene_id)`
104-
: return Gene object for given Ensembl gene ID (e.g. "ENSG00000068793")
104+
<dt>gene_by_id(gene_id)</dt>
105+
<dd>Return a Gene object for given Ensembl gene ID (e.g. "ENSG00000068793").</dd>
105106

106-
`gene_names(contig=None, strand=None)`
107-
: returns all gene names in the annotation database, optionally restricted
108-
to a particular contig or strand.
107+
<dt>gene_names(contig=None, strand=None)</dt>
108+
<dd>Returns all gene names in the annotation database, optionally restricted
109+
to a particular contig or strand.</dd>
109110

110-
`genes_by_name(gene_name)`
111-
: get all the unqiue genes with the given name (there might be multiple
111+
<dt>genes_by_name(gene_name)</dt>
112+
<dd>Get all the unqiue genes with the given name (there might be multiple
112113
due to copies in the genome), return a list containing a Gene object for each
113-
distinct ID.
114+
distinct ID.</dd>
114115

115-
`gene_by_protein_id(protein_id)`
116-
: find Gene associated with the given Ensembl protein ID (e.g. "ENSP00000350283")
116+
<dt>gene_by_protein_id(protein_id)</dt>
117+
<dd>Find Gene associated with the given Ensembl protein ID (e.g. "ENSP00000350283")</dd>
117118

118-
`gene_names_at_locus(contig, position, end=None, strand=None)`
119-
: names of genes overlapping with the given locus
120-
(returns a list to account for overlapping genes)
119+
<dt>gene_names_at_locus(contig, position, end=None, strand=None)
120+
</dt>
121+
<dd>Names of genes overlapping with the given locus, optionally restricted by strand.
122+
(returns a list to account for overlapping genes)</dd>
121123

122-
`gene_name_of_gene_id(gene_id)`
123-
: name of gene with given ID
124+
<dt>gene_name_of_gene_id(gene_id)
125+
</dt>
126+
<dd>Returns name of gene with given genen ID.</dd>
124127

125-
`gene_name_of_transcript_id(transcript_id)`
126-
: name of gene associated with given transcript ID
128+
<dt>gene_name_of_transcript_id(transcript_id)
129+
</dt><dd>Returns name of gene associated with given transcript ID.</dd>
127130

128-
`gene_name_of_transcript_name(transcript_name)`
129-
: name of gene associated with given transcript name
131+
<dt>gene_name_of_transcript_name(transcript_name)
132+
</dt>
133+
<dd>Returns name of gene associated with given transcript name.</dd>
130134

131-
`gene_name_of_exon_id(exon_id)`
132-
: name of gene associated with given exon ID
135+
<dt>gene_name_of_exon_id(exon_id)
136+
</dt><dd>Returns name of gene associated with given exon ID.</dd>
133137

134-
`gene_ids(contig=None, strand=None)`
135-
: all gene IDs in the annotation database
138+
<dt>gene_ids(contig=None, strand=None)
139+
</dt>
140+
<dd>Return all gene IDs in the annotation database, optionally restricted by
141+
chromosome name or strand.</dd>
136142

137-
`gene_ids_of_gene_name(gene_name)`
138-
: all Ensembl gene IDs with the given name
143+
<dt>gene_ids_of_gene_name(gene_name)
144+
</dt>
145+
<dd>Returns all Ensembl gene IDs with the given name.</dd>
139146

147+
</dl>
140148

141149
## Transcripts
142150

143151
<dl>
144-
<dt>`transcripts(contig=None, strand=None)`</dt>
152+
<dt>transcripts(contig=None, strand=None)</dt>
145153
<dd>Returns a list of Transcript objects for all transcript entries in the
146154
Ensembl database, optionally restricted to a particular contig or strand.</dd>
147155

148-
<dt>`transcript_by_id(transcript_id)`</dt>
156+
<dt>transcript_by_id(transcript_id)</dt>
149157
<dd>Construct a Transcript object for given Ensembl transcript ID (e.g. "ENST00000369985")</dd>
150158

151-
<dt>`transcripts_by_name(transcript_name)`</dt>
159+
<dt>transcripts_by_name(transcript_name)</dt>
152160
<dd>Returns a list of Transcript objects for every transcript matching the given name.</dd>
153161

154-
<dt>`transcript_names(contig=None, strand=None)`</dt>
162+
<dt>transcript_names(contig=None, strand=None)</dt>
155163
<dd>Returns all transcript names in the annotation database.</dd>
156164

157-
<dt>`transcript_ids(contig=None, strand=None)`</dt>
165+
<dt>transcript_ids(contig=None, strand=None)</dt>
158166
<dd>Returns all transcript IDs in the annotation database.</dd>
159167

160-
<dt>`transcript_ids_of_gene_id(gene_id)`</dt>
168+
<dt>transcript_ids_of_gene_id(gene_id)</dt>
161169
<dd>Return IDs of all transcripts associated with given gene ID.</dd>
162170

163-
<dt>`transcript_ids_of_gene_name(gene_name)`</dt>
171+
<dt>transcript_ids_of_gene_name(gene_name)</dt>
164172
<dd>Return IDs of all transcripts associated with given gene name.</dd>
165173

166-
<dt>`transcript_ids_of_transcript_name(transcript_name)`</dt>
174+
<dt>transcript_ids_of_transcript_name(transcript_name)</dt>
167175
<dd>Find all Ensembl transcript IDs with the given name.</dd>
168176

169-
<dt>`transcript_ids_of_exon_id(exon_id)`</dt>
177+
<dt>transcript_ids_of_exon_id(exon_id)</dt>
170178
<dd>Return IDs of all transcripts associatd with given exon ID.</dd>
171-
</d>
179+
</dl>
172180

173181
## Exons
174182

175183
<dl>
176-
<dt>`exon_ids(contig=None, strand=None)`</dt>
184+
<dt>exon_ids(contig=None, strand=None)</dt>
177185
<dd>Returns a list of exons IDs in the annotation database, optionally restricted
178186
by the given chromosome and strand.</dd>
179187

180-
<dt>`exon_ids_of_gene_id(gene_id)`</dt>
188+
<dt>exon_ids_of_gene_id(gene_id)</dt>
181189
<dd>Returns a list of exon IDs associated with a given gene ID.</dd>
182190

183-
<dt>`exon_ids_of_gene_name(gene_name)`</dt>
191+
<dt>exon_ids_of_gene_name(gene_name)</dt>
184192
<dd>Returns a list of exon IDs associated with a given gene name.</dd>
185193

186-
<dt>`exon_ids_of_transcript_id(transcript_id)`</dt>
194+
<dt>exon_ids_of_transcript_id(transcript_id)</dt>
187195
<dd>Returns a list of exon IDs associated with a given transcript ID.</dd>
188196

189-
<dt>`exon_ids_of_transcript_name(transcript_name)`</dt>
197+
<dt>exon_ids_of_transcript_name(transcript_name)</dt>
190198
<dd>Returns a list of exon IDs associated with a given transcript name.</dd>
191199
</dl>

0 commit comments

Comments
 (0)