Skip to content

Conversation

antgonza
Copy link
Member

No description provided.

Copy link

@AmandaBirmingham AmandaBirmingham left a comment

Choose a reason for hiding this comment

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

A couple of questions and a couple of potential typos. Only requesting changes for the typos (if they are) :)

POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
COVER_PACKAGE: ${{ matrix.cover_package }}

Choose a reason for hiding this comment

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

where is cover_package set?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is what happens when you copy file and forget to remove some lines/variables.

shell: bash -l {0}
run: |
# seqtk is a conda-installed requirement for metapool and isn't
# installed automatically by its setup.py.

Choose a reason for hiding this comment

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

While this comment is accurate, I am not clear why it is in this particular spot since I don't see anything obviously seqtk-related near it, such as a seqtk conda install. What am I missing?

Copy link
Member Author

Choose a reason for hiding this comment

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

also left over.

export QIITA_CONFIG_FP=`pwd`/qiita-dev/qiita_core/support_files/config_test_local.cfg
export PYTHONWARNINGS="ignore:Certificate for localhost has no \`subjectAltName\`"

pytest qp_pacbio --doctest-modules --cov=qp_pacbio --cov-report=lcov

Choose a reason for hiding this comment

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

Curious: does all of qiita use pytest for unit testing? For reasons that I don't know (but I have been going along with in order not to rock the boat), kl-metapool uses nosetests ...

Copy link
Member Author

Choose a reason for hiding this comment

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

Nosetests is no-more: https://nose.readthedocs.io/en/latest/; thus, as we transition to newer pythons (this one is 3.11) we need to migrate to something else; thus, doing the migration already.

Choose a reason for hiding this comment

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

ahhhh, very good to know, thank you!

:align: center


.. |Build Status| image:: https://github.com/qiita-spots/qp-pacbio/actions/workflows/qiita-plugin-ci.yml/badge.svg

Choose a reason for hiding this comment

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

These are cool :)

Copy link
Member Author

Choose a reason for hiding this comment

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

TBH this is why I prefer rst as I know how to do those things.

if m:
g = 'G%s' % m.group(1)

# ext > ncbi > metadata

Choose a reason for hiding this comment

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

I think the ">" here is confusing me. extension is trumped by ncbi is trumped by metadata, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

I prefer to leave this files without changes as this is a copy of a file shared by a knight-lab member.

self._clean_up_files.append(out_dir)

# this should fail cause we don't have valid data
success, ainfo, msg = pacbio_processing(

Choose a reason for hiding this comment

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

So at the moment do we only have a test of failure (not yet of success)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, we are testing success but nothing is being created, just yet. This is just an skeleton with everything we need but not yet connected.

@@ -0,0 +1,188 @@
#!/usr/bin/env python3

Choose a reason for hiding this comment

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

How do you unit test this script?

Copy link
Member Author

Choose a reason for hiding this comment

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

Haven't gotten here yet. Still need to connect all these steps.

Choose a reason for hiding this comment

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

I think there may be typo(s) in the yellow box. It reads "metamap needs to find/have the .bam in has to have the same filename as the fasq". My guess is that either "in" should be "and" or there is something missing before the "has". Also, is the file type here "fasq" or is this a typo for "fastq"?

Choose a reason for hiding this comment

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

I'm curious: why does this repo need a .rst readme rather than a .md one?

Copy link
Member Author

Choose a reason for hiding this comment

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

No reason, just that I'm used to rst

Copy link
Member Author

@antgonza antgonza left a comment

Choose a reason for hiding this comment

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

Thank you @AmandaBirmingham

POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
COVER_PACKAGE: ${{ matrix.cover_package }}
Copy link
Member Author

Choose a reason for hiding this comment

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

This is what happens when you copy file and forget to remove some lines/variables.

shell: bash -l {0}
run: |
# seqtk is a conda-installed requirement for metapool and isn't
# installed automatically by its setup.py.
Copy link
Member Author

Choose a reason for hiding this comment

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

also left over.

export QIITA_CONFIG_FP=`pwd`/qiita-dev/qiita_core/support_files/config_test_local.cfg
export PYTHONWARNINGS="ignore:Certificate for localhost has no \`subjectAltName\`"

pytest qp_pacbio --doctest-modules --cov=qp_pacbio --cov-report=lcov
Copy link
Member Author

Choose a reason for hiding this comment

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

Nosetests is no-more: https://nose.readthedocs.io/en/latest/; thus, as we transition to newer pythons (this one is 3.11) we need to migrate to something else; thus, doing the migration already.

Copy link
Member Author

Choose a reason for hiding this comment

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

No reason, just that I'm used to rst

:align: center


.. |Build Status| image:: https://github.com/qiita-spots/qp-pacbio/actions/workflows/qiita-plugin-ci.yml/badge.svg
Copy link
Member Author

Choose a reason for hiding this comment

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

TBH this is why I prefer rst as I know how to do those things.

@@ -0,0 +1,188 @@
#!/usr/bin/env python3
Copy link
Member Author

Choose a reason for hiding this comment

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

Haven't gotten here yet. Still need to connect all these steps.

if m:
g = 'G%s' % m.group(1)

# ext > ncbi > metadata
Copy link
Member Author

Choose a reason for hiding this comment

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

I prefer to leave this files without changes as this is a copy of a file shared by a knight-lab member.

self._clean_up_files.append(out_dir)

# this should fail cause we don't have valid data
success, ainfo, msg = pacbio_processing(
Copy link
Member Author

Choose a reason for hiding this comment

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

Well, we are testing success but nothing is being created, just yet. This is just an skeleton with everything we need but not yet connected.

Copy link

@AmandaBirmingham AmandaBirmingham left a comment

Choose a reason for hiding this comment

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

A couple of questions and comments:

Why does the README need to be a .rst file instead of a .md?

In the workflow image, the little yellow note may have a typo or two in it. It says "metawrap needs to find/have the .bam in has to have the same filename as the fasq"

It seems like there may be something missing between "in" and "has". Also, is "fasq" the file type for these files, or should it be the more usual "fastq"?

The box left of box 4 is titled "Folder 3 tools"--could you clarify for me what this means?

export QIITA_CONFIG_FP=`pwd`/qiita-dev/qiita_core/support_files/config_test_local.cfg
export PYTHONWARNINGS="ignore:Certificate for localhost has no \`subjectAltName\`"

pytest qp_pacbio --doctest-modules --cov=qp_pacbio --cov-report=lcov

Choose a reason for hiding this comment

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

ahhhh, very good to know, thank you!

@antgonza antgonza merged commit 2c280b7 into main Sep 3, 2025
2 checks passed
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