Repository navigation
taxpasta: TAXonomic Profile Aggregation and STAndardisation #84
Description
Submitting Author: Moritz E. Beber (@Midnighter)
All current maintainers: (@Midnighter, @sofstam, @jfy133)
Package Name: taxpasta
One-Line Description of Package: TAXonomic Profile Aggregation and STAndardisation
Repository Link: https://github.com/taxprofiler/taxpasta
Version submitted: 0.2.1
Editor: @ctb
Reviewer 1: @snacktavish
Reviewer 2: @bluegenes
Archive: https://github.com/taxprofiler/taxpasta/releases/tag/0.4.0
JOSS DOI:
Version accepted: 0.4.0
Date accepted (month/day/year): 07/05/2023
Code of Conduct & Commitment to Maintain Package
- I agree to abide by pyOpenSci's Code of Conduct during the review process and in maintaining my package after should it be accepted.
- I have read and will commit to package maintenance after the review as per the pyOpenSci Policies Guidelines.
Description
The main purpose of taxpasta is to standardise taxonomic profiles created by a
range of bioinformatics tools. We call those tools taxonomic profilers. They
each come with their own particular, tabular output format. Across the profilers,
relative abundances can be reported in read counts, fractions, or percentages,
as well as any number of additional columns with extra information. We therefore
decided to take the lessons learnt to heart and provide
our own solution to deal with this pasticcio. With taxpasta you can ingest all
of those formats and, at a minimum, output taxonomy identifiers and their
integer counts.
Taxpasta can not only standardise profiles but also merge them across samples
for the same profiler into a single table. In future, we also intend to offer
methods for forming a consensus for the same sample analyzed by different
profilers.
Scope
-
Please indicate which category or categories.
Check out our package scope page to learn more about our
scope. (If you are unsure of which category you fit, we suggest you make a pre-submission inquiry):- Data retrieval
- Data extraction
- Data processing/munging
- Data deposition
- Data validation and testing
- Data visualization **
- Workflow automation
- Citation management and bibliometrics
- Scientific software wrappers
- Database interoperability
Domain Specific & Community Partnerships
- [ ] Geospatial
- [ ] Education
- [ ] Pangeo
Community Partnerships
If your package is associated with an
existing community please check below:
- Pangeo
- My package adheres to the Pangeo standards listed in the pyOpenSci peer review guidebook
** Please fill out a pre-submission inquiry before submitting a data visualization package.*
-
For all submissions, explain how the and why the package falls under the categories you indicated above. In your explanation, please address the following points (briefly, 1-2 sentences for each):
-
Who is the target audience and what are scientific applications of this package?
Taxpasta is a tool for anyone working with taxonomic profiles from metagenomic sequencing experiments. Mostly that means ecologists, bioinformaticians, statisticians. Taxpasta's main application is to standardise profiles from a range of different tools. Having a singular format facilitates downstream analyses. Taxpasta is used, for example, in the upcoming taxprofiler pipeline implemented in nextflow. There, it also serves to combine the profiles of many samples into a single file.
-
Are there other Python packages that accomplish the same thing? If so, how does yours differ?
The BIOM format was created with the intention of standardizing a storage format for microbiome analyses. However, creating this format was entirely left to the user. Taxpasta conveniently knows how to read profiles from a range of tools and can also produce BIOM output.
Some of the taxonomic profilers also come with scripts to convert their output into another format but none of them support such a wide range of tools as taxpasta does.
-
If you made a pre-submission enquiry, please paste the link to the corresponding issue, forum post, or other discussion, or
@tagthe editor you contacted:
-
Technical checks
For details about the pyOpenSci packaging requirements, see our packaging guide. Confirm each of the following by checking the box. This package:
- does not violate the Terms of Service of any service it interacts with.
- uses an OSI approved license.
- contains a README with instructions for installing the development version (development version is described in
CONTRIBUTING.rst). - includes documentation with examples for all functions.
- contains a tutorial with examples of its essential functions and uses.
- has a test suite.
- has continuous integration setup, such as GitHub Actions CircleCI, and/or others.
Publication Options
- Do you wish to automatically submit to the Journal of Open Source Software? If so:
JOSS Checks
- The package has an obvious research application according to JOSS's definition in their submission requirements. Be aware that completing the pyOpenSci review process does not guarantee acceptance to JOSS. Be sure to read their submission requirements (linked above) if you are interested in submitting to JOSS.
- The package is not a "minor utility" as defined by JOSS's submission requirements: "Minor ‘utility’ packages, including ‘thin’ API clients, are not acceptable." pyOpenSci welcomes these packages under "Data Retrieval", but JOSS has slightly different criteria.
- The package contains a
paper.mdmatching JOSS's requirements with a high-level description in the package root or ininst/. - The package is deposited in a long-term repository with the DOI:
Note: JOSS accepts our review as theirs. You will NOT need to go through another full review. JOSS will only review your paper.md file. Be sure to link to this pyOpenSci issue when a JOSS issue is opened for your package. Also be sure to tell the JOSS editor that this is a pyOpenSci reviewed package once you reach this step.
Are you OK with Reviewers Submitting Issues and/or pull requests to your Repo Directly?
This option will allow reviewers to open smaller issues that can then be linked to PR's rather than submitting a more dense text based review. It will also allow you to demonstrate addressing the issue via PR links.
- Yes I am OK with reviewers submitting requested changes as issues to my repo. Reviewers will then link to the issues in their submitted review.
Confirm each of the following by checking the box.
- I have read the author guide.
- I expect to maintain this package for at least 2 years and can help find a replacement for the maintainer (team) if needed.
Please fill out our survey
- Last but not least please fill out our pre-review survey. This helps us track
submission and improve our peer review process. We will also ask our reviewers
and editors to fill this out.
P.S. *Have feedback/comments about our review process? Leave a comment here
Editor and Review Templates
The [editor template can be found here][Editor Template].
The [review template can be found here][Review Template].
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsjoss-accepted
Activity
lwasser commentedon Mar 6, 2023
hey there 👋 @Midnighter welcome to pyopensci and thank you for this submission! i just wanted to say hello so you know that we see this submission and will be getting back to you shortly! i also am looking into forms for the submission template as well - many thanks for that suggestion! More soon!
NickleDave commentedon Mar 8, 2023
Welcome @Midnighter @sofstam @jfy133!
I'm adding initial checks for this package.
Glad to see this as someone who develops a similar tool (for a different domain!).
Looks like most everything is there.
I do want to request one thing before we proceed with a review though:
can you please add at least one full tutorial?
Something like the "Examples" section in the Pynteny docs here (which also has a CLI interface): https://robaina.github.io/Pynteny/examples/example_cli/
(These docs were in place before we began the Pynteny review, which is why I'm providing them as an example of what we need to see before we start.)
I would suggest a sort of walkthrough of the main use case for taxpasta. This might be a simplified version of something you're using it for in research already.
I have provided some other feedback below but adding an initial tutorial is the only thing that's necessary at this time.
Editor in Chief checks
Hi there! Thank you for submitting your package for pyOpenSci
review. Below are the basic checks that your package needs to pass
to begin our review. If some of these are missing, we will ask you
to work on them before the review process begins.
Please check our Python packaging guide for more information on the elements below.
import package-name.taxpasta -hcould be shown and additionally a brief snippet. If the main usage is the CLI, then perhaps demos of usage could be shown with a tool like asciicinemataxpasta -hwas truncated for me. See below. Not sure it would be clear to a new user whatconsensusandmergecommands do because of the ellipsis. From the docs I guess this is because your cli package imports text from somewhere else? Is there a way to not truncate? Maybe just give a briefer summary?README.mdfile with clear explanation of what the package does, instructions on how to install it, and a link to development instructions.CONTRIBUTING.mdfile that details how to install and contribute to the package.Code of Conductfile.NOTE: We prefer that you have development instructions in your documentation too.
YAMLheader of the issue (located at the top of the issue template).We appreciate each maintainer of the package filling out this survey individually. 🙌
Thank you authors in advance for setting aside five to ten minutes to do this. It truly helps our organization. 🙌
Editor comments
This is not required in checks but I would suggest adding example data to taxpasta.
Since you are working with tabular data that I'd guess can be failry lightweight, it should be relatively painless to add and it will really help people understand package usage. (Unless I'm wrong and the taxonomic profiles are like 100 MB each. In that case, see next paragraph.)
Again see the Pynteny example where they work with example data (not suggesting you need to add a download command but just showing you why built-in data is useful: https://robaina.github.io/Pynteny/examples/example_cli/#download-pgap-profile-hmm-database)
For my own library I just add the files directly to the package and then access with
importlib.resources, see this issue: vocalpy/crowsetta#90Some libraries have adopted the
poochlibrary for data, e.g. scikit-image: https://scikit-image.org/docs/stable/api/skimage.data.html. Might be worth snooping their issues to help you figure out how to implement if you decide to adopt it.NickleDave commentedon Mar 8, 2023
Also @sofstam @jfy133 could you both please fill out the pre-review survey?
I have a reply for @Midnighter but not you I think.
https://forms.gle/F9mou7S3jhe8DMJ16
It's just a brief (5-10m) survey to help us understand how we're doing as an org. Thank you! 🙏
Midnighter commentedon Mar 8, 2023
Hi @NickleDave,
Thank you for your review and comments. Adding a tutorial and improving the docs mostly makes sense to me. I will work on adding those.
The tables are indeed small, still I'm a little hesitant to distribute them with the package. However, pandas should be able to just load a table from a URL so that's maybe a way to go.
jfy133 commentedon Mar 8, 2023
oops, sorry - from the second page most of the questions seemed to be about the package and I assume Moritz had already provided all that info.
I've filled it out, but left pretty much all the optional questions empty as either you have that info from Moritz, and/or submitting via pyOpenSci is Moritz' initative so I'm not that familiar/involved with python etc.
One comment though: I noticed that the options in your 'What background best describes you cultural identity?' question is extremely N. American focused. Unfortunately I don't have a good solution for you, but you may not be getting a particularly good overview of this - e.g. Asian spans half the world with many equally large sub-divisons as the Pacific Islanders, and also grouping 'Black' and African-American is also arguably unfair as they also can have a large difference in backgrounds/problems etc. For example see what official surveys from UK use: https://www.ethnicity-facts-figures.service.gov.uk/style-guide/ethnic-groups
Midnighter commentedon Mar 8, 2023
@NickleDave regarding your comments on
taxpasta -hthe truncation is automatically created by typer. It looks better if you also install rich. I'll look into shortening the summaries such that they are not truncated by typer in the default view.NickleDave commentedon Mar 8, 2023
Great, thank you @Midnighter. Your other comments re: tables, bioconda, Zenodo, and the truncation all sound good. Would it be worth making rich a dependency so you don't have to special case typer behavior?
Thank you @jfy133 I hear you and I will relay this to our executive director @lwasser. Your feedback is helpful; this is definitely a version 0.1 of the survey and I'm sure we can improve it to not be US-centric, and to encompass people who are core contributors to a project even if they are not primarily Python developers.
Midnighter commentedon Mar 8, 2023
At the moment, it's an extra dependency that can be installed with
taxpasta[rich]. (Come to think of it, we should document all of those.) The reason that it's not default is that where taxpasta originated, as a CLI tool for a nextflow pipeline, fancy terminal output is really not needed. We should definitely recommend installing that for interactive work, though.NickleDave commentedon Mar 8, 2023
Understood!
Btw @Midnighter could I ask you to link this review issue on any issues you raise to make changes before review? By adding a link to the issue on the taxpasta repo, so that GitHub cross references them.
Just to help us track. Thank you 🙏
Midnighter commentedon Mar 13, 2023
Dear @NickleDave,
We think that we've implemented everything that you've noticed. Please take another look and let us know your thoughts.
NickleDave commentedon Mar 14, 2023
Hi @Midnighter I did check out these additions -- looks great!
Thank you for addressing all of those comments.
I will move ahead with finding an editor, will reply back here introducing them ASAP.
NickleDave commentedon Mar 23, 2023
Hi again @Midnighter very happy to say that @ctb has very kindly agreed to take on the editor role for this review. Thanks for your patience while we found someone who knows your domain and the software community around it.
I will let @ctb take it from here and start tagging in reviewers.
55 remaining items
lwasser commentedon Jul 12, 2023
ahhhh ok lessons learned here that we need a way for authors to check their boxes AND/OR we need fewer of them . thank you all for the feedback!!! i hadn't considered that authors would NOT be able to check those author list boxes - we will have to come up with a better approach! i'm open to suggestions.
and it looks like taxpasta was accepted by JOSS - hooray. 🎉 🎉
jfy133 commentedon Jul 12, 2023
🎉 ! Thanks @lwasser !
lwasser commentedon Jul 12, 2023
awesome! ok i'll close this issue now. Friends - if anyone from this review (reviewers, maintainers etc) is interested in joining our slack community please email me at leah at pyopensci.org or reply here if your email is available on your github and i can add you!! we'd love to have all of you there!
Kevin-Mattheus-Moerman commentedon Jul 12, 2023
@lwasser One of the JOSS AEiCs here. Thanks for the great work with pyOpenSci.
On the checkboxes, yes I recommend a single set of checkboxes which are all ticked before acceptance in pyOpenSci. This way it is super clear that if they are all ticked things are completed/acceptable. This way people viewing the review issue do not get the wrong idea. If the authors cannot check them perhaps the editor can do it once completed. We sometimes have to do that with JOSS. Also, I believe just 1 reviewer complete the review here. Do you have guidelines/documentation on your policies on this somewhere for pyOpenSci? I would recommend that you adopt that at least 2 reviewers should complete the review. Thanks.