htsworkflow.git
7 years agoremove unused imports
Diane Trout [Thu, 7 Apr 2016 19:47:20 +0000 (12:47 -0700)]
remove unused imports

7 years agoUnicode munging for python3
Diane Trout [Fri, 24 Jun 2016 22:27:52 +0000 (15:27 -0700)]
Unicode munging for python3

Not sure if I'm breaking python2 though

7 years agoImplement writing to compressed files for qseq2fastq
Diane Trout [Tue, 21 Jun 2016 21:30:50 +0000 (14:30 -0700)]
Implement writing to compressed files for qseq2fastq

Along the way refactor some of the code I had in
desplit_fastq to make it easier to share the open compressed
streams logic

8 years agoExtract part of get_json into get_response
Diane Trout [Wed, 20 Apr 2016 22:48:54 +0000 (15:48 -0700)]
Extract part of get_json into get_response

For some experiments I wanted the ability to grab
the raw requests response, previously it was hidden
by just directly returning response.json()

8 years agoInitial implementation of importencoded
Diane Trout [Mon, 11 Apr 2016 22:48:33 +0000 (15:48 -0700)]
Initial implementation of importencoded

This version reads from a json dump file and dumps it
into postgresql using sqlalchemy.

Considering the rest of htsworkflow uses django it might
be better to switch to using django's ORM and also to take advantage
of requests.

8 years agoIncrease size of Library.multiplex_id field
Diane Trout [Sat, 12 Mar 2016 01:05:23 +0000 (17:05 -0800)]
Increase size of Library.multiplex_id field

8 years agoreport run_type
Diane Trout [Thu, 3 Dec 2015 22:48:39 +0000 (14:48 -0800)]
report run_type

8 years agoreport if a flowcell was single or paired ended as a file property
Diane Trout [Thu, 3 Dec 2015 22:26:36 +0000 (14:26 -0800)]
report if a flowcell was single or paired ended as a file property

8 years agoremove unused imports and variables
Diane Trout [Thu, 3 Dec 2015 19:28:31 +0000 (11:28 -0800)]
remove unused imports and variables

8 years agomake a more informative log message
Diane Trout [Mon, 30 Nov 2015 21:48:30 +0000 (13:48 -0800)]
make a more informative log message

8 years agoRead the first sequence out of the fastq to find the read_length
Diane Trout [Mon, 30 Nov 2015 21:47:33 +0000 (13:47 -0800)]
Read the first sequence out of the fastq to find the read_length

For some reason we had a flowcell where the sequencer thought
there were 66 cycles but the file only had 50.

8 years agorefactor encode3 spreadsheet based object creation to be a bit easier to read
Diane Trout [Mon, 30 Nov 2015 20:16:59 +0000 (12:16 -0800)]
refactor encode3 spreadsheet based object creation to be a bit easier to read

8 years agoremove wsgiref requirement
Diane Trout [Mon, 30 Nov 2015 20:16:17 +0000 (12:16 -0800)]
remove wsgiref requirement

8 years agoargparse is in versions of python we care about
Diane Trout [Wed, 11 Nov 2015 21:24:27 +0000 (13:24 -0800)]
argparse is in versions of python we care about

8 years agouse decorator syntax for registering admin urls
Diane Trout [Tue, 27 Oct 2015 18:20:13 +0000 (11:20 -0700)]
use decorator syntax for registering admin urls

8 years agoupdate dotted path for python3
Diane Trout [Tue, 27 Oct 2015 18:18:38 +0000 (11:18 -0700)]
update dotted path for python3

8 years agoupdate url to new standard url
Diane Trout [Tue, 27 Oct 2015 18:18:17 +0000 (11:18 -0700)]
update url to new standard url

8 years agoUpdate schema tests for upstreams release 33
Diane Trout [Tue, 27 Oct 2015 18:18:03 +0000 (11:18 -0700)]
Update schema tests for upstreams release 33

8 years agomake exception dotted name python3 compliant
Diane Trout [Tue, 27 Oct 2015 18:16:20 +0000 (11:16 -0700)]
make exception dotted name python3 compliant

8 years agothis works better with python 3...
Diane Trout [Tue, 20 Oct 2015 23:50:44 +0000 (16:50 -0700)]
this works better with python 3...

8 years agoapparently json.dump can write to a stream
Diane Trout [Tue, 20 Oct 2015 23:50:14 +0000 (16:50 -0700)]
apparently json.dump can write to a stream

8 years agoAdd mode to connect to the DCC and make sure the files with a .upload file are actual...
Diane Trout [Tue, 20 Oct 2015 23:49:54 +0000 (16:49 -0700)]
Add mode to connect to the DCC and make sure the files with a .upload file are actually present at the DCC

8 years agofix import path for HTTPError exception
Diane Trout [Tue, 20 Oct 2015 23:19:55 +0000 (16:19 -0700)]
fix import path for HTTPError exception

8 years agofix typo, use print_function
Diane Trout [Tue, 20 Oct 2015 23:19:39 +0000 (16:19 -0700)]
fix typo, use print_function

8 years agoadd knowledge about file links
Diane Trout [Tue, 20 Oct 2015 23:18:49 +0000 (16:18 -0700)]
add knowledge about file links

8 years agoupdates to deal with encoded 33 path changes
Diane Trout [Tue, 20 Oct 2015 23:18:37 +0000 (16:18 -0700)]
updates to deal with encoded 33 path changes

8 years agoMerge branch 'django1.7' of mus.cacr.caltech.edu:htsworkflow into django1.7
Diane Trout [Tue, 20 Oct 2015 23:17:47 +0000 (16:17 -0700)]
Merge branch 'django1.7' of mus.cacr.caltech.edu:htsworkflow into django1.7

8 years agomove run_aws_cp command out of class to make it easier to use from other scripts
Diane Trout [Tue, 20 Oct 2015 23:17:14 +0000 (16:17 -0700)]
move run_aws_cp command out of class to make it easier to use from other scripts

8 years agoReturn read_length for file properties
Diane Trout [Thu, 24 Sep 2015 18:49:18 +0000 (11:49 -0700)]
Return read_length for file properties

8 years agoUse a re.split so we can accept both ', ' and ',' between list items.
Diane Trout [Wed, 23 Sep 2015 21:57:32 +0000 (14:57 -0700)]
Use a re.split so we can accept both ', ' and ',' between list items.

8 years agoindicate we want text not bytes
Diane Trout [Tue, 8 Sep 2015 23:38:12 +0000 (16:38 -0700)]
indicate we want text not bytes

8 years agocovert to using python3 config.get fallback=
Diane Trout [Tue, 8 Sep 2015 23:37:48 +0000 (16:37 -0700)]
covert to using python3 config.get fallback=

8 years agoconvert from optparse to argparse
Diane Trout [Tue, 8 Sep 2015 23:37:03 +0000 (16:37 -0700)]
convert from optparse to argparse

8 years agoadd some documentation -- shocking I know
Diane Trout [Tue, 8 Sep 2015 23:36:25 +0000 (16:36 -0700)]
add some documentation -- shocking I know

8 years agopython3 byte vs str compatibility for constructing document data urls
Diane Trout [Mon, 20 Jul 2015 18:37:23 +0000 (11:37 -0700)]
python3 byte vs str compatibility for constructing document data urls

8 years agoscript to help remigrate from old sqlite database to new server
Diane Trout [Mon, 20 Jul 2015 18:35:58 +0000 (11:35 -0700)]
script to help remigrate from old sqlite database to new server

8 years agoconfiguration file largely only useful for emacs elpy users
Diane Trout [Mon, 20 Jul 2015 18:35:18 +0000 (11:35 -0700)]
configuration file largely only useful for emacs elpy users

8 years agosort load_accession to make it easier to find things
Diane Trout [Mon, 20 Jul 2015 18:34:25 +0000 (11:34 -0700)]
sort load_accession to make it easier to find things

8 years agoremove unused imports
Diane Trout [Thu, 28 May 2015 18:27:38 +0000 (11:27 -0700)]
remove unused imports

8 years agorename datarun to sequencing run, and propogate the change all over the place
Diane Trout [Tue, 26 May 2015 23:58:49 +0000 (16:58 -0700)]
rename datarun to sequencing run, and propogate the change all over the place

8 years agoset a created datetime in the factory, since I removed the default from the model
Diane Trout [Tue, 26 May 2015 23:57:54 +0000 (16:57 -0700)]
set a created datetime in the factory, since I removed the default from the model

9 years agoremove unused import
Diane Trout [Thu, 21 May 2015 23:13:27 +0000 (16:13 -0700)]
remove unused import

9 years agoload in our encode3 accession numbers seperately from the migration system
Diane Trout [Thu, 21 May 2015 23:13:15 +0000 (16:13 -0700)]
load in our encode3 accession numbers seperately from the migration system

9 years agoadd a few common accession agencies to the standard dataset
Diane Trout [Thu, 21 May 2015 23:12:46 +0000 (16:12 -0700)]
add a few common accession agencies to the standard dataset

9 years agoAdd AccessionAgency and LibraryAccession
Diane Trout [Thu, 21 May 2015 23:11:29 +0000 (16:11 -0700)]
Add AccessionAgency and LibraryAccession

For all your library accessioning needs.

9 years agolocalize all the RDF imports and use skipUnless to avoid tests when we don't have...
Diane Trout [Wed, 20 May 2015 21:56:47 +0000 (14:56 -0700)]
localize all the RDF imports and use skipUnless to avoid tests when we don't have redland installed

9 years agoremove commented out code
Diane Trout [Wed, 20 May 2015 21:32:19 +0000 (14:32 -0700)]
remove commented out code

9 years agoimport specific names instead of import factory
Diane Trout [Wed, 20 May 2015 21:31:22 +0000 (14:31 -0700)]
import specific names instead of import factory

9 years agoremove some unused imports
Diane Trout [Wed, 20 May 2015 21:28:55 +0000 (14:28 -0700)]
remove some unused imports

9 years agoremove commented out code
Diane Trout [Wed, 20 May 2015 21:24:03 +0000 (14:24 -0700)]
remove commented out code

9 years agoremove unused imports
Diane Trout [Tue, 12 May 2015 23:56:21 +0000 (16:56 -0700)]
remove unused imports

9 years agoflake8 whitespace cleanup
Diane Trout [Tue, 12 May 2015 23:55:32 +0000 (16:55 -0700)]
flake8 whitespace cleanup

9 years agoremove unused imports
Diane Trout [Tue, 12 May 2015 23:45:20 +0000 (16:45 -0700)]
remove unused imports

9 years agoflake8 whitespace cleanup
Diane Trout [Tue, 12 May 2015 23:40:58 +0000 (16:40 -0700)]
flake8 whitespace cleanup

9 years agoflake8 whitespace cleanup
Diane Trout [Tue, 12 May 2015 21:35:42 +0000 (14:35 -0700)]
flake8 whitespace cleanup

9 years agomove comments out of experiments_flowcell flowcell id and into lane status
Diane Trout [Tue, 12 May 2015 19:18:47 +0000 (12:18 -0700)]
move comments out of experiments_flowcell flowcell id and into lane status

9 years agoremove unused import
Diane Trout [Tue, 12 May 2015 19:17:03 +0000 (12:17 -0700)]
remove unused import

9 years agoflake8 whitespace cleanup
Diane Trout [Tue, 12 May 2015 19:16:31 +0000 (12:16 -0700)]
flake8 whitespace cleanup

9 years agoflake8 whitespace change
Diane Trout [Tue, 12 May 2015 18:52:00 +0000 (11:52 -0700)]
flake8 whitespace change

9 years agorecreate samples initial migration as strings instead of bytestrings
Diane Trout [Tue, 12 May 2015 18:40:53 +0000 (11:40 -0700)]
recreate samples initial migration as strings instead of bytestrings

9 years agorecreate initial migration as strings instead of bytestrings
Diane Trout [Tue, 12 May 2015 18:39:47 +0000 (11:39 -0700)]
recreate initial migration as strings instead of bytestrings

9 years agomove experiment templates into the experiments app
Diane Trout [Tue, 12 May 2015 18:38:12 +0000 (11:38 -0700)]
move experiment templates into the experiments app

9 years agochange the default for the DJANGO_SETTINGS_MODULE to be a little more flexible
Diane Trout [Tue, 5 May 2015 23:31:13 +0000 (16:31 -0700)]
change the default for the DJANGO_SETTINGS_MODULE to be a little more flexible

9 years agosimplify library report
Diane Trout [Tue, 5 May 2015 23:29:40 +0000 (16:29 -0700)]
simplify library report

9 years agoupdate docstring
Diane Trout [Tue, 5 May 2015 23:25:07 +0000 (16:25 -0700)]
update docstring

9 years agoadd in missing import
Diane Trout [Tue, 5 May 2015 23:24:55 +0000 (16:24 -0700)]
add in missing import

9 years agoadd in some missing imports
Diane Trout [Tue, 5 May 2015 23:24:25 +0000 (16:24 -0700)]
add in some missing imports

9 years agoRemove unused imports
Diane Trout [Tue, 5 May 2015 22:02:55 +0000 (15:02 -0700)]
Remove unused imports

9 years agoadjust whitespace
Diane Trout [Tue, 5 May 2015 21:41:10 +0000 (14:41 -0700)]
adjust whitespace

9 years agoAdd more tests for lanes_for
Diane Trout [Tue, 5 May 2015 21:21:24 +0000 (14:21 -0700)]
Add more tests for lanes_for

9 years agoMove lanes_for from samples to experiments
Diane Trout [Tue, 5 May 2015 21:18:41 +0000 (14:18 -0700)]
Move lanes_for from samples to experiments

9 years agoUpdate dependency list
Diane Trout [Tue, 5 May 2015 20:38:35 +0000 (13:38 -0700)]
Update dependency list

Also adjust the formatting a bit.

9 years agomake version utf/python3 friendly
Diane Trout [Tue, 5 May 2015 20:37:14 +0000 (13:37 -0700)]
make version utf/python3 friendly

9 years agoremove extra blank line
Diane Trout [Tue, 5 May 2015 20:36:04 +0000 (13:36 -0700)]
remove extra blank line

9 years agoOops I had a test function name collision. Rename one so it gets executed
Diane Trout [Mon, 6 Apr 2015 22:21:40 +0000 (15:21 -0700)]
Oops I had a test function name collision. Rename one so it gets executed

9 years agoDrop support for simplejson
Diane Trout [Mon, 6 Apr 2015 22:07:44 +0000 (15:07 -0700)]
Drop support for simplejson

We're only targeting python2.7+ & python3.3+ so I can drop
that archaic code.

(Also gets me some more test coverage)

9 years agoRemove suprious comma. Fixing a tuple <= int bug
Diane Trout [Mon, 6 Apr 2015 22:03:14 +0000 (15:03 -0700)]
Remove suprious comma. Fixing a tuple <= int bug

python 2 didn't catch this type error. Thankfully python 3 does.

9 years agoMissed a couple of smart_text wrappings of django test client response.content.
Diane Trout [Mon, 6 Apr 2015 21:53:19 +0000 (14:53 -0700)]
Missed a couple of smart_text wrappings of django test client response.content.

(it comes back as bytes in python3, which causes trouble for librdf)

9 years agoUpdate test to be more robust to changing dictionary order.
Diane Trout [Mon, 6 Apr 2015 21:52:27 +0000 (14:52 -0700)]
Update test to be more robust to changing dictionary order.

The test used to be stable in python2 days, but lets just
use sets to make sure it wont fail in the future.

9 years agofix a white space issue
Diane Trout [Mon, 6 Apr 2015 21:52:12 +0000 (14:52 -0700)]
fix a white space issue

9 years agoconvert non-unit-tested module to use newer raise Exception(msg) syntax
Diane Trout [Mon, 6 Apr 2015 21:51:46 +0000 (14:51 -0700)]
convert non-unit-tested module to use newer raise Exception(msg) syntax

9 years agoconvert several not covered by unit-test modules to use print function
Diane Trout [Mon, 6 Apr 2015 21:50:03 +0000 (14:50 -0700)]
convert several not covered by unit-test modules to use print function

9 years agoBe more careful looking up keys when the fastqname is uninitialized.
Diane Trout [Mon, 6 Apr 2015 20:50:36 +0000 (13:50 -0700)]
Be more careful looking up keys when the fastqname is uninitialized.

By removing the default return of None from getitem, the is_valid test
failed when the object was uninitialized.

9 years agoadd post_spreadsheet to create encoded objects from a excel like spreadsheet
Diane Trout [Tue, 31 Mar 2015 22:38:47 +0000 (15:38 -0700)]
add post_spreadsheet to create encoded objects from a excel like spreadsheet

9 years agoalso validate documents before creating them
Diane Trout [Tue, 31 Mar 2015 22:38:19 +0000 (15:38 -0700)]
also validate documents before creating them

9 years agoactually complain if we get the wrong type
Diane Trout [Tue, 31 Mar 2015 22:37:57 +0000 (15:37 -0700)]
actually complain if we get the wrong type

9 years agoadd a docstring to validate
Diane Trout [Tue, 31 Mar 2015 22:37:11 +0000 (15:37 -0700)]
add a docstring to validate

9 years agoAdd get_accession_name to use collection name to find commonly used spreadsheet acces...
Diane Trout [Tue, 31 Mar 2015 22:35:52 +0000 (15:35 -0700)]
Add get_accession_name to use collection name to find commonly used spreadsheet accesssion column name

9 years agosupport trying to figure out object type based on what collection its going to be...
Diane Trout [Tue, 31 Mar 2015 22:35:19 +0000 (15:35 -0700)]
support trying to figure out object type based on what collection its going to be posted to

9 years agoMerge branch 'django1.7' of mus.cacr.caltech.edu:htsworkflow into django1.7
Diane Trout [Fri, 27 Mar 2015 18:13:50 +0000 (11:13 -0700)]
Merge branch 'django1.7' of mus.cacr.caltech.edu:htsworkflow into django1.7

9 years agoSwitch encode3 submitter to use aws.
Diane Trout [Fri, 27 Mar 2015 18:11:11 +0000 (11:11 -0700)]
Switch encode3 submitter to use aws.

I needed to write a submission class to support submitting to
aws, and of course there's a slightly different set of metadata
they want to know for submission.

9 years agoImport flowcell details into the triple store from a lane
Diane Trout [Fri, 27 Mar 2015 18:07:06 +0000 (11:07 -0700)]
Import flowcell details into the triple store from a lane

9 years agostore flowcell name in the triple store if its known
Diane Trout [Fri, 27 Mar 2015 18:05:05 +0000 (11:05 -0700)]
store flowcell name in the triple store if its known

9 years agorecord file size information for a file in the triple store
Diane Trout [Fri, 27 Mar 2015 18:03:45 +0000 (11:03 -0700)]
record file size information for a file in the triple store

9 years agoAdjust logging overrides and move django.setup to after the override.
Diane Trout [Fri, 27 Mar 2015 18:01:15 +0000 (11:01 -0700)]
Adjust logging overrides and move django.setup to after the override.

(Otherwise the extra logging doesn't do much.

9 years agogetitem should only return the key
Diane Trout [Fri, 27 Mar 2015 17:58:35 +0000 (10:58 -0700)]
getitem should only return the key

9 years agoclean up a bit of whitespace
Diane Trout [Fri, 27 Mar 2015 17:53:07 +0000 (10:53 -0700)]
clean up a bit of whitespace

9 years agoconfigure using a local postgres install
Diane Trout [Fri, 20 Mar 2015 23:33:26 +0000 (16:33 -0700)]
configure using a local postgres install

9 years agoConvert reads to an integer, if if it was a float in the xml.
Diane Trout [Fri, 20 Mar 2015 23:31:53 +0000 (16:31 -0700)]
Convert reads to an integer, if if it was a float in the xml.

Some versions of the pipeline include a trailing .0 for read length,
this made python 3s parser unhappy. so convert to a float and then
truncate to work around the type issue.

9 years agoActually comare an integer (length of list) to an integer 0.
Diane Trout [Fri, 20 Mar 2015 23:30:14 +0000 (16:30 -0700)]
Actually comare an integer (length of list) to an integer 0.

Why was list() > 0 ever valid code?