{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## 03: Expression plot with metadata\n", "\n", "Create an RNA isoform structure plot with an RNA isoform expression plot with dodged groups beside it" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import RNApysoforms as RNApy" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [], "source": [ "## Path to your ENSEMBL GTF file, counts matrix file, and metadata file\n", "ensembl_gtf_path = \"../dash_apps/RNApysoforms/tests/test_data/Homo_sapiens_chr21_and_Y.GRCh38.110.gtf\"\n", "counts_matrix_path = \"../dash_apps/RNApysoforms/tests/test_data/counts_matrix_chr21_and_Y.tsv\"\n", "metadata_path = \"../dash_apps/RNApysoforms/tests/test_data/sample_metadata.tsv\"\n", "\n", "\n", "\n", "## Read ENSEMBL gtf and counts matrix with metadata\n", "annotation = RNApy.read_ensembl_gtf(ensembl_gtf_path)\n", "counts_matrix = RNApy.read_expression_matrix(expression_matrix_path=counts_matrix_path,\n", " metadata_path=metadata_path)" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| transcript_id | gene_id | sample_id | counts | AD status | Sex | AD status and sex |
|---|---|---|---|---|---|---|
| str | str | str | f64 | str | str | str |
| "ENST00000476106" | "ENSG00000142168" | "sample_1" | 0.0 | "AD" | "Female" | "AD Female" |
| "ENST00000476106" | "ENSG00000142168" | "sample_4" | 0.0 | "Control" | "Male" | "Control Male" |
| "ENST00000476106" | "ENSG00000142168" | "sample_7" | 0.0 | "AD" | "Male" | "AD Male" |
| "ENST00000476106" | "ENSG00000142168" | "sample_2" | 0.0 | "Control" | "Female" | "Control Female" |
| "ENST00000476106" | "ENSG00000142168" | "sample_6" | 0.0 | "Control" | "Female" | "Control Female" |