cruzdb.models contains the per-feature objects that give you attributes on each row of a table
This is used to create a Model with the appropriate methods from a UCSC table. It uses sqlalchemy reflection to do the lifiting.
Base object that wraps returned database rows
Methods
bed(*attrs, **kwargs) | return a bed formatted string of this feature |
bed12([score, rgb]) | return a bed12 (http://genome.ucsc.edu/FAQ/FAQformat.html#format1) |
blat([db, sequence, seq_type]) | make a request to the genome-browsers BLAT interface |
distance([other_or_start, end, features]) | check the distance between this an another interval |
downstream(distance) | return the (start, end) of the region before the geneStart |
features(other_start, other_end) | return e.g. “intron;exon” if the other_start, end overlap introns and |
globalize(position[, cdna]) | |
is_downstream_of(other) | return a boolean indicating whether this feature is downstream of |
is_upstream_of(other) | return a boolean indicating whether this feature is upstream of other |
localize(*positions, **kwargs) | convert global coordinate(s) to local taking |
ncbi_blast([db, megablast, sequence]) | perform an NCBI blast against the sequence of this feature |
promoter([up, down]) | Return a start, end tuple of positions for the promoter region of this |
sequence([per_exon]) | Return the sequence for this feature. |
tss([up, down]) | Return a start, end tuple of positions around the transcription-start |
upstream(distance) | return the (start, end) of the region before the geneStart |
return a bed12 (http://genome.ucsc.edu/FAQ/FAQformat.html#format1) representation of this interval
make a request to the genome-browsers BLAT interface sequence is one of None, “mrna”, “cds” returns a list of features that are hits to this sequence.
just the parts of the exons that are translated
check the distance between this an another interval Parameters ———-
return e.g. “intron;exon” if the other_start, end overlap introns and exons
return a list of features for the gene features of this object. This would include exons, introns, utrs, etc.
return a boolean indicating whether this feature is downstream of other taking the strand of other into account
return a boolean indicating whether this feature is upstream of other taking the strand of other into account
convert global coordinate(s) to local taking introns into account and cds/tx-Start depending on cdna=True kwarg
perform an NCBI blast against the sequence of this feature
Return a start, end tuple of positions for the promoter region of this gene
Parameters : | up : int
down : int
|
---|
Return the sequence for this feature. if per-exon is True, return an array of exon sequences This sequence is never reverse complemented
Return a start, end tuple of positions around the transcription-start site
Parameters : | up : int
down : int
|
---|
Interval class for convenience
Parameters : | start : int end : int chrom : str name : str
|
---|
Methods
distance([other_or_start, end, features]) | check the distance between this an another interval |
is_upstream_of(other) | check if this is upstream of the other interval taking the strand of |
overlaps(other) | check for overlap with the other interval |
check the distance between this an another interval Parameters ———-