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

Task. Include gene model into h5ad #20

Open
michael-kotliar opened this issue Mar 16, 2023 · 1 comment
Open

Task. Include gene model into h5ad #20

michael-kotliar opened this issue Mar 16, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@michael-kotliar
Copy link
Collaborator

michael-kotliar commented Mar 16, 2023

When exporting to h5ad file add the following metadata columns: chr, start, end, gene_id. This will allow us to subset anndata object by Gene ID, or select all junctions that overlap the specific interval.

Use it as an example of how to subset by genomic coordinates: scverse/anndata#624 (comment)

Changes should be mainly made in this function:

def export_counts_to_anndata(counts_df, location, counts_columns=None, metadata_columns=None, sparse_dtype=None, fill_value=None, strand_coords=None):

Additionally, when annotating junctions, save gene model to the same h5ad file. This gene model should be also updated with the new identified junctions. Need to define in which slot we want to save gene model as it's not something that is structured as var or obs.

@michael-kotliar michael-kotliar added the enhancement New feature or request label Mar 16, 2023
@michael-kotliar michael-kotliar self-assigned this Mar 16, 2023
@michael-kotliar michael-kotliar changed the title Including gene model into h5ad Task. Include gene model into h5ad Mar 16, 2023
@frankligy
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants