Skip to content

Move dummy data functions back to main package #136

Closed

Description

@lazappi

It would be helpful to have the dummy data functions accessible from the main package, not just the tests. Mainly, this would be useful for examples so that they are shorter, more consistent and easier to write.

Activity

  1. rcannood commented on Nov 29, 2023

    @rcannood
    Member

    PR #107 contains generator functions which are more thorough than the dummy_data functions: https://github.com/scverse/anndataR/pull/107/files#diff-0a53e9410969c293b7cb779571e4214869cfc85747d19f82709a87aa44657785R17
    Unfortunately, since the generate_dataset() generates objects with many more data types, the unit tests don't work anymore 😅

    However, I'm not inclined on exporting these functions so users can use these functions, because it distracts from the functionality that anndataR is trying to provide. In the examples, I think it's actually useful to showcase how to create AnnData objects from scratch instead of using a generator function.

    However, if you feel strongly about this, we can look into exporting this function again.

  2. lazappi commented on Nov 30, 2023

    @lazappi
    CollaboratorAuthor

    Ok, I'll have a look at those. I actually think it makes the examples much clearer if you just have the function you are demonstrating without a big chunk of code creating an object first.

    What I do feel very strongly about is not showing users the AnnData objects at all but I want to discuss that at the next meeting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions