Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility - Expression class to describe the abundance of isoform and elements #29

Open
gsheynkman opened this issue Jul 20, 2021 · 0 comments
Labels
design high-level design ideas, brainstorming enhancement New feature or request postponed This should be handled in the future, but is low priority right now

Comments

@gsheynkman
Copy link
Member

Possibility - class which represents the abundance of the isoform (or isoform sub-element, such as a junction or exon) in human tissues, cell lines, or disease-relevant samples.

Original code (now deleted) input the GTEx data and had transcript abundances across ~30 human tissues (see below).

This class may be helpful for comparing abundances of events (e.g., exon skipping) versus whole-isoforms. It may be helpful in comparing short-read-based versus long-read-based expression values.

It could also be used to plot expression visualizations in the isoform imager module. For example - Farilie's Swan program has an example.

    def __init__(self, expr_dict):
        self.expr_dict = expr_dict # tissue -> rpkm
        self.avg_expr = self.compute_avg_expr()

    def __getitem__(self, tiss):
        # when expr_obj fetch by key (tissue), return value
        return self.expr_dict[tiss]

    def compute_avg_expr(self):
        tot = 0
        for k, v in self.expr_dict.items():
            v = float(v)
            tot += v
        avg_expr = tot/len(self.expr_dict)
        return avg_expr```
@gsheynkman gsheynkman added design high-level design ideas, brainstorming enhancement New feature or request labels Jul 20, 2021
@jsaquing jsaquing added the postponed This should be handled in the future, but is low priority right now label Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design high-level design ideas, brainstorming enhancement New feature or request postponed This should be handled in the future, but is low priority right now
Projects
None yet
Development

No branches or pull requests

2 participants