[hg] galaxy 3247: Updated csFasta sniff method to handle sequenc...
details: http://www.bx.psu.edu/hg/galaxy/rev/4e7c1fe8fab8 changeset: 3247:4e7c1fe8fab8 user: Kelly Vincent <kpvincent@bx.psu.edu> date: Fri Jan 15 17:12:50 2010 -0500 description: Updated csFasta sniff method to handle sequences with dots in them (T123..32.020......23) instead of being just numbers with a leading capital letter diffstat: lib/galaxy/datatypes/sequence.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (21 lines): diff -r 9cc57a489be0 -r 4e7c1fe8fab8 lib/galaxy/datatypes/sequence.py --- a/lib/galaxy/datatypes/sequence.py Fri Jan 15 12:51:45 2010 -0500 +++ b/lib/galaxy/datatypes/sequence.py Fri Jan 15 17:12:50 2010 -0500 @@ -66,7 +66,7 @@ A sequence in FASTA format consists of a single-line description, followed by lines of sequence data. The first character of the description line is a greater-than (">") symbol in the first column. - All lines should be shorter than 80 charcters + All lines should be shorter than 80 characters For complete details see http://www.ncbi.nlm.nih.gov/blast/fasta.shtml @@ -139,7 +139,7 @@ break elif line[0] not in string.ascii_uppercase: return False - elif len( line ) > 1 and not re.search( '^\d+$', line[1:] ): + elif len( line ) > 1 and not re.search( '^[\d.]+$', line[1:] ): return False return True else:
participants (1)
-
Greg Von Kuster