>ENST00000014935
TAGGTTTTTAATTACCTTTATTTTATTTTGCCAAACATACCTGGGAATACCTTTTATTTTTTTTTTACCTTGGGGTGATGGTTCCAAACCATAAATGTGATTATAGTTAACACATGACCCTTCTAGCGTCCCAGCCAGTGTTTTTCCTGACCTCTCTTCTTTGGAGAGGAGGATGGAAGGGAGGGGTCCGGCATGCTGCTGGCATTTTGCTGTGTCCTGCAGCCCCTTTCCGGGACACCTGGGTTCACACAGCTTTTTAGCTTACATAACTGGTGCAGATTTTCTGTGTGGAGATGTTGCCTTGACCAGCCTTGGCTGGACTTTACCAGGCATGCAGAAGCCTGTACCAACACAGACTACAGCACCCAGGAGGTGCGAGTGTGGCTGCTCAGCGGTTATAACAGGCCTGACTGCATTGTTCACCGGATTATAATGAGCCAAAATGTTTCCCGGTGTTTGCTGGTTTCAGGGAAGGAGTTTGATATAGCAGATTAACCACCCTCCTTGTAGCTATTGGGGCTTAATGGTTTCCTGGTGATTCTTACCAATCCACAATAAACATGGCCCATTGGCATATCTGCTGCACAAGTGTCCTATCTCACCAATCTGGGTTTTTGTTCTCAGTAACTTTCCTTCTTGTCATACAACATCTTCATTCCTCTTTCTGAACCCTCCCTTCCCCTACCCCAACCCAGAGCCCACTTTGTCTCCACTCCTGATACTACACTACCTGGCAGGTGGCATGAGTGCAGGGCCCCTGGCTTCCTCTCCTAATCTAGGCACAAGCCCAACCAAAGAACAAGAGCCAAATCAAACAAGGCAGGCAGGGGTGGACTACAGTCACAGGGCAACTATAGTTGAAGCCCCCCAGCCCCAGGGCTGGATGGACGGGGGAGGCTGGGGTTTAAGTCCCAAAAGGCAGCAGGCCCTGGGGGGGTAGGGGGACGCTCAGGCAGCAGGGCACAGCTGAGGGGACAGGAGTGATAGCAGCAACAGAACAGTGAGGCTGAGAGGCTGGACGCTGTGCGCCTGGCTCAGCTTCAGCTCCACCTCCACGGGGTAGTGGTCACTGATGTTGAGGGC
>ENST00000014944
TCCTCCTCGGTGAGCTGGAAGCTCGTGGGGAAGTCAAAGGCAGCCGCAGTGTGCAGCAGACTCCGGCAGCGCTCCCCGTGCAGCACGACGCGGTCATAGGTGCAGTGGGTGCTGGCCCGCACTGTGGTGTCCTCCCCATCGGCAATCACCCAGTGGAAGCCTGGCTCAGTCCGCAGCTCCAGCTTGTCCAGGCGCTTTTTGGTCAGTGAAGCGCAGTCAGCATTGAAGTCCCCAAGCAGGATCACGTC
Likewise, I have a huge fasta sequence and I want to reverse the sequence of those fasta sequences like below:-
>ENST00000014935
CGGGAGTTGTAGTCACTGGTGATGGGGCACCTCCACCTCGACTTCGACTCGGTCCGCGTGTCGCAGGTCGGAGAGTCGGAGTGACAAGACAACGACGATAGTGAGGACAGGGGAGTCGACACGGGACGACGGACTCGCAGGGGGATGGGGGGGTCCCGGACGACGGAAAACCCTGAATTTGGGGTCGGAGGGGGCAGGTAGGTCGGGACCCCGACCCCCCGAAGTTGATATCAACGGGACACTGACATCAGGTGGGGACGGACGGAACAAACTAAACCGAGAACAAGAAACCAACCCGAACACGGATCTAATCCTCTCCTTCGGTCCCCGGGACGTGAGTACGGTGGACGGTCCATCACATCATAGTCCTCACCTCTGTTTCACCCGAGACCCAACCCCATCCCCTTCCCTCCCAAGTCTTTCTCCTTACTTCTACAACATACTGTTCTTCCTTTCAATGACTCTTGTTTTTGGGTCTAACCACTCTATCCTGTGAACACGTCGTCTATACGGTTACCCGGTACAAATAACACCTAACCATTCTTAGTGGTCCTTTGGTAATTCGGGGTTATCGATGTTCCTCCCACCAATTAGACGATATAGTTTGAGGAAGGGACTTTGGTCGTTTGTGGCCCTTTGTAAAACCGAGTAATATTAGGCCACTTGTTACGTCAGTCCGGACAATATTGGCGACTCGTCGGTGTGAGCGTGGAGGACCCACGACATCAGACACAACCATGTCCGAAGACGTACGGACCATTTCAGGTCGGTTCCGACCAGTTCCGTTGTAGAGGTGTGTCTTTTAGACGTGGTCAATACATTCGATTTTTCGACACACTTGGGTCCACAGGGCCTTTCCCCGACGTCCTGTGTCGTTTTACGGTCGTCGTACGGCCTGGGGAGGGAAGGTAGGAGGAGAGGTTTCTTCTCTCCAGTCCTTTTTGTGACCGACCCTGCGATCTTCCCAGTACACAATTGATATTAGTGTAAATACCAAACCTTGGTAGTGGGGTTCCATTTTTTTTTTATTTTCCATAAGGGTCCATACAAACCGTTTTATTTTATTTCCATTAATTTTTGGAT
>ENST00000014944
CTGCACTAGGACGAACCCCTGAAGTTACGACTGACGCGAAGTGACTGGTTTTTCGCGGACCTGTTCGACCTCGACGCCTGACTCGGTCCGAAGGTGACCCACTAACGGCTACCCCTCCTGTGGTGTCACGCCCGGTCGTGGGTGACGTGGATACTGGCGCAGCACGACGTGCCCCTCGCGACGGCCTCAGACGACGTGTGACGCCGACGGAAACTGAAGGGGTGCTCGAAGGTCGAGTGGCTCCTCCT
Can anyone tell me how can I do this. Thanks in advance.
you can try (for flattened fasta):
or use
revseq -nocomplement
from EMBOSS.fasta - reverse complement sequence previously answed. Please have a look.
I don't want reverse complementary sequence, I just want to only reverse the sequence.
If you only want to reverse then change @Pierre's solution to:
harry : Don't forget to follow up on your past threads.
If an answer/comment was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one if they work.
Can anyone help me if I have the fasta file in tab separated format which I got from bedtools get fasta. Then is there a way to get the reverse sequence of that fasta sequence.
Thanks in advance
bedtools getfasta returns a normal fasta, not tab. Please be more precise what the problem is.
bedtools getfasta option see below, so as i used -tab option then how i reverse the sequence of the output fasta sequence.
Thanks in advance for helping me to sort this issue.
Don't use tab ¯_(ツ)_/¯
If you need the reversed fasta (output of the bioawk command) as tab-separated file then you can do:
That will replace the newline character \n by tab so you should have the name of the sequence in column1 and the sequence itself in column2.
So 1) get fasta with bedtools, 2) reverse it with bioawk, 3) get tabdelimited file with
tr
.Does that make sense in your case?
Hi, I tried it but again I didn't get the reverse sequence. I don't know why is it happen. this command is done fine with pipe command or not. Thanks in advance
I cannot see your screen or your data, cannot comment unfortunately.