Skip to content

phylip gets corrupted when piped #165

Description

@josephwb

Other formats work, but not phylip for some raisin:

josephwb@Potiphar-Breen:baits$ cat foo.fa | pxlssq
File type: fasta
Number of sequences: 4568
Is aligned: true
Sequence length: 2571
--------- Nucl TABLE ----------
Nucl        Total   Proportion
   A       919913    0.0783283
   C      1124941    0.0957859
   G       588819    0.0501365
   T       896441    0.0763297
   -      8208557     0.698938
   ?         5657  0.000481679
 G+C      1713760     0.145922
--------- Nucl TABLE ----------
josephwb@Potiphar-Breen:baits$ cat foo.nex | pxlssq
File type: nexus
Number of sequences: 4568
Is aligned: true
Sequence length: 2571
--------- Nucl TABLE ----------
Nucl        Total   Proportion
   A       919913    0.0783283
   C      1124941    0.0957859
   G       588819    0.0501365
   T       896441    0.0763297
   -      8208557     0.698938
   ?         5657  0.000481679
 G+C      1713760     0.145922
--------- Nucl TABLE ----------
josephwb@Potiphar-Breen:baits$ cat foo.phy | pxlssq
Error: number of taxa declared in the file () does not match the number read (1). Exiting.

And yet is works on a phylip file:

josephwb@Potiphar-Breen:baits$ pxlssq -s foo.phy
File type: phylip
Number of sequences: 4568
Is aligned: true
Sequence length: 2571
--------- Nucl TABLE ----------
Nucl        Total   Proportion
   A       919913    0.0783283
   C      1124941    0.0957859
   G       588819    0.0501365
   T       896441    0.0763297
   -      8208557     0.698938
   ?         5657  0.000481679
 G+C      1713760     0.145922
--------- Nucl TABLE ----------

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions