convert .txt file to fasta format
1
0
Entering edit mode
4.7 years ago
ravi.eshwari ▴ 10

Hi, I have downloaded .txt files from supplementary data of GEO database . I want to convert these txt format files to fasta format. Can someone let me know how do i do this?

This is how the file looks

    AAAAAAAAAAAAAAATTGTCGAAT    2

    AAAAAAAAAAAAAAGAATCGACCGTTCGACT 1

    AAAAAAAAAAAAAATACAAAGGCT    1

    AAAAAAAAAAAAACCGGGACCTCT    1

    AAAAAAAAAAAAACTTTCGAATCTTAGCGAC 1

    AAAAAAAAAAAAAGAATCGACCGTTCGACTATT   1
sequence rna-seq • 2.6k views
ADD COMMENT
2
Entering edit mode

Imagine you'd read this question. Would you be able to know how this file looks and therefore could put together code for the conversion? Please invest some effort. Show example data and highlight it properly with the code option 10101. By the way, I noted that you deleted two of your previous questions that received comments from other members. If you are going to delete this one again after it receivs helpful comments or answers your account might get suspended.

ADD REPLY
0
Entering edit mode

firstly I did not receive any helpful comments hence i deleted those. secondly, those issues were resolved before anyone commented hence I deleted them. I would appreciate if you could be kind. Thanks!

ADD REPLY
0
Entering edit mode
4.7 years ago
ATpoint 85k

Assuming tab-separated file:

cut -f1 file.txt | awk '{print ">Sequence_"$1"\n"$1}'
ADD COMMENT
0
Entering edit mode

Thanks for your help!! highly appreciative!!

ADD REPLY

Login before adding your answer.

Traffic: 1862 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