Skip to content

Commit

Permalink
Restructure package
Browse files Browse the repository at this point in the history
* remove src/ directory
* Move CONTRIB, INSTALL, LICENCE, CHANGELOG to top level
* move seqmagick script to seqmagick/scripts
  • Loading branch information
Connor McCoy committed Apr 7, 2011
1 parent 788e0a9 commit 386c72e
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions scripts/seqmagick
@@ -0,0 +1,5 @@
#!/usr/bin/env python

from seqmagick.scripts import cli

cli.main()
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions src/seqmagick/magickwrap.py → seqmagick/magickwrap.py
Expand Up @@ -362,6 +362,13 @@ def _cut_sequences(self, records, start, end):
'cutting sequences based on specified range (' + start + '-' + end + ').'
start = start - 1
for record in records:
record = SeqRecord(record.seq[start:end], id=record.id,
name=record.name, description=record.description)

# TODO: Make this a little cleaner?
# Include quality scores if present


yield SeqRecord(record.seq[start:end], id=record.id,
description=record.description)

Expand Down
Empty file added seqmagick/scripts/__init__.py
Empty file.
File renamed without changes.
3 changes: 1 addition & 2 deletions src/seqmagick/setup.py → setup.py
Expand Up @@ -6,7 +6,6 @@
version = '0.1',
description = 'Tools for converting and working with sequence files.',
author = 'Erick Matsen <ematsen@gmail.com>, Brian Hodges <bhodges@fhcrc.org>',
package_dir = {'seqmagick': '.'},
packages = ['seqmagick'],
packages = ['seqmagick', 'seqmagick.scripts'],
scripts = ['scripts/seqmagick'],
)

0 comments on commit 386c72e

Please sign in to comment.