Skip to content

Add rank support to getTop#799

Open
0xMuluh wants to merge 2 commits intodevelfrom
getTop
Open

Add rank support to getTop#799
0xMuluh wants to merge 2 commits intodevelfrom
getTop

Conversation

@0xMuluh
Copy link
Collaborator

@0xMuluh 0xMuluh commented Jan 5, 2026

ping #768

Comment on lines +129 to +132
taxs <- do.call(
getPrevalence,
c(list(assay(x, assay.type), sort = TRUE, include.lowest = TRUE),
dots))
Copy link
Contributor

Choose a reason for hiding this comment

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

As dots are just ... without any modification, shouldn't the old code do the exact same?

Comment on lines +119 to +122
if (!is.null(rank)) {
.check_taxonomic_rank(rank, x)
x <- agglomerateByRank(x, rank = rank)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

You could use .merge_features and keep the functionality "optional" so that the rank argument is not visible in function definition (too many arguments make the usage more complex)

@TuomasBorman
Copy link
Contributor

Any updates on this @0xMuluh ?

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