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

Selecting samples by vector of strings preserves order of original profile #143

Open
kescobo opened this issue Apr 26, 2024 · 0 comments
Open
Labels

Comments

@kescobo
Copy link
Member

kescobo commented Apr 26, 2024

eg

julia> comm = CommunityProfile(rand(10, 4), Taxon.(["t$i" for i in 1:10]), MicrobiomeSample.(["s$i" for i in 1:4]))
CommunityProfile{Float64, Taxon, MicrobiomeSample} with 10 features in 4 samples

Feature names:
t1, t2, t3...t9, t10

Sample names:
s1, s2, s3, s4



julia> comm[:, ["s4", "s1"]]
CommunityProfile{Float64, Taxon, MicrobiomeSample} with 10 features in 2 samples

Feature names:
t1, t2, t3...t9, t10

Sample names:
s1, s4

@kescobo kescobo added the bug label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant