Temporarily switching back to older bugless fasta libs while fixing a

bug
This commit is contained in:
Celine Mercier
2017-10-15 20:41:55 +02:00
parent f9d0ac00aa
commit 6373bc1c20
36 changed files with 84 additions and 83 deletions

7
libfasta/fasta_seq_writer.c Normal file → Executable file
View File

@ -52,7 +52,7 @@ void printOnlyHeaderFromTable(element_from_header* header, FILE* output)
fprintf(output,">%s ",header[1].value);
for (i = 2; i < nbf; i++)
for (i = 2; i <= nbf; i++)
{
if (strcmp(header[i].name, "definition") != 0)
{
@ -60,10 +60,11 @@ void printOnlyHeaderFromTable(element_from_header* header, FILE* output)
fprintf(output,"=");
fprintf(output,"%s; ",header[i].value);
}
else if (strcmp(header[i].name, "definition") == 0)
fprintf(output,"%s ", header[i].value);
}
if (strcmp(header[nbf].name, "definition") == 0)
fprintf(output,"%s; ",header[nbf].value);
fprintf(output,"\n");
}