This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Multiple fasta to one fasta in galaxy
I have something like this >Chr6 C >Chr6 A >Chr6 C >Chr6 A >Chr6 T >Chr6 C I need something like this >Chr6 CACATC Need to use galaxy
galaxy fasta convertion sequencing sequence

Why is your fasta file(s) looking like this?

It is because after mapping with BWA, generated pile up, the converted to fasta, which resulted single fasta file with multiple sequences.

2 answers

Assuming your file is same as what you have shown here, following should work

perl -pe 's/\s\S\w{3}\d{1}\s//g' yourFile.fasta > outputFile.fasta

Hello,

Protocol #5 in this pub shows exactly how to manipulate MAF data in Galaxy. Filter with regex, convert formats, etc. It is open source and the examples are in a live tutorial with a video: http://usegalaxy.org/u/galaxyproject/p/using-galaxy-2012

Thanks, Jen, Galaxy team

Log in to answer this question.