Skip to content

Ensure transcript type is a single value or comma separated string - #345

Merged
allyhawkins merged 2 commits into
mainfrom
allyhawkins/transcript-type-string
Oct 30, 2026
Merged

allyhawkins merged 2 commits into
mainfrom
allyhawkins/transcript-type-string

Conversation

@allyhawkins

Copy link
Copy Markdown
Member

Related to discussion in AlexsLemonade/scpca-nf#1372, this PR updates the transcript_type that is stored in the metadata of SCE objects to be a single character string rather than a vector. Anytime we had a vector with two values, I turned it into a comma separated string. This should ensure that no matter how many values are present the type in both SCE and AnnData objects will be consistent.

The only actual changes here are the changes to transcript_type <- "total,spliced" but because I opened this in an editor with air formatting, a bunch of formatting changes are also included.

jashapiro
jashapiro previously approved these changes Oct 29, 2026

@jashapiro jashapiro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@allyhawkins

Copy link
Copy Markdown
Member Author

@jashapiro I made a small change in 374d863 to pass tests and account for the case where there is no transcript_type, so I'm going to re-request review to make sure you're okay with that.

@allyhawkins
allyhawkins dismissed jashapiro’s stale review October 30, 2026 16:09

More code changes

@allyhawkins
allyhawkins requested a review from jashapiro October 30, 2026 16:09

@jashapiro jashapiro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assuming tests pass, looks good

@allyhawkins
allyhawkins merged commit 38b4445 into main Oct 30, 2026
11 checks passed
@allyhawkins
allyhawkins deleted the allyhawkins/transcript-type-string branch October 30, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants