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

ERROR: Fail to convert seq IDs to less than 15 character #14

Closed
intirules opened this issue May 4, 2018 · 2 comments
Closed

ERROR: Fail to convert seq IDs to less than 15 character #14

intirules opened this issue May 4, 2018 · 2 comments

Comments

@intirules
Copy link

So i wanna run my harvest results in Retriever and 1 of 22 genomes give me this problem.

$$$ ERROR: Fail to convert seq IDs to less than 15 characters! Please provide a genome with shorter seq IDs.
In harvest i used:

gt ltrharvest -index 1.fna -seqids Yes tabout no -seed 30 -xdrop 5 -mat 2 -mis -2 -ins -3 -del -3 -minlenltr 100 -maxlenltr 7000 -mindistltr 1000 -maxdistltr 15000 -similar 80.0 -overlaps no -mintsd 4 -maxtsd 20 -motif TGCA -motifmis 1 -vic 60 > 1.harvest.scn

in Retriever:
perl LTR_retriever -genome /medicina/wocana/Tesis/Secuencias/Retriever/1/1.fna -inharvest /medicina/wocana/Tesis/Secuencias/Harvest/1/1.harvest.scn

Any idea how i can fix it?

@intirules intirules changed the title RROR: Fail to convert seq IDs to less than 15 character ERROR: Fail to convert seq IDs to less than 15 character May 4, 2018
@oushujun
Copy link
Owner

oushujun commented May 5, 2018 via email

@intirules
Copy link
Author

Thx at the end we solve it with:

$vi EditFasta

File='1.fna'
OutFile = '1_fixed.fna'

f = open(File,'r')
g = open(OutFile,'w')
for line in f:
line.rstrip()
if '>' in line:
temp = line.split()
temp1 = ' '.join(temp[0:-1])
temp1 = temp1.lstrip('>')
towrite = '>'+temp[-1]+' '+temp1+'\n'
g.write(towrite)
else:
g.write(line)
f.close()
g.close()

$python EditFasta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants