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

EOF error when running MAKE-SIMPLE-IDENTIFIERS-TO-FASTA-NAMES-CORRESPONDENCE-FILE #15

Open
anamosterin opened this issue Jun 16, 2015 · 4 comments
Assignees

Comments

@anamosterin
Copy link

I (Terry) get the following error when trying to run MAKE-SIMPLE-IDENTIFIERS-TO-FASTA-NAMES-CORRESPONDENCE-FILE:

$ alisp
International Allegro CL Enterprise Edition
8.0 [Mac OS X (Intel)] (Apr 17, 2006 13:04)
Copyright (C) 1985-2005, Franz Inc., Oakland, CA, USA.  All Rights Reserved.

This development copy of Allegro CL is licensed to:
   [TC14164] University of Cambridge

;; Optimization settings: safety 1, space 1, speed 1, debug 2.
;; For a complete description of all compiler switches given the
;; current optimization settings evaluate (EXPLAIN-COMPILER-SETTINGS).
CL-USER(1): (load "/usr/local/lispmds/.clinit.cl")
CL-USER(2): (MAKE-SIMPLE-IDENTIFIERS-TO-FASTA-NAMES-CORRESPONDENCE-FILE "ramona.fas" "terry")
Error: eof encountered on stream
       #<STRING-INPUT-SIMPLE-STREAM "EPI1198_|_HA..." pos 64 @
         #x11028dda>
  [condition type: END-OF-FILE]

Restart actions (select using :continue):
 0: Return to Top Level (an "abort" restart).
 1: Abort entirely from this (lisp) process.

Maybe this is due to unexpected characters in the sequence id in the FASTA file. The error is on the first sequence in my file, with id EPI1198_|_HA_|_A/Hanoi/184/2002_|_EPI_ISL_271_|_AB221016_|_AH3N2.

@anamosterin
Copy link
Author

Here's an example FASTA file that triggers the error:

>EPI1198_|_HA_|_A/Hanoi/184/2002_|_EPI_ISL_271_|_AB221016_|_AH3N2
caaaaacttcccggaaatgacaacagcacggcaacgctgtgccttgggcaccatgcagta

@anamosterin
Copy link
Author

The error is definitely being caused by the | characters in the strain id. When I remove them all from the FASTA above, I get no error. When I use a strain id of >EPI1198|xxx I get the error.

@dsmithgithub
Copy link
Contributor

T,

What's the top level thing you are doing? I have fixed the error you found, but i need to check when the operation is undone (simple names back to the complex names) that that will work too.

D

@terrycojones
Copy link
Member

I was trying to help Ana make trees. There are some shell scripts that call into lisp to do a few things. One, with a name like produces-mafft-... calls alisp with just a couple of lines of lisp, to load the clinit file and then call MAKE-SIMPLE-IDENTIFIERS-TO-FASTA-NAMES-CORRESPONDENCE-FILE. So I'm not doing anything complicated or that involves other parts of lispmds.

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

3 participants