pub struct Transcript {
pub biotype: Option<Vec<BioType>>,
pub gene_name: Option<String>,
pub gene_version: String,
pub genome_builds: IndexMap<String, GenomeAlignment>,
pub hgnc: Option<String>,
pub id: String,
pub partial: Option<u8>,
pub protein: Option<String>,
pub start_codon: Option<i32>,
pub stop_codon: Option<i32>,
}Fields§
§biotype: Option<Vec<BioType>>Transcript biotype, e.g., vec![BioType::ProteinCoding] for BRCA1.
gene_name: Option<String>Gene name, e.g., "BRCA1" for BRCA1.
gene_version: StringGene version, NCBI gene ID for NCBI, e.g., "672" for BRCA1, ENSEMBL gene id, e.g.,
"ENSG00000012048" for BRCA1.
genome_builds: IndexMap<String, GenomeAlignment>Alignments to the different genome builds.
hgnc: Option<String>HGNC identifier, e.g. "1100" for BRCA1 which is HGNC:1100.
id: StringIdentifier of the transcript, same as key in transcripts, e.g., "NM_007294.3" for BRCA1.
partial: Option<u8>When the transcript does not match the primary assembly ("NC_") perfectly / the assembly itself is wrong/partial
protein: Option<String>Identifier of corresponding protein, e.g., "NP_009225.1" for "NM_007294.3" of BRCA1.
start_codon: Option<i32>0-based position of codon of transcript, e.g., 232 for "NM_007294.3" of BRCA1.
stop_codon: Option<i32>End position of stop codon of transcript, e.g., 5824 for "NM_007294.3" of BRCA1.
Trait Implementations§
Source§impl Clone for Transcript
impl Clone for Transcript
Source§fn clone(&self) -> Transcript
fn clone(&self) -> Transcript
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Transcript
impl Debug for Transcript
Source§impl<'de> Deserialize<'de> for Transcript
impl<'de> Deserialize<'de> for Transcript
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Transcript
impl RefUnwindSafe for Transcript
impl Send for Transcript
impl Sync for Transcript
impl Unpin for Transcript
impl UnsafeUnpin for Transcript
impl UnwindSafe for Transcript
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.