lh3 / seqtk

Toolkit for processing sequences in FASTA/Q formats
MIT License
1.37k stars 308 forks source link

Seqtk seq fastq to assembled.fa #93

Closed Gabriellavp closed 6 years ago

Gabriellavp commented 7 years ago

Hello, I am trying to run the command: for i in {1..36};

do

seqtk seq -a "$i"-trimmed.fastq > “$i".assembled.fa;

done;

However it doesn't seems it is working. Does someone can help me with that?

shenwei356 commented 7 years ago

Please format your code and paste error message.

Gabriellavp commented 7 years ago

Hi Shenwei356, thanks for the reply

the command is: seqtk seq -a "$i"-trimmed.fastq > “$i".assembled.fa; and the "$i" means my samples (files) from 1 to 36.

No error message appears, but no new files are generated either.

I dont know what to do :(

Gabriellavp commented 7 years ago

Actually it generates the file ".assembled.fa" however with zero bytes

shenwei356 commented 7 years ago

It should be seqtk seq -A not -a.

Gabriellavp commented 7 years ago

Sorry, but no change

shenwei356 commented 7 years ago

Which version are your using?

And run seqtk seq -h to print help message.

And try to test the command on one file.

Also, run ls -lh 1-trimmed.fastq to check the input file.

hliang commented 7 years ago

Before the seqtk command, try using ls to check if variables/files are valid:

for i in {1..36};
do
echo i = $i
ls -l "$i"-trimmed.fastq
seqtk seq -A "$i"-trimmed.fastq > "$i".assembled.fa;
done;

BTW, doesn't seem to be an issue of seqtk.

Gabriellavp commented 7 years ago

Thank you very much

lh3 commented 6 years ago

Thank you, @hliang and @shenwei356!