Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log files do not handle non-ascii characters #1023

Open
dmacmillan opened this issue Aug 21, 2020 · 0 comments
Open

Log files do not handle non-ascii characters #1023

dmacmillan opened this issue Aug 21, 2020 · 0 comments

Comments

@dmacmillan
Copy link
Contributor

dmacmillan commented Aug 21, 2020

short_text = f.read(short_size)

In particular when short_size contains non-ascii characters such as ^L (control + L) the Kive runcontainer handle will fail.

Here is a hexdump of a file that caused this issue:

00000000  0a 0a 42 75 69 6c 64 69  6e 67 20 61 20 6e 65 77  |..Building a new|
00000010  20 44 42 2c 20 63 75 72  72 65 6e 74 20 74 69 6d  | DB, current tim|
00000020  65 3a 20 30 38 2f 32 30  2f 32 30 32 30 20 30 30  |e: 08/20/2020 00|
00000030  3a 30 33 3a 31 38 0a 4e  65 77 20 44 42 20 6e 61  |:03:18.New DB na|
00000040  6d 65 3a 20 20 20 2f 68  6f 6d 65 2f 6b 69 76 65  |me:   /home/kive|
00000050  2f 68 69 76 73 65 71 69  6e 72 2f 68 78 62 32 5f  |/hivseqinr/hxb2_|
00000060  62 6c 61 73 74 5f 64 62  2f 48 58 42 32 2e 66 61  |blast_db/HXB2.fa|
00000070  73 74 61 0a 4e 65 77 20  44 42 20 74 69 74 6c 65  |sta.New DB title|
00000080  3a 20 20 2f 68 6f 6d 65  2f 6b 69 76 65 2f 68 69  |:  /home/kive/hi|
00000090  76 73 65 71 69 6e 72 2f  68 78 62 32 5f 62 6c 61  |vseqinr/hxb2_bla|
000000a0  73 74 5f 64 62 2f 48 58  42 32 2e 66 61 73 74 61  |st_db/HXB2.fasta|
000000b0  0a 53 65 71 75 65 6e 63  65 20 74 79 70 65 3a 20  |.Sequence type: |
000000c0  4e 75 63 6c 65 6f 74 69  64 65 0a 4b 65 65 70 20  |Nucleotide.Keep |
000000d0  4d 42 69 74 73 3a 20 54  0a 4d 61 78 69 6d 75 6d  |MBits: T.Maximum|
000000e0  20 66 69 6c 65 20 73 69  7a 65 3a 20 31 30 30 30  | file size: 1000|
000000f0  30 30 30 30 30 30 42 0a  41 64 64 69 6e 67 20 73  |000000B.Adding s|
00000100  65 71 75 65 6e 63 65 73  20 66 72 6f 6d 20 46 41  |equences from FA|
00000110  53 54 41 3b 20 61 64 64  65 64 20 31 20 73 65 71  |STA; added 1 seq|
00000120  75 65 6e 63 65 73 20 69  6e 20 30 2e 30 30 30 32  |uences in 0.0002|
00000130  31 37 31 39 39 20 73 65  63 6f 6e 64 73 2e 0a 0c  |17199 seconds...|
00000140  0c                                                |.|
00000141
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant