[EMBOSS] shufflseq output redirection for multiple shuffles

Anandkumar Surendrarao aksrao at ucdavis.edu
Wed Nov 28 19:33:07 UTC 2018


Thank you, Malcolm. Those are nifty tricks I was not aware of...

And thank you, as well, Peter.

Cheers,
Anand

On Wed, Nov 28, 2018 at 1:35 PM Cook, Malcolm <MEC at stowers.org> wrote:

> And, if you have Gnu Parallel installed, use it to run the command 5 times
> (remove the --dry to actually run the commands)
>
> $ parallel --dry shuffleseq input.fasta output{}.fasta :::: <(seq 5)
> shuffleseq input.fasta output1.fasta
> shuffleseq input.fasta output2.fasta
> shuffleseq input.fasta output3.fasta
> shuffleseq input.fasta output4.fasta
> shuffleseq input.fasta output5.fasta
>
>
> or use  xargs (remove the 'echo' to run the command):
>
> $seq 5 | xargs -i echo shuffleseq input.fasta output{}.fasta
> shuffleseq input.fasta output1.fasta
> shuffleseq input.fasta output2.fasta
> shuffleseq input.fasta output3.fasta
> shuffleseq input.fasta output4.fasta
> shuffleseq input.fasta output5.fasta
>
>
>
>  > -----Original Message-----
>  > From: EMBOSS <emboss-bounces+mec=stowers.org at mailman.open-
>  > bio.org> On Behalf Of Peter Rice
>  > Sent: Wednesday, November 28, 2018 2:59 AM
>  > To: Anandkumar Surendrarao <aksrao at ucdavis.edu>;
>  > emboss at mailman.open-bio.org
>  > Subject: Re: [EMBOSS] shufflseq output redirection for multiple shuffles
>  >
>  > **CAUTION: Non-Stowers email**
>  >
>  >
>  > Hi Anand,
>  >
>  > You can run shuffleseq 5 times, with one shuffle (the default) and give
>  > a different output filename each time.
>  >
>  > shuffleseq input.fasta output1.fasta
>  >
>  > and so on...
>  >
>  > Hope that helps
>  >
>  > Peter Rice
>  > EMBOSS Team
>  >
>  > On 28/11/2018 03:57, Anandkumar Surendrarao wrote:
>  > > Greetings!
>  > >
>  > > If I have a multifasta file - lets say input.fasta with 5 chromosomal
>  > > sequences,
>  > > and I want to shuffle the entire genome 5 times,
>  > >
>  > > how can I redirect each of the 5 shuffled genomes to a
>  > > different filename - output1.fasta, ... output5.fasta?
>  > >
>  > > Currently, my syntax redirects all 5 shuffled versions to the same
>  > > output filename, which is not optimal. Any suggestions?
>  > >
>  > > Thanks a bunch.
>  > >
>  > > - Anand
>  > > _____
>  > > *Anandk*umar *S*urendra*rao*, PhD
>  > > +1.530.574.5134
>  > > +91.91760.70887
>  > >
>  > >
>  > >
>  > > _______________________________________________
>  > > EMBOSS mailing list
>  > > EMBOSS at mailman.open-bio.org
>  > > http://mailman.open-bio.org/mailman/listinfo/emboss
>  > >
>  >
>  > ---
>  > This email has been checked for viruses by AVG.
>  > https://www.avg.com
>  >
>  > _______________________________________________
>  > EMBOSS mailing list
>  > EMBOSS at mailman.open-bio.org
>  > http://mailman.open-bio.org/mailman/listinfo/emboss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.open-bio.org/pipermail/emboss/attachments/20181128/1b30f963/attachment.html>


More information about the EMBOSS mailing list