Skip to content

Conversation

@charles-cowart
Copy link
Contributor

Adds an 'addtl_processing_cmd' property to Command, to obtain additional processing steps needed to merge BIOMs.

antgonza and others added 30 commits February 20, 2018 09:37
* fix #1999

* fix template error

* rm maintenance conditional

* some improvements

* fix #1053
* fix Keemei (#2510)

* rename preprocessed_data_id artifact-id

* prints to debug

* Keemei fix (#2517)

* fix Keemei

* delete keemei

* keemei delete

* rewrite_fastq=True

* rmtree

* add :

* testing EBI

* add secure

* travis tests

* @ElDeveloper key!

* Fix typo
* fix Keemei (#2510)

* fix #2321

* fixing get studies

* fix qiita_db

* addressing @ElDeveloper comments

* fixing error with skipIf
* fix Keemei (#2510)

* updating illumina models
* fix Keemei (#2510)

* Keemei fix (#2517)

* fix Keemei

* delete keemei

* keemei delete

* Update index.rst
* fix Keemei (#2510)

* plugin-api

* improve format
* fix Keemei (#2510)

* fix #2321

* fixing get studies

* fix qiita_db

* fix #1810

* adding self.ascp_pass

* fix flake8

* flake8
* DOC: Cleanup of JavaScript libraries and licenses

There were a few JavaScript files that were not used anywhere and we
were missing a handful of license files. I've cleaned up all of that
(and for consistency made all the "licence" into "license").

Fixes #2535

* DOC: Document all the JS files

* BUG: Add natural sorting for data tables
* fix Keemei (#2510)

* fix int/str errors with workflows

* adding a patch to fix all ints parameters

* all -> any patch 64
Charles Cowart and others added 14 commits August 31, 2018 17:19
Strips UTF-8 characters from study titles
UTF-8 characters that are not also printable ASCII characters are stripped
from new study titles, as well as existing studies flagged 'public'. This is
because study titles are passed as metadata to new analyses, and some analysis
packages may not work well with them.
Merging charles-cowart->66.py with another topic branch 66.py
* fixes #2629 changed button text from Select None to Unselect All

* adding ssh backend support

* added paramiko

* install scp package for python

* testing scp directly in travis

* testing scp directly in travis

* testing scp directly in travis

* testing scp directly in travis

* testing scp directly in travis

* testing scp directly in travis

* addressing @ElDeveloper comments

* fix _get_valid_files

* glob.glob -> glob

* fix error

* fix error

* bringing back download_remote

* improving tests

* rm docstrings as requested by @ElDeveloper

* fixing tests - remote_files->local_files
Code wrapped in a for loop and iterates through a list of known Study status-types; seems a little cleaner than union-ing multiple result sets.
Software.Command extended to support additional metadata regarding
extra processing that may be required to merge BIOMs.
Software.Command extended to support additional metadata regarding
extra processing that may be required to merge BIOMs.
Copy link
Member

@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.

There are errors in the build and I think I highlighted the changes in here, please fix, thanks.

dflt_analysis = user.default_analysis
aid = 4
if addtl_processing_cmd:
cmd_id = qdb.artifact.Artifact(aid).processing_parameters.command
Copy link
Member

Choose a reason for hiding this comment

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

note that this is cmd, and the line below is cmd_id

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just broke it into two lines to pass flake8. In the next line, cmd_id is reassigned to cmd_id.id. I just didn't want to create an additional variable. It's probably bad form, now that I look at it.


self._wait_for_jobs(new)

with qdb.sql_connection.TRN:
Copy link
Member

Choose a reason for hiding this comment

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

you need to add the same if than above to only enter this block when needed ...

Charles Cowart added 4 commits October 5, 2018 11:20
Added conditional check, where it was missing
Last-minute comment did not meet flake8's approval.
_methods renamed to Qmethods
@codecov-io
Copy link

codecov-io commented Oct 5, 2018

Codecov Report

Merging #2694 into dev will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #2694      +/-   ##
==========================================
+ Coverage   94.32%   94.34%   +0.01%     
==========================================
  Files         166      166              
  Lines       19747    19788      +41     
==========================================
+ Hits        18626    18668      +42     
+ Misses       1121     1120       -1
Impacted Files Coverage Δ
qiita_db/test/test_analysis.py 98.54% <100%> (+0.37%) ⬆️
qiita_db/test/test_software.py 99.82% <100%> (ø) ⬆️
qiita_db/analysis.py 96.76% <100%> (+0.07%) ⬆️
qiita_db/software.py 98.05% <100%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fd47ca8...6b49822. Read the comment docs.

Copy link
Member

@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.

Good progress but a few comments.

ALTER TABLE oauth_software ADD CONSTRAINT fk_oauth_software FOREIGN KEY ( client_id ) REFERENCES oauth_identifiers( client_id ) ;
]]></string>
</script>
Copy link
Member

Choose a reason for hiding this comment

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

This is no right, correct? There should have been changes in this file, cause we added a new column. Could you double check?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just added a line. Just to clarify, this is an internal format right? I don't see a schema reference at the top.

Copy link
Member

Choose a reason for hiding this comment

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

I think is fine now but here is more information: https://github.com/biocore/qiita/blob/master/CONTRIBUTING.md#making-database-changes, will wait for confirmation.

Charles Cowart added 4 commits October 6, 2018 17:47
Comments modified as requested.
'Q-functions' in qiita-recover-jobs have been reverted to begin with
'_'.
Modified qiita-db.dbs to include additional column defined in
software_command table.
Copy link
Member

@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.

Getting closer but some minor things ...

ALTER TABLE oauth_software ADD CONSTRAINT fk_oauth_software FOREIGN KEY ( client_id ) REFERENCES oauth_identifiers( client_id ) ;
]]></string>
</script>
Copy link
Member

Choose a reason for hiding this comment

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

I think is fine now but here is more information: https://github.com/biocore/qiita/blob/master/CONTRIBUTING.md#making-database-changes, will wait for confirmation.

@antgonza antgonza merged commit 06e6d9e into qiita-spots:dev Oct 8, 2018
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.

9 participants