Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix pyfasta extract. thanks @ialbert in #5 .

  • Loading branch information...
commit 4fa34b8ab0a360e038b63b22b1cb149e78e0b74c 1 parent 8bb0e51
Brent Pedersen - Bioinformatics authored
4 CHANGELOG.txt
... ... @@ -1,5 +1,9 @@
1 1 Changes
2 2 =======
  3 +0.4.4
  4 +-----
  5 +fix pyfasta extract
  6 +
3 7 0.4.3
4 8 -----
5 9 Add 0 or 1-based intervals in sequence() thanks @jamescasbon
2  pyfasta/__init__.py
@@ -122,7 +122,7 @@ def extract(args):
122 122 if not (options.fasta and len(seqs)):
123 123 sys.exit(parser.print_help())
124 124
125   - key_fn = lambda k: k.split()[0] if options.space else None
  125 + key_fn = (lambda k: k.split()[0]) if options.space else None
126 126 f = Fasta(options.fasta, key_fn=key_fn)
127 127 if options.file:
128 128 seqs = (x.strip() for x in open(seqs[0]))
2  setup.py
... ... @@ -1,7 +1,7 @@
1 1 from setuptools import setup, find_packages
2 2
3 3
4   -version = '0.4.3'
  4 +version = '0.4.4'
5 5
6 6 setup(name='pyfasta',
7 7 version=version,
7 tests.sh
@@ -48,3 +48,10 @@ then
48 48 fi
49 49
50 50 rm -f tests/data/three_chrs.fasta.{flat,gdx}
  51 +
  52 +C=$(python pyfasta/__init__.py extract --fasta tests/data/key.fasta "a extra")
  53 +if [ $C != "a" ]
  54 +then
  55 + echo "BADD"
  56 +fi
  57 +rm -f tests/data/key.fasta.{flat,gdx}

0 comments on commit 4fa34b8

Please sign in to comment.
Something went wrong with that request. Please try again.