Open SamStudio8 opened 7 years ago
I am piping trees into Seq-Gen just fine. I believe they need to be in the Phylip format (I had to add a couple lines above my Newick trees to get it to work, should be a fairly simple conversion)
@niemasd Ah yes, that must be what those additional feof(stdin)
calls were looking for. I seem to recall the PHYLIP
format has a header line that describes the number of sequences and their length? Although my latter example shows that one can just interactively leave that header blank with a CTRL+D
and seq-gen
works anyway, so I'm not entirely sure whether the header is used for anything.
Ah this issue helped a lot. I couldn't pipe an alignment+tree into seq-gen but I can as a command line argument.
It is not possible to echo a string into
seq-gen
to use as a tree:Meanwhile, the following works:
From what I can tell, this could be caused by multiple calls of
feof(stdin)
inseq-gen.c
ortreefile.c
? I'm not really sure what the "first pass" ofstdin
does, as this is also a valid input that produces sequences: