Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
5b21996
initial-cleanup
antgonza Aug 24, 2015
2a072b4
addressing @josenavas comments
antgonza Aug 25, 2015
555b971
Merge pull request #1437 from antgonza/initial-cleanup
josenavas Aug 25, 2015
fed2771
Merge branch 'master' of https://github.com/biocore/qiita into ebi-st…
antgonza Aug 26, 2015
e348327
ebi-step-2
antgonza Aug 26, 2015
7bc5049
Merge pull request #1448 from antgonza/sync-with-master
josenavas Aug 26, 2015
e079517
addressing @josenavas comments
antgonza Aug 26, 2015
efdb741
adressing second round from @josenavas
antgonza Aug 27, 2015
7112d08
addressing @adamrp and @ElDeveloper comments
antgonza Aug 27, 2015
bc86472
changes to DB
antgonza Aug 31, 2015
58d0a7e
addressing @ElDeveloper suggestions
antgonza Sep 3, 2015
f3a3a61
Merge pull request #1450 from antgonza/ebi-step-2
ElDeveloper Sep 3, 2015
8564165
removing not necessary test data
antgonza Sep 3, 2015
664d137
step 3, initial commit
antgonza Sep 3, 2015
6320220
merging with ebi-step-2
antgonza Sep 3, 2015
08c7b2b
figuringout error
antgonza Sep 3, 2015
40e2abf
fixing error in last commit and addressing some of @josenavas comments
antgonza Sep 3, 2015
9f05273
addressing @josenavas comments
antgonza Sep 4, 2015
3f938bf
fixing flake8
antgonza Sep 4, 2015
e813cf0
addressing @ElDeveloper and @mortonjt
antgonza Sep 8, 2015
31a9f7b
addressing @josenavas and %mortonjt comments
antgonza Sep 8, 2015
6286792
addressing @adamrp comments
antgonza Sep 8, 2015
47bb358
changing from _ to -, @adamrp
antgonza Sep 8, 2015
b21fec8
minor comment from @josenavas
antgonza Sep 9, 2015
d0ae1c4
Merge pull request #1464 from antgonza/ebi-step-3
josenavas Sep 9, 2015
06a0eb0
initial commit
antgonza Sep 10, 2015
4448d21
addressing @mortonjt and @josenavas
antgonza Sep 10, 2015
3dafca4
Merge pull request #1467 from antgonza/cover-some-joy-list-issues
josenavas Sep 10, 2015
af5c193
Merge branch 'ebi-improvements' of github.com:biocore/qiita into addi…
antgonza Sep 14, 2015
6dc1725
adding enc conf file
antgonza Sep 14, 2015
b59c279
Merge pull request #1471 from biocore/adding-enc-file
josenavas Sep 14, 2015
543053d
init commit
antgonza Sep 17, 2015
c1ae6f3
addressing @mortonjt comments
antgonza Sep 17, 2015
e592ad6
Modifying the DB schema
josenavas Sep 22, 2015
7c598bb
Fixing study table
josenavas Sep 23, 2015
4ca0ba0
Fixing sample_id type in ebi table
josenavas Sep 23, 2015
78fd8c8
Finishing up patch
josenavas Sep 23, 2015
8e76820
Fixing populate_test_db.sql
josenavas Sep 23, 2015
1435695
Fixing status values'
josenavas Sep 23, 2015
5f8b486
Fixing data tests
josenavas Sep 24, 2015
b79ed89
Fix test_get_info
josenavas Sep 25, 2015
7175a80
Fixing study tests
josenavas Sep 25, 2015
af75f0d
Adding EBI study accession and EBI submission status setters to the s…
josenavas Sep 25, 2015
7be4199
Fixing command tests and interface
josenavas Sep 25, 2015
d80944c
Fixing sample template tests
josenavas Sep 25, 2015
a8b0487
Fixing the prep template tests
josenavas Sep 25, 2015
f56fb12
keep moving forward
antgonza Oct 1, 2015
7af1f8a
fixing errors
antgonza Oct 1, 2015
d9455db
addressing @josenavas and @wasade comments
antgonza Oct 1, 2015
0b9a861
addressing @wasade suggestion
antgonza Oct 1, 2015
f5d6af2
Merge pull request #1477 from antgonza/es4
josenavas Oct 1, 2015
b5509d3
Merge branch 'ebi-improvements' of https://github.com/biocore/qiita i…
josenavas Oct 1, 2015
f4405ba
Fixing bug in the DB layout
josenavas Oct 2, 2015
10921ff
Adding EBI information for the preprocessed data
josenavas Oct 2, 2015
909ed24
Adding ebi status to the preprocessed_data
josenavas Oct 2, 2015
e954fa2
Adding function to retrieve the EBI submission numbers
josenavas Oct 2, 2015
49bd40a
All ebi tests passing again
josenavas Oct 2, 2015
32771a0
Fix indentation
josenavas Oct 2, 2015
3c9e52b
Fixing aliases
josenavas Oct 2, 2015
0ae1073
Stubbing test for EBI reply parser
josenavas Oct 2, 2015
c7ba153
init commit
antgonza Oct 2, 2015
32aa0cb
Adding test for a success EBI submission parser
josenavas Oct 2, 2015
3e44782
Adding biosample accession number parser
josenavas Oct 2, 2015
e313f85
fix last warning
antgonza Oct 2, 2015
9e5ffac
Adapting the EBI command
josenavas Oct 2, 2015
f2598d7
Adding biosample accession to the db and update the populate test db
josenavas Oct 2, 2015
a096e8c
Adding ebi accession properties to the templates and tests
josenavas Oct 2, 2015
6ea66b4
addressing @ElDeveloper and @josenavas comments
antgonza Oct 2, 2015
6a592ae
fixing doc
antgonza Oct 3, 2015
8de5e93
fixing doc
antgonza Oct 3, 2015
1cb036e
adding to changelog
antgonza Oct 3, 2015
1a4f29e
fix pep8
antgonza Oct 3, 2015
ab9d3ac
initial commit
antgonza Oct 3, 2015
604342f
Adding accession attributes setters and tests
josenavas Oct 3, 2015
5836e0b
Solving a bug and add a specific test
josenavas Oct 3, 2015
fd7ebd8
pep8ing
josenavas Oct 4, 2015
484a7a5
Merge pull request #1484 from antgonza/instrument_model
ElDeveloper Oct 4, 2015
2cf65b4
Merge branch 'ebi-improvements' of https://github.com/biocore/qiita i…
antgonza Oct 5, 2015
f707095
Solving merge conflicts
josenavas Oct 5, 2015
b8db07a
Addressing @antgonza's comments
josenavas Oct 5, 2015
8aba8d5
Doing the forgotten TODO
josenavas Oct 5, 2015
3ff52c5
Merge pull request #1486 from antgonza/library_fields
ElDeveloper Oct 5, 2015
1699a8a
Differentiating the errors in the parsing
josenavas Oct 5, 2015
0116e55
Solving merge conflicts
josenavas Oct 5, 2015
2215406
fix #1479
antgonza Oct 6, 2015
c0c3caa
description is required for EBI
antgonza Oct 6, 2015
42b73ed
removing unnecessary EBI cfg vars
antgonza Oct 6, 2015
72cac32
changing conf file and fixing setup_acsp.sh
antgonza Oct 6, 2015
eb89f3b
Writing XML files conditionally
josenavas Oct 6, 2015
bcda0de
Addressing @ElDeveloper comments
josenavas Oct 6, 2015
8bc5aff
Fixing doc
josenavas Oct 6, 2015
e8808e3
Pep8ing
josenavas Oct 7, 2015
b5b5f57
Fixing ReadOnly tests
josenavas Oct 7, 2015
0022009
Partially fixing read-write errors
josenavas Oct 7, 2015
2facea1
Solving merge conflicts
josenavas Oct 7, 2015
fe2c170
Merge pull request #1481 from josenavas/db-changes-ebi
ElDeveloper Oct 7, 2015
670231e
All EBI tests passing again
josenavas Oct 7, 2015
96128d8
Fixing XML generation and adding a few more tests
josenavas Oct 7, 2015
b1732f6
Fixing commands.py
josenavas Oct 7, 2015
6651167
Merge branch 'ebi-improvements' of https://github.com/biocore/qiita i…
josenavas Oct 7, 2015
51b038e
pep8ing
josenavas Oct 7, 2015
ac61f74
Removing EBI info from preprocessed data tab, adding it to study desc…
josenavas Oct 7, 2015
4642900
Fixing the preprocessed data tab
josenavas Oct 7, 2015
00d5fd5
Adding is_submitted_to_ebi property to prep template
josenavas Oct 7, 2015
cf66a53
Showing the EBI 'icon' in the prep template tab
josenavas Oct 7, 2015
a4c1537
Adding link to EBI
josenavas Oct 7, 2015
1d80ea3
Addressing comments
josenavas Oct 7, 2015
ea328ce
Adding test
josenavas Oct 7, 2015
ab37a2f
Merge pull request #1489 from josenavas/ebi-improvements-add
ElDeveloper Oct 8, 2015
52f6496
catching to ebi-improvements
antgonza Oct 8, 2015
29c945e
Merge branch 'ebi-improvements-pet' of https://github.com/josenavas/q…
antgonza Oct 8, 2015
c45be2e
initial changes test_commands.py
antgonza Oct 8, 2015
e3d229d
Merge branch 'ebi-improvements' of https://github.com/biocore/qiita i…
josenavas Oct 8, 2015
ae3ec1d
As always, pep8ing...
josenavas Oct 8, 2015
1b17f81
Addressing comments
josenavas Oct 8, 2015
b15c95d
Addressing comments
josenavas Oct 8, 2015
7d2d3f7
Adding ebi run accession setter to the preprocessed data
josenavas Oct 8, 2015
b2be7e0
Merge branch 'ebi-improvements-run-setter' of https://github.com/jose…
antgonza Oct 8, 2015
1928106
test ready
antgonza Oct 8, 2015
1c7ef8e
Merge branch 'ebi-improvements-pet' of https://github.com/josenavas/q…
antgonza Oct 8, 2015
5f2ef0d
Merge pull request #1491 from josenavas/ebi-improvements-run-setter
ElDeveloper Oct 9, 2015
74bb4d9
Merge pull request #1492 from josenavas/fix-update-with-less-samples
ElDeveloper Oct 9, 2015
e261564
Merge pull request #1490 from josenavas/ebi-improvements-pet
ElDeveloper Oct 9, 2015
fe1070d
Merge branch 'ebi-improvements' of https://github.com/biocore/qiita i…
antgonza Oct 9, 2015
6417aa6
fixing last issues
antgonza Oct 9, 2015
abc5fe8
addressing @ElDeveloper and @mortonjt comments
antgonza Oct 9, 2015
13f80b1
addressing @josenavas comments
antgonza Oct 9, 2015
0586d8b
fixing error
antgonza Oct 9, 2015
30723c2
fixing build errors
antgonza Oct 10, 2015
f57a364
testing if
antgonza Oct 10, 2015
a7f7dfe
fixing leftover if
antgonza Oct 10, 2015
9377a3a
invert if
antgonza Oct 10, 2015
d2eae77
fixing ignore
antgonza Oct 10, 2015
a368f41
fixing error
antgonza Oct 10, 2015
0a47d89
Merge pull request #1488 from antgonza/next-joy-list
josenavas Oct 10, 2015
e17520a
Solving merge conflicts
josenavas Oct 10, 2015
1cee0a3
Merge pull request #1494 from josenavas/ebi-improvements
antgonza Oct 10, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,34 @@ before_install:
- export PATH=/home/travis/miniconda3/bin:$PATH
# Update conda itself
- conda update --yes conda
# Downloading and setting up ascp for EBI testing
- wget ftp://ftp.microbio.me/pub/qiita/ascp-install-3.5.4.102989-linux-64-qiita.sh -O ascp-install-3.5.4.102989-linux-64-qiita.sh
- chmod +x ascp-install-3.5.4.102989-linux-64-qiita.sh
- ./ascp-install-3.5.4.102989-linux-64-qiita.sh
- if [ ${TRAVIS_PULL_REQUEST} == "false" ]; then openssl aes-256-cbc -K $encrypted_e698cf0e691c_key -iv $encrypted_e698cf0e691c_iv -in qiita_core/support_files/config_test_travis.cfg.enc -out qiita_core/support_files/config_test_travis.cfg -d; fi
install:
# install a few of the dependencies that pip would otherwise try to install
# when intalling scikit-bio
- travis_retry conda create --yes -n env_name python=$PYTHON_VERSION pip nose flake8 pyzmq networkx pyparsing natsort mock 'pandas>=0.15' 'matplotlib>=1.1.0' 'scipy>0.13.0' 'numpy>= 1.7' 'h5py>=2.3.1' 'future==0.13.0'
- travis_retry conda create --yes -n env_name python=$PYTHON_VERSION pip nose flake8
pyzmq networkx pyparsing natsort mock 'pandas>=0.15' 'matplotlib>=1.1.0' 'scipy>0.13.0'
'numpy>= 1.7' 'h5py>=2.3.1' 'future==0.13.0'
- source activate env_name
- pip install sphinx sphinx-bootstrap-theme coveralls ipython[all]==2.4.1
- travis_retry pip install .
script:
- export MOI_CONFIG_FP=`pwd`/qiita_core/support_files/config_test.cfg
- if [ ${TRAVIS_PULL_REQUEST} == "false" ]; then
export QIITA_CONFIG_FP=`pwd`/qiita_core/support_files/config_test_travis.cfg;
export MOI_CONFIG_FP=`pwd`/qiita_core/support_files/config_test_travis.cfg;
fi
- ipython profile create qiita-general --parallel
- qiita-env start_cluster qiita-general
- qiita-env make --no-load-ontologies
- if [ ${TEST_ADD_STUDIES} == "True" ]; then test_data_studies/commands.sh ; fi
- if [ ${TEST_ADD_STUDIES} == "False" ]; then qiita-test-install ; fi
- if [ ${TEST_ADD_STUDIES} == "False" ]; then nosetests --with-doctest --with-coverage ; fi
- if [ ${TEST_ADD_STUDIES} == "False" ]; then flake8 qiita_* setup.py scripts/qiita scripts/qiita-env scripts/qiita-test-install ; fi
- if [ ${TEST_ADD_STUDIES} == "False" ]; then nosetests --with-doctest --with-coverage; fi
- if [ ${TEST_ADD_STUDIES} == "False" ]; then flake8 qiita_* setup.py scripts/qiita
scripts/qiita-env scripts/qiita-test-install ; fi
- ls -R /home/travis/miniconda3/envs/env_name/lib/python2.7/site-packages/qiita_pet/support_files/doc/
- qiita pet webserver
services:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Version 0.2.0-dev (Changes since version 0.2.0 go here)

* Users can now change values and add samples and/or columns to sample and prep templates using the <kbd>Update</kbd> button (see the prep template and sample template tabs).
* The raw files of a RawData can be now updated using the `qiita db update_raw_data` CLI command.
* instrument_model is now a required prep template column for EBI submissions.

Version 0.2.0 (2015-08-25)
--------------------------
Expand Down
7 changes: 0 additions & 7 deletions qiita_core/configuration_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,12 @@ class ConfigurationManager(object):
smtp_email : str
The email address that mail will be sent from when sending mail from
the SMTP server
ebi_access_key : str
The access key issued by EBI for REST submissions
ebi_seq_xfer_user : str
The user to use when submitting to EBI
ebi_seq_xfer_pass : str
The password for the ebi_seq_xfer_user
ebi_seq_xfer_url : str
The URL of EBI's sequence portal site
ebi_skip_curl_cert : bool
Whether or not to skip the certificate check when curling the metadata
ebi_center_name : str
The name of the sequencing center to use when doing EBI submissions
ebi_organization_prefix : str
Expand Down Expand Up @@ -213,14 +209,11 @@ def _get_smtp(self, config):

def _get_ebi(self, config):
sec_get = partial(config.get, 'ebi')
sec_getbool = partial(config.getboolean, 'ebi')

self.ebi_access_key = sec_get('EBI_ACCESS_KEY')
self.ebi_seq_xfer_user = sec_get('EBI_SEQ_XFER_USER')
self.ebi_seq_xfer_pass = sec_get('EBI_SEQ_XFER_PASS')
self.ebi_seq_xfer_url = sec_get('EBI_SEQ_XFER_URL')
self.ebi_dropbox_url = sec_get('EBI_DROPBOX_URL')
self.ebi_skip_curl_cert = sec_getbool('EBI_SKIP_CURL_CERT')
self.ebi_center_name = sec_get('EBI_CENTER_NAME')
self.ebi_organization_prefix = sec_get('EBI_ORGANIZATION_PREFIX')

Expand Down
13 changes: 3 additions & 10 deletions qiita_core/support_files/config_test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -99,30 +99,23 @@ ADMIN_PASSWORD =

# ----------------------------- EBI settings -----------------------------
[ebi]
# The access key issued by EBI for REST submissions
EBI_ACCESS_KEY =

# The user to use when submitting to EBI
EBI_SEQ_XFER_USER =
EBI_SEQ_XFER_USER = Webin-41528

# Password for the above user
EBI_SEQ_XFER_PASS =

# URL of EBI's FASP site
EBI_SEQ_XFER_URL = fasp.sra.ebi.ac.uk
EBI_SEQ_XFER_URL = webin.ebi.ac.uk

# URL of EBI's HTTPS dropbox
# live submission URL
#EBI_DROPBOX_URL = https://www.ebi.ac.uk/ena/submit/drop-box/submit/
# testing URL
EBI_DROPBOX_URL = https://www-test.ebi.ac.uk/ena/submit/drop-box/submit/

# Skip acertificate check when calling curl (necessary for using the EBI test
# dropbox URL)
EBI_SKIP_CURL_CERT = True

# The name of the sequencing center to use when doing EBI submissions
EBI_CENTER_NAME = CCME-COLORADO
EBI_CENTER_NAME = qiita-test

# This string (with an underscore) will be prefixed to your EBI submission and
# study aliases
Expand Down
Binary file not shown.
17 changes: 6 additions & 11 deletions qiita_db/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,42 +102,37 @@ def get_optional(name):


def load_preprocessed_data_from_cmd(study_id, params_table, filedir,
filepathtype, params_id,
submitted_to_insdc_status,
filepath_type, params_id,
prep_template_id, data_type):
r"""Adds preprocessed data to the database

Parameters
----------
study_id : int
The study id to which the preprocessed data belongs
params_table : str
The name of the table which contains the parameters of the
preprocessing
filedir : str
Directory path of the preprocessed data
filepathtype: str
filepath_type: str
The filepath_type of the preprecessed data
params_table_name : str
The name of the table which contains the parameters of the
preprocessing
params_id : int
The id of parameters int the params_table
submitted_to_insdc_status : str, {'not submitted', 'submitting', \
'success', 'failed'}
INSDC submission status
prep_template_id : int
Prep template id associated with data
data_type : str
The data type of the template
"""
with TRN:
fp_types_dict = get_filepath_types()
fp_type = fp_types_dict[filepathtype]
fp_type = fp_types_dict[filepath_type]
filepaths = [(join(filedir, fp), fp_type) for fp in listdir(filedir)]
pt = (None if prep_template_id is None
else PrepTemplate(prep_template_id))
return PreprocessedData.create(
Study(study_id), params_table, params_id, filepaths,
prep_template=pt,
submitted_to_insdc_status=submitted_to_insdc_status,
data_type=data_type)


Expand Down
Loading