rarify function - sort output

Open
#58 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
data

Research direction

Start by locating the rarify function and its example, then read how it currently orders results and handles the random seed. The request is to return results sorted by sample ID ascending, abundance descending, and taxa name ascending, include the original data, and use a default seed in Shiny unless disabled. Done means the output matches those requirements and the example shows the old and new counts together.

Written by the indexing model from the issue text.

Description

enhancement

Is your feature request related to a problem? Please describe.
Data output is the same order as the input. Would be easier to look at if sorted.

Describe the solution you'd like
Sort output from largest to smallest (sample.ID [asc], abund [desc],taxa name [asc]), . Easier to see the changes. And include the original data in the output (same as in the example).

Describe alternatives you've considered
The current example has the old and new counts together. Users prefer the results to be presented this way.

Additional context
If sort the data prior to using internal functions the same data (even sorted differently) will produce the same results (with the same seed).

For Shiny use a default seed unless turn off.

Dominant language
R
Stars
15
Forks
6
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from leppott/BioMonTools

All issues in leppott/BioMonTools

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.