tlawrence3 / FAST

FAST: Fast Analysis of Sequences Toolbox
30 stars 10 forks source link

No error when supplying .fasta.gz file #32

Open tseemann opened 9 years ago

tseemann commented 9 years ago

Got some unexpected results here:

% faswc chr.fa
         2   2832165 chr.fa
         2   2832165 total

% gzip chr.fa

% faswc chr.fa.gz
         8    846072 chr.fa.gz
         8    846072 total

% zcat chr.fa.gz | faswc
         2   2832165 total
dhard commented 9 years ago

I guess we could detect and complain about binary input.

On Jun 5, 2015, at 8:18 PM, Torsten Seemann notifications@github.com wrote:

Got some unexpected results here:

% faswc chr.fa 2 2832165 chr.fa 2 2832165 total

% gzip chr.fa

% faswc chr.fa.gz 8 846072 chr.fa.gz 8 846072 total

% zcat chr.fa.gz | faswc 2 2832165 total

— Reply to this email directly or view it on GitHub.

David H. Ardell Assistant Professor, Molecular Cell Biology Unit Chair, Quantitative and Systems Biology Program 5200 North Lake Road, School of Natural Sciences, University of California, Merced CA 95343 office: SE 228 // (209) 228-2953 // fax: (209) 228-4675 // http://compbio.ucmerced.edu/ardell OFFICE HOURS FOR BIO 2 and QSB: Tuesdays and Thursdays, 1:30 pm to 2:30 pm or by appt.

tseemann commented 9 years ago

Perl has a -T operator to test if something looks ascii or not, if that helps.