-
Notifications
You must be signed in to change notification settings - Fork 1
initial push #1
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
initial push #1
Conversation
There was a problem hiding this 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 }} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
...
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are cool :)
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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"?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this 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 }} |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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.
There was a problem hiding this 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 |
There was a problem hiding this comment.
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!
No description provided.