-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from ebolyen/release
Release
- Loading branch information
Showing
5 changed files
with
127 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
include README.rst | ||
include LICENSE | ||
include .coveragerc | ||
|
||
graft examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
======= | ||
cual-id | ||
======= | ||
|Build Status| |Coverage Status| | ||
|
||
Install | ||
======= | ||
|
||
.. code:: bash | ||
pip install cual-id | ||
Usage | ||
===== | ||
|
||
Getting help | ||
------------ | ||
|
||
.. code:: bash | ||
cual-id --help | ||
Creating a list of IDs | ||
---------------------- | ||
|
||
.. code:: bash | ||
cual-id create ids 42 # writes 42 ids to stdout | ||
cual-id create ids 42 > my-ids.txt # writes 42 ids to my-ids.txt | ||
Creating a PDF of ID labels | ||
--------------------------- | ||
|
||
If you need to label sample containers with stickers, you can create a | ||
printable PDF for those stickers. Currently the only sticker sheet format | ||
supported is a 4 by 9 sheet. We designed this printout for | ||
`Electronic Imaging Materials #80402 label sheets | ||
<http://barcode-labels.com/?s=80402&submit=Search>`_. When printing PDFs make | ||
sure to check `Actual Size` in the print dialog box. | ||
|
||
.. code:: bash | ||
cual-id create labels my-ids.txt --output-pdf my-labels.pdf | ||
cual-id create labels my-ids.txt --output-pdf my-labels.pdf --suppress-ids # don't print the ids, only the barcodes | ||
cual-id create labels my-ids.txt --output-pdf my-labels.pdf --barcode none # don't print barcodes, just the ids | ||
Correcting a list of ids | ||
------------------------ | ||
|
||
.. code:: bash | ||
cual-id fix examples/modified-ids.txt --correct-ids examples/ids.txt # report fixed, unfixable and duplicates, the default | ||
cual-id fix examples/modified-ids.txt --correct-ids examples/ids.txt --show FN # report only fixed and unfixable IDs | ||
Result code definitions | ||
~~~~~~~~~~~~~~~~~~~~~~~ | ||
* D: duplicate | ||
* F: fixed | ||
* N: not fixable | ||
* V: valid (didn't need correction) | ||
|
||
Output Format | ||
~~~~~~~~~~~~~ | ||
|
||
:: | ||
|
||
input-id <tab> output-id <tab> result-codes | ||
|
||
|
||
For example: | ||
|
||
:: | ||
|
||
1a529f8b 1a529f88 F | ||
d60d0e2b d60d0c2b F | ||
439628o9 43962809 F | ||
439628o9 43962809 DF | ||
df47deb4 df47deba F | ||
|
||
|
||
Python API | ||
---------- | ||
|
||
.. code:: python | ||
from cualid import create_ids | ||
create_ids(10) # Creates a list of tuples containing a UUID and a cualid | ||
.. |Build Status| image:: https://travis-ci.org/johnchase/cual-id.svg?branch=master | ||
:target: https://travis-ci.org/johnchase/cual-id | ||
.. |Coverage Status| image:: https://coveralls.io/repos/johnchase/cual-id/badge.svg?branch=master&service=github | ||
:target: https://coveralls.io/github/johnchase/cual-id?branch=master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,35 @@ | |
# copied and modified from https://github.com/biocore/scikit-bio | ||
from setuptools import find_packages, setup | ||
from glob import glob | ||
__version__ = "0.0.1-dev" | ||
__version__ = "0.9.0" | ||
|
||
classes = """ | ||
Development Status :: 4 - Beta | ||
License :: OSI Approved :: BSD License | ||
Intended Audience :: Science/Research | ||
Topic :: Utilities | ||
Topic :: Scientific/Engineering | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.3 | ||
Programming Language :: Python :: 3.4 | ||
Operating System :: Unix | ||
Operating System :: POSIX | ||
Operating System :: MacOS :: MacOS X | ||
Operating System :: Microsoft :: Windows | ||
""" | ||
classifiers = [s.strip() for s in classes.split('\n') if s] | ||
|
||
description = ('Make a pdf out of barcodes') | ||
description = ('A package for creating and managing sample identifiers in' | ||
' comparative -omics datasets.') | ||
|
||
with open('README.md') as f: | ||
with open('README.rst') as f: | ||
long_description = f.read() | ||
|
||
setup(name='Cual-ID', | ||
setup(name='cual-id', | ||
author="John Chase", | ||
author_email="[email protected]", | ||
url="https://github.com/johnchase/cual-id", | ||
classifiers=classifiers, | ||
version=__version__, | ||
description=description, | ||
long_description=long_description, | ||
|