You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: link README API entries to source in genome.py and the class files
Wraps each method name in the Genes / Transcripts / Exons API sections
with an anchor to its definition in pyensembl/genome.py on the main
branch, and links every "Gene"/"Transcript"/"Exon" mention to the
corresponding class file. Also surfaces the new nearest_gene,
merged_gene_intervals, nearest_transcript, and biotype-aware
genes/transcripts/gene_ids/transcript_ids entries that landed in
recent releases.
Docs-only: no source or test changes, no version bump.
<dd>Returns a list of <ahref="https://github.com/openvax/pyensembl/blob/main/pyensembl/gene.py#L19">Gene</a> objects, optionally restricted to a particular contig,
<dd>Returns a list of <ahref="https://github.com/openvax/pyensembl/blob/main/pyensembl/gene.py#L19">Gene</a> objects overlapping a particular position on a contig,
178
182
optionally extend into a range with the end parameter and restrict to
179
183
forward or backward strand by passing strand='+' or strand='-'.</dd>
180
184
181
-
<dt>gene_by_id(gene_id)</dt>
182
-
<dd>Return a Gene object for given Ensembl gene ID (e.g. "ENSG00000068793").</dd>
<dd>Return a <ahref="https://github.com/openvax/pyensembl/blob/main/pyensembl/gene.py#L19">Gene</a> object for given Ensembl gene ID (e.g. "ENSG00000068793").</dd>
<dd>Get all the unique genes with the given name (there might be multiple
194
+
due to copies in the genome), return a list containing a <ahref="https://github.com/openvax/pyensembl/blob/main/pyensembl/gene.py#L19">Gene</a> object for each
191
195
distinct ID.</dd>
192
196
193
-
<dt>gene_by_protein_id(protein_id)</dt>
194
-
<dd>Find Gene associated with the given Ensembl protein ID (e.g. "ENSP00000350283")</dd>
<dd>Find <ahref="https://github.com/openvax/pyensembl/blob/main/pyensembl/gene.py#L19">Gene</a> associated with the given Ensembl protein ID (e.g. "ENSP00000350283")</dd>
<dd>Returns <code>(distance, <ahref="https://github.com/openvax/pyensembl/blob/main/pyensembl/gene.py#L19">Gene</a>)</code> for the gene whose locus is nearest to the
225
+
position (or position..end interval) on the given contig — even when no
226
+
gene overlaps. Returns <code>(inf, None)</code> when no candidates exist.</dd>
<dd>Returns a list of <ahref="https://github.com/openvax/pyensembl/blob/main/pyensembl/transcript.py#L24">Transcript</a> objects for all transcript entries in the
240
+
Ensembl database, optionally restricted to a particular contig, strand, or
241
+
<code>transcript_biotype</code>.</dd>
232
242
233
-
<dt>transcript_by_id(transcript_id)</dt>
234
-
<dd>Construct a Transcript object for given Ensembl transcript ID (e.g. "ENST00000369985")</dd>
<dd>Construct a <ahref="https://github.com/openvax/pyensembl/blob/main/pyensembl/transcript.py#L24">Transcript</a> object for given Ensembl transcript ID (e.g. "ENST00000369985")</dd>
235
245
236
-
<dt>transcripts_by_name(transcript_name)</dt>
237
-
<dd>Returns a list of Transcript objects for every transcript matching the given name.</dd>
<dd>Returns a list of <ahref="https://github.com/openvax/pyensembl/blob/main/pyensembl/transcript.py#L24">Transcript</a> objects for every transcript matching the given name.</dd>
<dd>Returns <code>(distance, <ahref="https://github.com/openvax/pyensembl/blob/main/pyensembl/transcript.py#L24">Transcript</a>)</code> to the closest transcript on the contig.
269
+
Returns <code>(inf, None)</code> when no candidates exist.</dd>
256
270
</dl>
257
271
258
272
## Exons
259
273
260
274
<dl>
261
-
<dt>exon_ids(contig=None, strand=None)</dt>
262
-
<dd>Returns a list of exons IDs in the annotation database, optionally restricted
<dd>Construct an <ahref="https://github.com/openvax/pyensembl/blob/main/pyensembl/exon.py#L17">Exon</a> object for given Ensembl exon ID (e.g. "ENSE00001209410")</dd>
0 commit comments