Multiple fasta to one fasta in galaxy
2
0
Entering edit mode
9.8 years ago
rus2dil ▴ 20
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 • 2.2k views
ADD COMMENT
1
Entering edit mode

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

ADD REPLY
0
Entering edit mode
It is because after mapping with BWA, generated pile up, the converted to fasta, which resulted single fasta file with multiple sequences.
ADD REPLY
0
Entering edit mode

It looks like this answer: How To Generate A Consensus Sequence On The Galaxy Platform might be what you're looking for instead.

ADD REPLY
2
Entering edit mode
9.8 years ago
venu 7.1k

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
ADD COMMENT
1
Entering edit mode
9.8 years ago

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

ADD COMMENT

Login before adding your answer.

Traffic: 2070 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6